-
Notifications
You must be signed in to change notification settings - Fork 11
/
[clientscript,buff_bar_buff_transmit].cs2
72 lines (72 loc) · 1.87 KB
/
[clientscript,buff_bar_buff_transmit].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
// 4665
[clientscript,buff_bar_buff_transmit](int $int0, struct $struct1, int $int2, component $component3, component $component4, int $int5)
if ($struct1 = null) {
return;
}
def_int $int6 = struct_param($struct1, param_1277);
def_int $int7 = 0;
def_int $int8 = 0;
def_int $int9 = 0;
def_obj $obj10 = null;
if ($int6 = 5) {
$obj10 = inv_getobj(struct_param($struct1, param_1283), struct_param($struct1, param_1351));
if ($obj10 ! null) {
$int7 = inv_getnum(struct_param($struct1, param_1283), struct_param($struct1, param_1351));
}
if ($int2 = $int7) {
return;
}
if (struct_param($struct1, param_1352) = true & oc_stackable($obj10) = false) {
$int7 = 0;
}
if ($int7 = 0) {
~buff_bar_setup($component3, $component4);
return;
}
if (cc_find($component3, $int5) = ^true) {
if ($int7 > 999) {
cc_settext("999+");
} else {
cc_settext(tostring($int7));
}
}
} else if ($int6 = 1) {
$int7 = ~script4681($int0);
if ($int2 = $int7) {
return;
}
if ($int7 = 0) {
~buff_bar_setup($component3, $component4);
return;
}
if (cc_find($component3, $int5) = ^true) {
$int7 = ~buff_bar_get_number($int0);
if ($int7 > 999) {
cc_settext("999+");
} else {
cc_settext(tostring($int7));
}
}
} else {
$int7 = ~script4681($int0);
if ($int2 = $int7) {
return;
}
if ($int7 = 0) {
~buff_bar_setup($component3, $component4);
return;
}
if ($int6 = 2 | $int6 = 3 | $int6 = 4) {
$int9 = 1;
}
if (cc_find($component3, $int5) = ^true) {
$int8 = ~buff_bar_get_number($int0);
if ($int9 = 1) {
$int8 = ~script4666($int6, $int8);
cc_setontimer("buff_bar_buff_timer($component3, $component4, $int5, clientclock, $int8, $int0, $int6, $int7, struct_param($struct1, param_1290), struct_param($struct1, param_1291), 0, 0)");
}
}
}
if (cc_find($component3, calc($int5 - 1)) = ^true) {
~buff_bar_get_transmit($int0, $struct1, $int7, $component3, $component4, $int5);
}