-
Notifications
You must be signed in to change notification settings - Fork 9
/
script_1de6f3c239229d19.gsc
225 lines (206 loc) · 3.64 KB
/
script_1de6f3c239229d19.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
// 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.gsc;
#using scripts\core_common\clientfield_shared.gsc;
class czm_game_timer : cluielem
{
var var_47e79fc;
/*
Name: constructor
Namespace: czm_game_timer
Checksum: 0x60B2E0D4
Offset: 0x240
Size: 0x14
Parameters: 0
Flags: Linked, 8
*/
constructor()
{
}
/*
Name: destructor
Namespace: czm_game_timer
Checksum: 0x27A8A3E0
Offset: 0x460
Size: 0x14
Parameters: 0
Flags: Linked, 16, 128
*/
destructor()
{
}
/*
Name: set_showzero
Namespace: czm_game_timer
Checksum: 0xE0068F7C
Offset: 0x418
Size: 0x3C
Parameters: 2
Flags: Linked
*/
function set_showzero(player, value)
{
player clientfield::function_9bf78ef8(var_47e79fc, "showzero", value);
}
/*
Name: set_minutes
Namespace: czm_game_timer
Checksum: 0xF7CE0420
Offset: 0x3D0
Size: 0x3C
Parameters: 2
Flags: Linked
*/
function set_minutes(player, value)
{
player clientfield::function_9bf78ef8(var_47e79fc, "minutes", value);
}
/*
Name: set_seconds
Namespace: czm_game_timer
Checksum: 0xDD0CC3A0
Offset: 0x388
Size: 0x3C
Parameters: 2
Flags: Linked
*/
function set_seconds(player, value)
{
player clientfield::function_9bf78ef8(var_47e79fc, "seconds", value);
}
/*
Name: close
Namespace: czm_game_timer
Checksum: 0xA0F6997F
Offset: 0x358
Size: 0x24
Parameters: 1
Flags: Linked
*/
function close(player)
{
cluielem::close_luielem(player);
}
/*
Name: open
Namespace: czm_game_timer
Checksum: 0xA0872563
Offset: 0x308
Size: 0x44
Parameters: 2
Flags: Linked
*/
function open(player, persistent = 0)
{
cluielem::open_luielem(player, "zm_game_timer", persistent);
}
/*
Name: setup_clientfields
Namespace: czm_game_timer
Checksum: 0x9A2525F1
Offset: 0x260
Size: 0x9C
Parameters: 1
Flags: Linked
*/
function setup_clientfields(uid)
{
cluielem::setup_clientfields(uid);
cluielem::add_clientfield("seconds", 1, 6, "int");
cluielem::add_clientfield("minutes", 1, 9, "int");
cluielem::add_clientfield("showzero", 1, 1, "int");
}
}
#namespace zm_game_timer;
/*
Name: register
Namespace: zm_game_timer
Checksum: 0xC1AE6460
Offset: 0xD8
Size: 0x40
Parameters: 1
Flags: None
*/
function register(uid)
{
elem = new czm_game_timer();
[[ elem ]]->setup_clientfields(uid);
return elem;
}
/*
Name: open
Namespace: zm_game_timer
Checksum: 0x1D9C3837
Offset: 0x120
Size: 0x38
Parameters: 2
Flags: None
*/
function open(player, persistent = 0)
{
[[ self ]]->open(player, persistent);
}
/*
Name: close
Namespace: zm_game_timer
Checksum: 0x4DF7D4EA
Offset: 0x160
Size: 0x1C
Parameters: 1
Flags: None
*/
function close(player)
{
[[ self ]]->close(player);
}
/*
Name: is_open
Namespace: zm_game_timer
Checksum: 0xFFA7BCDB
Offset: 0x188
Size: 0x1A
Parameters: 1
Flags: None
*/
function is_open(player)
{
return [[ self ]]->function_7bfd10e6(player);
}
/*
Name: set_seconds
Namespace: zm_game_timer
Checksum: 0x680352E8
Offset: 0x1B0
Size: 0x28
Parameters: 2
Flags: None
*/
function set_seconds(player, value)
{
[[ self ]]->set_seconds(player, value);
}
/*
Name: set_minutes
Namespace: zm_game_timer
Checksum: 0x56D6FB4A
Offset: 0x1E0
Size: 0x28
Parameters: 2
Flags: None
*/
function set_minutes(player, value)
{
[[ self ]]->set_minutes(player, value);
}
/*
Name: set_showzero
Namespace: zm_game_timer
Checksum: 0x3835487B
Offset: 0x210
Size: 0x28
Parameters: 2
Flags: None
*/
function set_showzero(player, value)
{
[[ self ]]->set_showzero(player, value);
}