-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathscript_20813718c06b8e14.gsc
279 lines (260 loc) · 4.72 KB
/
script_20813718c06b8e14.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
271
272
273
274
275
276
277
278
// 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\lui_shared.csc;
class cct_timer_mod_ticks : cluielem
{
/*
Name: constructor
Namespace: cct_timer_mod_ticks
Checksum: 0x4FFBA72A
Offset: 0x230
Size: 0x14
Parameters: 0
Flags: 8
*/
constructor()
{
}
/*
Name: destructor
Namespace: cct_timer_mod_ticks
Checksum: 0x4A621EB6
Offset: 0x5B0
Size: 0x14
Parameters: 0
Flags: 16, 128
*/
destructor()
{
}
/*
Name: set_timemod
Namespace: cct_timer_mod_ticks
Checksum: 0xF44FD624
Offset: 0x578
Size: 0x30
Parameters: 2
Flags: None
*/
function set_timemod(localclientnum, value)
{
[[ self ]]->set_data(localclientnum, "timeMod", value);
}
/*
Name: set_state
Namespace: cct_timer_mod_ticks
Checksum: 0x593A9C9E
Offset: 0x3A8
Size: 0x1C4
Parameters: 2
Flags: None
*/
function set_state(localclientnum, state_name)
{
if(#"defaultstate" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 0);
}
else
{
if(#"plus" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 1);
}
else
{
if(#"minus" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 2);
}
else
{
if(#"plus_destroyedobj" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 3);
}
else
{
if(#"plus_dogkill" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 4);
}
else
{
if(#"hash_654551b30d95836c" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 5);
}
else
{
if(#"plus_multikill" == state_name)
{
[[ self ]]->set_data(localclientnum, "_state", 6);
}
else
{
/#
assertmsg("");
#/
/#
#/
}
}
}
}
}
}
}
}
/*
Name: open
Namespace: cct_timer_mod_ticks
Checksum: 0x3856A1CD
Offset: 0x370
Size: 0x2C
Parameters: 1
Flags: None
*/
function open(localclientnum)
{
cluielem::open(localclientnum, #"ct_timer_mod_ticks");
}
/*
Name: function_fa582112
Namespace: cct_timer_mod_ticks
Checksum: 0xE97E35B5
Offset: 0x308
Size: 0x60
Parameters: 1
Flags: None
*/
function function_fa582112(localclientnum)
{
cluielem::function_fa582112(localclientnum);
[[ self ]]->set_state(localclientnum, #"defaultstate");
[[ self ]]->set_data(localclientnum, "timeMod", 0);
}
/*
Name: register_clientside
Namespace: cct_timer_mod_ticks
Checksum: 0x23DA378C
Offset: 0x2D8
Size: 0x24
Parameters: 1
Flags: None
*/
function register_clientside(uid)
{
cluielem::register_clientside(uid);
}
/*
Name: setup_clientfields
Namespace: cct_timer_mod_ticks
Checksum: 0x24B36FF5
Offset: 0x250
Size: 0x7C
Parameters: 2
Flags: None
*/
function setup_clientfields(uid, var_2b2f0c89)
{
cluielem::setup_clientfields(uid);
cluielem::add_clientfield("_state", 1, 3, "int");
cluielem::add_clientfield("timeMod", 1, 6, "int", var_2b2f0c89);
}
}
#namespace ct_timer_mod_ticks;
/*
Name: register
Namespace: ct_timer_mod_ticks
Checksum: 0x7D853C59
Offset: 0xB8
Size: 0x4C
Parameters: 2
Flags: None
*/
function register(uid, var_2b2f0c89)
{
elem = new cct_timer_mod_ticks();
[[ elem ]]->setup_clientfields(uid, var_2b2f0c89);
return elem;
}
/*
Name: register_clientside
Namespace: ct_timer_mod_ticks
Checksum: 0xDB8F4D7F
Offset: 0x110
Size: 0x40
Parameters: 1
Flags: None
*/
function register_clientside(uid)
{
elem = new cct_timer_mod_ticks();
[[ elem ]]->register_clientside(uid);
return elem;
}
/*
Name: open
Namespace: ct_timer_mod_ticks
Checksum: 0xF00DE01B
Offset: 0x158
Size: 0x1C
Parameters: 1
Flags: None
*/
function open(player)
{
[[ self ]]->open(player);
}
/*
Name: close
Namespace: ct_timer_mod_ticks
Checksum: 0x82E5F13C
Offset: 0x180
Size: 0x1C
Parameters: 1
Flags: None
*/
function close(player)
{
[[ self ]]->close(player);
}
/*
Name: is_open
Namespace: ct_timer_mod_ticks
Checksum: 0x615C3B8D
Offset: 0x1A8
Size: 0x1A
Parameters: 1
Flags: None
*/
function is_open(localclientnum)
{
return [[ self ]]->is_open(localclientnum);
}
/*
Name: set_state
Namespace: ct_timer_mod_ticks
Checksum: 0xAFA1A19
Offset: 0x1D0
Size: 0x28
Parameters: 2
Flags: None
*/
function set_state(localclientnum, state_name)
{
[[ self ]]->set_state(localclientnum, state_name);
}
/*
Name: set_timemod
Namespace: ct_timer_mod_ticks
Checksum: 0x79C8F290
Offset: 0x200
Size: 0x28
Parameters: 2
Flags: None
*/
function set_timemod(localclientnum, value)
{
[[ self ]]->set_timemod(localclientnum, value);
}