Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-1-Sonic-2-2013-Script-Decompilation
Path: blob/master/Sonic 2/Scripts/Mission/ImmediateDeath.txt
1483 views
1
// ----------------------------------
2
// RSDK Project: Sonic 2
3
// Script Description: ImmediateDeath Object
4
// Script Author: Christian Whitehead/Simon Thomley
5
// Unpacked by Rubberduckycooly's script unpacker
6
// ----------------------------------
7
8
// This Object is used in Mission "Mercy" - M027 - Mission_Zone07
9
10
// ========================
11
// Aliases
12
// ========================
13
14
// Mission Function No. Aliases
15
private alias 8 : MISSIONNO_MERCY
16
17
18
// ========================
19
// Events
20
// ========================
21
22
event ObjectStartup
23
if stage.actNum == 1
24
game.missionFunctionNo = MISSIONNO_MERCY
25
game.missionValue = 0
26
end if
27
28
foreach (TypeName[ImmediateDeath], arrayPos0, ALL_ENTITIES)
29
object[arrayPos0].priority = PRIORITY_INACTIVE
30
next
31
end event
32
33
34
// ========================
35
// Editor Events
36
// ========================
37
38
event RSDKDraw
39
DrawSprite(0)
40
end event
41
42
43
event RSDKLoad
44
LoadSpriteSheet("Global/Display.gif")
45
SpriteFrame(-16, -16, 32, 32, 1, 143)
46
47
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
48
end event
49
50