-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,music_vartransmit].cs2
50 lines (50 loc) · 1.46 KB
/
[clientscript,music_vartransmit].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
45
46
47
48
49
50
// 313
[clientscript,music_vartransmit](component $component0, component $component1, int $count2)
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 $int3 = 0;
def_coord $coord4 = null;
def_int $int5 = 0;
def_int $count6 = 0;
while ($count6 < $count2) {
if (cc_find($component0, $count6) = ^true) {
$int3 = enum(int, int, enum_818, $count6);
$coord4 = enum(int, coord, enum_819, $int3);
if ($coord4 ! null) {
if (testbit($flagsarray0(coordx($coord4)), coordz($coord4)) = ^true) {
~music_setcolour(0x0dc10d);
$int5 = calc($int5 + 1);
} else if ($int3 = 331 & %varbit1028 > 35) {
~music_setcolour(0x0dc10d);
$int5 = calc($int5 + 1);
} else {
~music_setcolour(^red);
}
} else {
~music_setcolour(0x0dc10d);
$int5 = calc($int5 + 1);
}
}
$count6 = calc($count6 + 1);
}
if_settext("<~tostring_spacer(~min($int5, $count2), ",")> / <~tostring_spacer($count2, ",")>", $component1);