forked from RuneStar/cs2-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[proc,emote_checkunlocked].cs2
83 lines (83 loc) · 1.76 KB
/
[proc,emote_checkunlocked].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
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
// 702
[proc,emote_checkunlocked](int $int0)(boolean)
def_int $int1 = 1;
def_stat $stat2 = null;
switch_int ($int0) {
case 22, 23 :
if (%varbit532 >= 7) {
return(true);
}
return(false);
case 24 :
return(~int_to_bool(%varbit1368));
case 25 :
return(~int_to_bool(%varbit1369));
case 26 :
return(~int_to_bool(%varbit1370));
case 27 :
return(~int_to_bool(%varbit1367));
case 28 :
return(~int_to_bool(%varbit2311));
case 29 :
return(~int_to_bool(%varbit2312));
case 30 :
return(~int_to_bool(%varbit2309));
case 31 :
return(~int_to_bool(%varbit2310));
case 32 :
return(~int_to_bool(%varbit1921));
case 33 :
return(~int_to_bool(%varbit1920));
case 34 :
return(~int_to_bool(%varbit1371));
case 35 :
return(~int_to_bool(%varbit2055));
case 42 :
if (%var101 >= %varbit1782 & %varbit1782 > 0) {
return(true);
}
if (%varbit4797 = 1) {
return(true);
}
if (%varbit5003 >= 3) {
return(true);
}
$stat2 = enum(int, stat, enum_681, $int1);
while ($stat2 ! null) {
if (stat_base($stat2) >= 99) {
return(true);
}
$int1 = calc($int1 + 1);
$stat2 = enum(int, stat, enum_681, $int1);
}
return(false);
case 40 :
return(~int_to_bool(%varbit1000));
case 43 :
if (%varbit4673 = 1) {
return(true);
}
return(false);
case 36 :
return(~int_to_bool(%varbit4732));
case 37 :
return(~int_to_bool(%varbit4732));
case 38 :
return(~int_to_bool(%varbit4732));
case 39 :
return(~int_to_bool(%varbit4732));
case 41 :
return(~int_to_bool(%varbit4802));
case 44 :
return(~int_to_bool(%varbit5104));
case 45 :
return(~int_to_bool(%varbit5597));
case 46 :
return(~int_to_bool(%varbit5598));
case 47 :
return(~int_to_bool(%varbit6041));
case 48 :
return(~int_to_bool(%varbit10115));
case default :
return(true);
}