This repository was archived by the owner on Feb 4, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy path[clientscript,orbs_update_health].cs2
53 lines (53 loc) · 2.41 KB
/
[clientscript,orbs_update_health].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
// 446
[clientscript,orbs_update_health](component $component0, component $component1, component $component2, component $component3, component $component4, component $component5, component $component6, component $component7, component $component8, component $component9)
if ($component0 ! null) {
if_setnoclickthrough(true, $component7);
if_setonstattransmit("orbs_update_health(null, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9){hitpoints}", $component0);
if_setonvartransmit("orbs_update_health(null, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9){var102, var456, var2648, var2898, var1377}", $component0);
if_setonsubchange("orbs_update_health(null, $component1, $component2, $component3, $component4, $component5, $component6, $component7, $component8, $component9)", $component0);
}
def_int $int10 = stat_base(hitpoints);
if (%varbit5314 = 1) {
$int10 = 99;
}
~orbs_update($component1, $component2, stat(hitpoints), $int10);
if (%var102 > 0 | %var456 > 0 | %varbit10151 > 0) {
if_settrans(100, $component3);
} else {
if_settrans(0, $component3);
}
if (%varbit10151 > 0) {
if_setgraphic("orb_filler,12", $component4);
} else if (%var456 > 0) {
if_setgraphic("orb_filler,3", $component4);
} else if (%var102 >= 1000000) {
if_setgraphic("orb_filler,8", $component4);
} else if (%var102 > 0) {
if_setgraphic("orb_filler,2", $component4);
} else {
if_setgraphic("orb_filler,1", $component4);
}
if (%var102 > 0) {
if (%var102 >= 1000000) {
if_setgraphic("orb_filler,8", $component6);
} else {
if_setgraphic("orb_filler,2", $component6);
}
if_sethide(false, $component5);
} else {
if_sethide(true, $component5);
}
def_graphic $graphic11 = ~graphic_device("orb_frame,1", graphic_5792);
if ((%var102 > 0 | %var456 > 0 | %varbit10151 > 0) & ~toplevel_check_sidepanel(3) = true) {
if_setonmouserepeat("graphic_swapper($component7, $graphic11)", $component8);
$graphic11 = ~graphic_device("orb_frame,0", graphic_5791);
if_setonmouseleave("graphic_swapper($component7, $graphic11)", $component8);
if_setgraphic($graphic11, $component7);
if_sethide(false, $component8);
} else {
if_setgraphic(~graphic_device("orb_frame,0", graphic_5791), $component7);
if_setonmouserepeat(null, $component8);
if_setonmouseleave(null, $component8);
if_sethide(true, $component8);
}
if_setgraphic("orb_icon,0", $component9);