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