Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rubberduckycooly
GitHub Repository: rubberduckycooly/Sonic-CD-2011-Script-Decompilation
Path: blob/main/Scripts/Mission/ImmediateDeath.txt
1319 views
1
//--------------Sonic CD Immediate Death Script---------------//
2
//--------Scripted by Christian Whitehead 'The Taxman'--------//
3
//-------Unpacked By Rubberduckycooly's Script Unpacker-------//
4
5
// Priority
6
#alias 5 : PRIORITY_INACTIVE
7
8
// Mission Functions
9
#alias 8 : RULE_MERCY_BADNIKS
10
11
12
sub ObjectStartup
13
game.missionFunctionNo = RULE_MERCY_BADNIKS
14
game.missionValue = 0
15
16
ArrayPos0 = 32
17
while ArrayPos0 < 1056
18
if Object[ArrayPos0].Type == TypeName[ImmediateDeath]
19
Object[ArrayPos0].Priority = PRIORITY_INACTIVE
20
end if
21
ArrayPos0++
22
loop
23
end sub
24
25
26
// ========================
27
// Editor Subs
28
// ========================
29
30
sub RSDKDraw
31
DrawSprite(0)
32
end sub
33
34
35
sub RSDKLoad
36
LoadSpriteSheet("Global/Display.gif")
37
SpriteFrame(-16, -16, 32, 32, 1, 143) // #0 - "Script" Icon
38
39
SetVariableAlias(ALIAS_VAR_PROPVAL, "unused")
40
end sub
41
42
43
44