-
Notifications
You must be signed in to change notification settings - Fork 0
/
[proc,nightmare_totem_hud_bar_fadeout].cs2
49 lines (49 loc) · 1.49 KB
/
[proc,nightmare_totem_hud_bar_fadeout].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
// 3320
[proc,nightmare_totem_hud_bar_fadeout](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8)
def_int $int9 = 0;
if (if_gettrans($component0) ! 0) {
$int9 = if_gettrans($component0);
} else if (if_gettrans($component1) ! 0) {
$int9 = if_gettrans($component1);
} else if (if_gettrans($component2) ! 0) {
$int9 = if_gettrans($component2);
} else if (if_gettrans($component3) ! 0) {
$int9 = if_gettrans($component3);
}
def_int $int10 = 0;
def_int $int11 = 0;
def_int $int12 = 0;
def_int $int13 = 0;
if (if_getwidth($component0) = if_getwidth($component4)) {
$int10 = 1;
}
if (if_getwidth($component1) = if_getwidth($component5)) {
$int11 = 1;
}
if (if_getwidth($component2) = if_getwidth($component6)) {
$int12 = 1;
}
if (if_getwidth($component3) = if_getwidth($component7)) {
$int13 = 1;
}
if ($int10 = 0 & $int11 = 0 & $int12 = 0 & $int13 = 0) {
return;
}
if ($int9 >= 210) {
if_setontimer(null, $component8);
if_setontimer("nightmare_totem_hud_bar_fadein($component0, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8)", $component8);
return;
}
$int9 = ~min(210, calc($int9 + 3));
if ($int10 = 1) {
if_settrans($int9, $component0);
}
if ($int11 = 1) {
if_settrans($int9, $component1);
}
if ($int12 = 1) {
if_settrans($int9, $component2);
}
if ($int13 = 1) {
if_settrans($int9, $component3);
}