-
Notifications
You must be signed in to change notification settings - Fork 3
/
e_gates.tsct
274 lines (260 loc) · 6.83 KB
/
e_gates.tsct
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
/*
* This file was auto-generated using 'silver-reversing-sct' tool
* to better understand the scripts presented, one is encouraged to
* view the catalogs at:
* https://github.com/nadavshemesh/silver-reversing-sct/blob/master/docs/index.md
*
* Any further information and support of this project please visit:
* https://github.com/nadavshemesh/silver-reversing-sct
*/
._DATA
VAR_1 { 0, 0 }
VAR_9 0
VAR_10 { 3, VAR_11, 0, 2, 5, -8, 332, 3, VAR_12, 0, 2, 255, -15, 742, 2, 402, -11, 461, 3, VAR_13, 0, 16, VAR_9, 1, 5, 30, 3, VAR_14, 0, 8 }
VAR_11 "lookout"
VAR_12 "lookout"
VAR_13 "lookout"
VAR_14 "teeter"
init_position { 341, -7, 723 }
init_position2 { 475, 3, 752 }
init_position1 { 604, 0, 584 }
VAR_30 190
VAR_31 { -25, -1350, -1774 }
tele_position { 129, 5, 103 }
tele_position1 { -115, 6, 122 }
tele_position2 { 122, 10, -308 }
tele_position3 { -244, -15, 1787 }
tele_position4 { -389, -15, 1666 }
VAR_42 1
VAR_43 2
VAR_44 4
._on_load
call load_sound_set(int 75)
var rumble2_sound_ref = call play_loaded_sound(int 1, int -1, int 75, int 0)
call set_sound_volume(var rumble2_sound_ref, int 120)
var rockbit1_sound_ref = call play_loaded_sound(int 2, int -1, int 75, int 0)
call set_sound_volume(var rockbit1_sound_ref, int 120)
if(gamevar room_state == int 0)
{
exit_script
}
if(gamevar room_state == int 1)
{
execute SCRIPT_3
}
if(gamevar room_state == int 2)
{
execute SCRIPT_10
}
._infinite_loop
execute SCRIPT_9
if(gamevar room_state == int 0)
{
exit_script
}
if(gamevar room_state == int 1)
{
execute SCRIPT_5
}
if(gamevar room_state == int 2)
{
execute SCRIPT_11
}
._on_exit
if(gamevar room_state == int 0)
{
exit_script
}
gamevar room_state ++
if(gamevar room_state > int 2)
{
gamevar room_state = int 0
}
._SCRIPT_3
call set_input_system(int 2)
execute SCRIPT_8
call func_113(int 8, int 8)
execute SCRIPT_4
var njennifer = call create_char(var &init_position, "njennifer", int 190, int 13)
var nbeth = call create_char(var &init_position1, "nbeth", int 265, int 13)
var nbonnie = call create_char(var &init_position2, "nbonnie", int 180, int 13)
._SCRIPT_4
gamevar SMACKER_X = int 0
gamevar SMACKER_Y = int 128
call play_2d_anim("e_gates", int 0, int 0, var &VAR_0)
var VAR_0 = int 1
._SCRIPT_5
switch(var VAR_15)
{
case 0
if(var VAR_16 > int 3)
{
call func_113(int 8, int 8)
var VAR_16 = int 0
var VAR_15 ++
call char_teleport_to_pos(var VAR_2, var &tele_position, int 0)
call char_stop(var VAR_2)
call char_teleport_to_pos(var VAR_5, var &tele_position1, int 0)
call char_stop(var VAR_5)
if(var VAR_6)
{
call char_teleport_to_pos(var VAR_6, var &tele_position2, int 0)
call char_stop(var VAR_6)
}
}
break
case 1
call char_walk_to(var VAR_2, int 330, int -11, int 412)
call char_walk_to(var VAR_5, int -34, int -15, int 441)
var VAR_15 ++
var VAR_16 = int 0
if(var VAR_6)
{
call char_walk_to(var VAR_6, int 129, int 0, int 213)
}
break
case 2
if(var VAR_16 > int 60)
{
var VAR_15 ++
var VAR_16 = int 0
call char_walk_to(var njennifer, int 251, int -14, int 428)
call func_fa(var nbeth)
call func_fa(var VAR_5)
var VAR_35 = gamevar script_time
}
break
case 3
var VAR_36 = gamevar script_time - var VAR_35
if(var VAR_36 > int 16)
{
call remove_char(var nbeth)
call func_47(var VAR_5, int 8192)
call char_teleport_to_pos(var VAR_5, var &tele_position3, int 117)
var VAR_15 ++
var VAR_16 = int 0
}
break
case 4
if(call is_char_standing(var VAR_2))
{
var VAR_15 ++
var VAR_16 = int 0
if(var VAR_6)
{
call func_fa(var VAR_6)
}
call func_fa(var nbonnie)
call func_fa(var njennifer)
call func_50(var VAR_2, int 8192)
call func_115(var VAR_2, var &VAR_10)
var VAR_35 = gamevar script_time
}
break
case 5
var VAR_36 = gamevar script_time - var VAR_35
if(var VAR_36 > int 16)
{
if(var VAR_6)
{
call func_47(var VAR_6, int 8192)
call char_teleport_to_pos(var VAR_6, var &tele_position4, int 102)
}
call remove_char(var nbonnie)
call remove_char(var njennifer)
var VAR_15 ++
var VAR_16 = int 0
}
break
case 6
if(var VAR_9)
{
call func_fa(var VAR_2)
gamevar gPlayOutro = int 0
var VAR_15 ++
var VAR_16 = int 0
}
break
case 7
if(var VAR_16 > int 100)
{
call func_47(var VAR_2, int 8192)
call func_e6("OUTRO", "E_ONSHIP", var &VAR_31, int 1)
var VAR_15 ++
}
}
var VAR_16 ++
execute SCRIPT_7
var VAR_28 = var VAR_27
var VAR_27 = var VAR_1
if(var VAR_28 != var VAR_27)
{
switch(var VAR_27)
{
case 30
var rocks18_sound_ref = call play_loaded_sound(int 22, int 0, int 75, int 0)
call set_sound_volume(var rocks18_sound_ref, var VAR_30)
break
case 31
var rocks18_sound_ref = call play_loaded_sound /* 'rocks4' */ (int 8, int 0, int 75, int 0)
call set_sound_volume(var rocks18_sound_ref, var VAR_30)
break
case 107
var rocks18_sound_ref = call play_loaded_sound /* 'rocks9' */ (int 13, int 0, int 75, int 0)
call set_sound_volume(var rocks18_sound_ref, var VAR_30)
break
case 120
var rocks18_sound_ref = call play_loaded_sound /* 'rockbit3' */ (int 4, int 0, int 75, int 0)
call set_sound_volume(var rocks18_sound_ref, var VAR_30)
break
case 171
var rocks18_sound_ref = call play_loaded_sound /* 'rocks8' */ (int 12, int 0, int 75, int 0)
call set_sound_volume(var rocks18_sound_ref, int 100)
break
}
}
._SCRIPT_6
._SCRIPT_7
if(call is_local_timer_greater_than(var VAR_43))
{
var VAR_41 = call randomize_int(int 0, var VAR_42 + int 1)
var VAR_43 = call randomize_int(int 1, var VAR_44 + int 1)
gamevar scroll_x_shake = var VAR_41
call reset_local_timer()
}
._SCRIPT_8
var david = call get_david_char()
while(var david)
{
var VAR_8 = call get_char_handle_id(var david)
if(var VAR_8 == int 65536)
{
var VAR_2 = var david
var david = call get_next_char_from_list()
}
else
{
if(var ! VAR_5)
{
var VAR_5 = var david
}
else
{
if(var ! VAR_6)
{
var VAR_6 = var david
}
}
var david = call get_next_char_from_list()
}
}
._SCRIPT_9
if(gamevar script_time > var VAR_47)
{
var VAR_47 = gamevar script_time + int 10 + call randomize_int(int 0, int 15)
var VAR_46 = int 3 + call randomize_int(int 0, int 25)
var VAR_45 = call play_loaded_sound(var VAR_46, int 0, int 75, int 0)
call set_sound_volume(var VAR_45, int 50 + call randomize_int(int 0, int 20))
}
._SCRIPT_10
._SCRIPT_11