-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[clientscript,barbassault_turret_data].cs2
60 lines (60 loc) · 1.86 KB
/
[clientscript,barbassault_turret_data].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
// 444
[clientscript,barbassault_turret_data](int $int0, int $int1, int $int2, int $int3, int $int4)
if ($int4 ! 10) {
$int3 = 0;
}
if ($int0 <= 0 & $int1 <= 0 & $int2 <= 0 & $int3 <= 0) {
if_sethide(false, barbassault_turret:1);
if_sethide(true, barbassault_turret:2);
return;
}
if_sethide(true, barbassault_turret:1);
if_sethide(false, barbassault_turret:2);
def_model $model5 = model_20542;
if ($int0 > 0) {
$model5 = model_20544;
}
if_setmodel($model5, barbassault_turret:4);
if_setmodel($model5, barbassault_turret:11);
if_setmodel($model5, barbassault_turret:18);
if_setmodel($model5, barbassault_turret:25);
if ($int1 > 0) {
$model5 = model_20545;
} else {
$model5 = model_20542;
}
if_setmodel($model5, barbassault_turret:6);
if_setmodel($model5, barbassault_turret:13);
if_setmodel($model5, barbassault_turret:20);
if_setmodel($model5, barbassault_turret:27);
if ($int2 > 0) {
$model5 = model_20543;
} else {
$model5 = model_20542;
}
if_setmodel($model5, barbassault_turret:8);
if_setmodel($model5, barbassault_turret:15);
if_setmodel($model5, barbassault_turret:22);
if_setmodel($model5, barbassault_turret:29);
if ($int3 > 0) {
$model5 = model_20572;
} else {
$model5 = model_20542;
}
if_setmodel($model5, barbassault_turret:32);
def_string $text0 = tostring($int0);
if_settext($text0, barbassault_turret:5);
if_settext($text0, barbassault_turret:12);
if_settext($text0, barbassault_turret:19);
if_settext($text0, barbassault_turret:26);
$text0 = tostring($int1);
if_settext($text0, barbassault_turret:7);
if_settext($text0, barbassault_turret:14);
if_settext($text0, barbassault_turret:21);
if_settext($text0, barbassault_turret:28);
$text0 = tostring($int2);
if_settext($text0, barbassault_turret:9);
if_settext($text0, barbassault_turret:16);
if_settext($text0, barbassault_turret:23);
if_settext($text0, barbassault_turret:30);
if_settext(tostring($int3), barbassault_turret:33);