-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,nzone_game_absorption_set].cs2
59 lines (59 loc) · 1.48 KB
/
[proc,nzone_game_absorption_set].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
// 262
[proc,nzone_game_absorption_set](component $component0, int $int1)
if_setonvartransmit("nzone_game_absorption_transmit(event_com, $int1){var1067}", $component0);
if ($int1 <= 0) {
if (cc_find($component0, 0) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 1) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 2) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 3) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 4) = ^true) {
cc_sethide(true);
}
if (cc_find($component0, 5) = ^true) {
cc_sethide(true);
}
return;
}
if (cc_find($component0, 0) = ^true) {
cc_sethide(false);
}
if (cc_find($component0, 1) = ^true) {
cc_sethide(false);
}
if (cc_find($component0, 2) = ^true) {
cc_sethide(false);
}
if (cc_find($component0, 4) = ^true) {
cc_sethide(false);
}
def_int $int2 = calc(50 * 3);
def_int $int3 = 0;
if (cc_find($component0, 3) = ^true & .cc_find($component0, 5) = ^true) {
cc_sethide(false);
.cc_sethide(false);
if ($int1 < interpolate(0, 40, 0, 100, 50)) {
cc_setobject(absorption_1_11737, 1);
} else if ($int1 < interpolate(0, 75, 0, 100, 50)) {
cc_setobject(absorption_2_11736, 1);
} else if ($int1 < interpolate(0, 95, 0, 100, 50)) {
cc_setobject(absorption_3_11735, 1);
} else {
cc_setobject(absorption_4_11734, 1);
}
if ($int1 < $int2) {
$int3 = $int1;
} else {
$int3 = $int2;
}
$int3 = interpolate(0, $int3, 0, $int2, 255);
.cc_setcolour(~rgb_to_hex(255, $int3, $int3));
.cc_settext(~tostring_spacer($int1, ","));
}