-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathscript_22593c890fa92d35.gsc
271 lines (260 loc) · 6.91 KB
/
script_22593c890fa92d35.gsc
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
// Decompiled by Serious. Credits to Scoba for his original tool, Cerberus, which I heavily upgraded to support remaining features, other games, and other platforms.
#using scripts\core_common\util_shared.gsc;
#using scripts\mp_common\item_supply_drop.gsc;
#using scripts\core_common\player_insertion.gsc;
#using scripts\core_common\struct.gsc;
#using scripts\core_common\callbacks_shared.gsc;
#using scripts\core_common\system_shared.gsc;
#namespace namespace_795feefe;
/*
Name: __init__system__
Namespace: namespace_795feefe
Checksum: 0x2CB416E4
Offset: 0xF8
Size: 0x3C
Parameters: 0
Flags: AutoExec
*/
function autoexec __init__system__()
{
system::register(#"hash_53d8c22399769679", &__init__, undefined, undefined);
}
/*
Name: __init__
Namespace: namespace_795feefe
Checksum: 0x9BCDADA0
Offset: 0x140
Size: 0x16C
Parameters: 0
Flags: Linked
*/
function __init__()
{
level.var_5c9e1f9 = (isdefined(getgametypesetting(#"hash_701bac755292fab2")) ? getgametypesetting(#"hash_701bac755292fab2") : 0) || (isdefined(getgametypesetting(#"hash_697d65a68cc6c6f1")) ? getgametypesetting(#"hash_697d65a68cc6c6f1") : 0);
if(level.var_5c9e1f9)
{
level.var_f5ea5804 = 0;
level callback::add_callback(#"hash_3057417db7f8acdd", &function_d53a8c5b);
level callback::add_callback(#"hash_405e46788e83af41", &function_d53a8c5b);
level callback::add_callback(#"hash_7912e21750e4010d", &function_d53a8c5b);
}
/#
level thread function_fc45523f();
#/
}
/*
Name: function_d53a8c5b
Namespace: namespace_795feefe
Checksum: 0x68892A64
Offset: 0x2B8
Size: 0x13C
Parameters: 0
Flags: Linked
*/
function function_d53a8c5b()
{
if(!(isdefined(level.var_f5ea5804) && level.var_f5ea5804))
{
zombie_plane = function_9dc0fa01();
if(isdefined(zombie_plane))
{
zombie_plane player_insertion::function_723d686d();
zombie_plane_flight_goal = struct::get("zombie_plane_flight_goal", "targetname");
if(isdefined(zombie_plane_flight_goal))
{
zombie_plane thread function_3e59cbbb(zombie_plane_flight_goal);
}
}
}
else
{
level callback::remove_callback(#"hash_3057417db7f8acdd", &function_d53a8c5b);
level callback::remove_callback(#"hash_405e46788e83af41", &function_d53a8c5b);
level callback::remove_callback(#"hash_7912e21750e4010d", &function_d53a8c5b);
}
}
/*
Name: function_3e59cbbb
Namespace: namespace_795feefe
Checksum: 0x7DF7D86C
Offset: 0x400
Size: 0xCC
Parameters: 1
Flags: Linked
*/
function function_3e59cbbb(goal)
{
level endon(#"game_ended");
self endon(#"death");
self function_a57c34b7(goal.origin, 0, 0);
self waittill(#"goal", #"near_goal");
self player_insertion::function_723d686d();
waitframe(1);
self ghost();
wait(1);
self delete();
}
/*
Name: function_f3dbfe8d
Namespace: namespace_795feefe
Checksum: 0xA9AE4388
Offset: 0x4D8
Size: 0x12E
Parameters: 15
Flags: Linked
*/
function function_f3dbfe8d(einflictor, eattacker, idamage, idflags, smeansofdeath, weapon, vpoint, vdir, shitloc, vdamageorigin, psoffsettime, damagefromunderneath, modelindex, partname, vsurfacenormal)
{
newhealth = max(self.health - idamage, 0);
if(newhealth <= 0)
{
level.var_f5ea5804 = 1;
self ghost();
if(!(isdefined(level.var_f2ea2755) && level.var_f2ea2755))
{
item_supply_drop::spawn_supply_drop(self.origin, #"hash_6bf51ee970d5ba5e");
level.var_f2ea2755 = 1;
}
}
return idamage;
}
/*
Name: function_9dc0fa01
Namespace: namespace_795feefe
Checksum: 0xFDA160E3
Offset: 0x610
Size: 0x2C2
Parameters: 0
Flags: Linked
*/
function function_9dc0fa01()
{
var_7206c0ef = getent("motd_plane_ee", "targetname");
zombie_plane_flight_goal = struct::get("zombie_plane_flight_goal", "targetname");
if(isdefined(level.deathcircle) && isdefined(var_7206c0ef) && isdefined(zombie_plane_flight_goal))
{
center = level.deathcircle.origin;
radius = level.deathcircle.radius;
angle = randomint(360);
x_pos = center[0] + (radius * cos(angle));
y_pos = center[1] + (radius * sin(angle));
var_7206c0ef.origin = (x_pos, y_pos, 10000);
var_e3b87be8 = center[0] + (radius * (cos(angle + 180)));
var_8e6c495b = center[1] + (radius * (sin(angle + 180)));
zombie_plane_flight_goal.origin = (var_e3b87be8, var_8e6c495b, 10000);
zombie_plane = spawnvehicle("vehicle_zmb_air_alcatraz_plane", var_7206c0ef.origin, vectortoangles(vectornormalize(zombie_plane_flight_goal.origin - var_7206c0ef.origin)));
if(!isdefined(zombie_plane))
{
return;
}
zombie_plane.overridevehicledamage = &function_f3dbfe8d;
zombie_plane setforcenocull();
zombie_plane setneargoalnotifydist(128);
zombie_plane.maxhealth = 1;
zombie_plane setspeed(50);
return zombie_plane;
}
}
/*
Name: function_fc45523f
Namespace: namespace_795feefe
Checksum: 0xD9D925C
Offset: 0x8E0
Size: 0x84
Parameters: 0
Flags: None
*/
function function_fc45523f()
{
/#
while(!canadddebugcommand())
{
waitframe(1);
}
mapname = util::get_map_name();
adddebugcommand(("" + mapname) + "");
level thread function_37401a52();
#/
}
/*
Name: function_37401a52
Namespace: namespace_795feefe
Checksum: 0x8C1C774F
Offset: 0x970
Size: 0x116
Parameters: 0
Flags: None
*/
function function_37401a52()
{
/#
self notify("");
self endon("");
level endon(#"game_ended");
while(true)
{
if(getdvarint(#"hash_533e1b9932a65628", 0))
{
zombie_plane = function_de4b0705();
if(isdefined(zombie_plane))
{
zombie_plane player_insertion::function_723d686d();
zombie_plane_flight_goal = struct::get("", "");
if(isdefined(zombie_plane_flight_goal))
{
zombie_plane thread function_3e59cbbb(zombie_plane_flight_goal);
}
}
setdvar(#"hash_533e1b9932a65628", 0);
}
waitframe(1);
}
#/
}
/*
Name: function_de4b0705
Namespace: namespace_795feefe
Checksum: 0x42C2645D
Offset: 0xA90
Size: 0x304
Parameters: 0
Flags: None
*/
function function_de4b0705()
{
/#
var_7206c0ef = getent("", "");
zombie_plane_flight_goal = struct::get("", "");
if(!isdefined(level.deathcircle) && isdefined(var_7206c0ef) && isdefined(zombie_plane_flight_goal))
{
var_8a2c40d0 = struct::get("", "");
if(isdefined(var_8a2c40d0))
{
center = var_8a2c40d0.origin;
radius = 9000;
angle = randomint(360);
x_pos = center[0] + (radius * cos(angle));
y_pos = center[1] + (radius * sin(angle));
var_7206c0ef.origin = (x_pos, y_pos, 10000);
var_e3b87be8 = center[0] + (radius * (cos(angle + 180)));
var_8e6c495b = center[1] + (radius * (sin(angle + 180)));
zombie_plane_flight_goal.origin = (var_e3b87be8, var_8e6c495b, 10000);
zombie_plane = spawnvehicle("", var_7206c0ef.origin, vectortoangles(vectornormalize(zombie_plane_flight_goal.origin - var_7206c0ef.origin)));
if(!isdefined(zombie_plane))
{
return;
}
zombie_plane.overridevehicledamage = &function_f3dbfe8d;
zombie_plane setforcenocull();
zombie_plane setneargoalnotifydist(128);
zombie_plane.maxhealth = 1;
zombie_plane setspeed(50);
return zombie_plane;
}
}
else
{
function_9dc0fa01();
}
#/
}