forked from RuneStar/cs2-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[proc,script3180].cs2
44 lines (44 loc) · 983 Bytes
/
[proc,script3180].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
// 3180
[proc,script3180](int $int0)(struct)
def_struct $struct1 = enum(int, struct, enum_2670, %varbit10032);
def_enum $enum2 = null;
def_struct $struct3 = null;
def_int $int4 = 0;
def_int $int5 = -1;
def_int $int6 = 0;
def_int $int7 = 0;
if ($struct1 ! null) {
$enum2 = struct_param($struct1, param_870);
if ($enum2 ! null) {
$int4 = enum_getoutputcount($enum2);
if ($int0 = 1) {
return(enum(int, struct, $enum2, calc($int4 - 1)));
}
while ($int6 < $int4) {
$struct3 = enum(int, struct, $enum2, $int6);
$int5 = struct_param($struct3, param_877);
if (%var2615 < $int5) {
return($struct3);
}
switch_int ($int6) {
case 0 :
$int7 = %varbit10049;
case 1 :
$int7 = %varbit10050;
case 2 :
$int7 = %varbit10051;
case 3 :
$int7 = %varbit10052;
case 4 :
$int7 = %varbit10053;
case default :
$int7 = 0;
}
if ($int7 = 0) {
return($struct3);
}
$int6 = calc($int6 + 1);
}
}
}
return(null);