-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,music_init_counter].cs2
44 lines (44 loc) · 1.28 KB
/
[clientscript,music_init_counter].cs2
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
// 2257
[clientscript,music_init_counter](component $component0, int $count1)
if_setontimer(null, $component0);
def_int $flagsarray0(calc(21 + 1));
$flagsarray0(1) = %var20;
$flagsarray0(2) = %var21;
$flagsarray0(3) = %var22;
$flagsarray0(4) = %var23;
$flagsarray0(5) = %var24;
$flagsarray0(6) = %var25;
$flagsarray0(7) = %var298;
$flagsarray0(8) = %var311;
$flagsarray0(9) = %var346;
$flagsarray0(10) = %var414;
$flagsarray0(11) = %var464;
$flagsarray0(12) = %var598;
$flagsarray0(13) = %var662;
$flagsarray0(14) = %var721;
$flagsarray0(15) = %var906;
$flagsarray0(16) = %var1009;
$flagsarray0(17) = %var1338;
$flagsarray0(18) = %var1681;
$flagsarray0(19) = %var2065;
$flagsarray0(20) = %var2237;
$flagsarray0(21) = %var2950;
def_int $int2 = 0;
def_coord $coord3 = null;
def_int $int4 = 0;
def_int $count5 = 0;
while ($count5 < $count1) {
$int2 = enum(int, int, enum_818, $count5);
$coord3 = enum(int, coord, enum_819, $int2);
if ($coord3 ! null) {
if (testbit($flagsarray0(coordx($coord3)), coordz($coord3)) = ^true) {
$int4 = calc($int4 + 1);
} else if ($int2 = 331 & %varbit1028 > 35) {
$int4 = calc($int4 + 1);
}
} else {
$int4 = calc($int4 + 1);
}
$count5 = calc($count5 + 1);
}
if_settext("<~tostring_spacer(~min($int4, $count1), ",")> / <~tostring_spacer($count1, ",")>", $component0);