-
Notifications
You must be signed in to change notification settings - Fork 3
/
e_stway.tsct
146 lines (131 loc) · 2.97 KB
/
e_stway.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
/*
* 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_2 { 0, 0 }
VAR_5 2
VAR_6 1
VAR_7 2
VAR_11 { -188, -900, -2090, 189, -900, -2067 }
VAR_12 { -220, 0, -4200 }
._on_load
call load_sound_set(int 30)
var torches2_sound_ref = call play_loaded_sound(int 1, int -1, int 30, int 0)
call load_sound_set(int 75)
/* play the sound 'rumble2' */
call play_loaded_sound(int 1, int -1, int 75, int 0)
/* play the sound 'rockbit1' */
call play_loaded_sound(int 2, int -1, int 75, int 0)
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_9
}
._infinite_loop
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_10
}
._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
execute SCRIPT_4
var VAR_1 = int 1
call set_input_system(int 2)
._SCRIPT_4
gamevar SMACKER_X = int 0
gamevar SMACKER_Y = int 128
call play_2d_anim("e_stway", int 0, int 0, var &VAR_1)
._SCRIPT_5
execute SCRIPT_8
var VAR_15 = var VAR_13
var VAR_13 = var VAR_2
switch(var VAR_9)
{
case 0
if(var VAR_10 == int 2)
{
call func_113(int 8, int 8)
}
if(var VAR_13 == int 56)
{
var VAR_9 ++
var VAR_8 = int 1
var david = call get_david_char()
while(var david)
{
call set_char_running(var david)
call func_2b(var david, int 1)
var david = call get_next_char_from_list()
}
}
break
case 1
if(call func_8a(var &VAR_11))
{
var VAR_9 ++
call func_e6("outro", "e_cori_1", var &VAR_12, int 1)
}
break
}
execute SCRIPT_7
if(var VAR_8)
{
call func_59(var torches2_sound_ref)
var VAR_8 = int 0
}
if(var VAR_15 != var VAR_13)
{
switch(var VAR_13)
{
}
}
var VAR_10 ++
._SCRIPT_6
._SCRIPT_7
if(call is_local_timer_greater_than(var VAR_6))
{
var VAR_4 = call randomize_int(int 0, var VAR_5 + int 1)
var VAR_6 = call randomize_int(int 1, var VAR_7 + int 1)
gamevar scroll_x_shake = var VAR_4
call reset_local_timer()
}
._SCRIPT_8
if(gamevar script_time > var VAR_20)
{
var VAR_20 = gamevar script_time + int 10 + call randomize_int(int 0, int 15)
var VAR_19 = int 3 + call randomize_int(int 0, int 25)
var VAR_18 = call play_loaded_sound(var VAR_19, int 0, int 75, int 0)
call set_sound_volume(var VAR_18, int 100 + call randomize_int(int 0, int 40))
}
._SCRIPT_9
._SCRIPT_10