-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,bolt_pouch_extra_ammo_draw].cs2
35 lines (35 loc) · 1.22 KB
/
[proc,bolt_pouch_extra_ammo_draw].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
// 4039
[proc,bolt_pouch_extra_ammo_draw](component $component0, component $component1)
cc_deleteall($component0);
if_setop(1, "", $component0);
if_setonop(null, $component0);
if_sethide(true, $component1);
if (inv_total(inv, bolt_pouch_9433) <= 0) {
return;
}
if (~script5027 = 1 | ~script5028(inv) = 1) {
return;
}
if_sethide(false, $component1);
cc_create($component0, ^iftype_graphic, 0);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setsize(36, 36, ^setsize_abs, ^setsize_abs);
cc_setgraphic("miscgraphics,0");
def_int $num2 = %varbit2472;
def_obj $obj3 = enum(int, obj, enum_336, %varbit2476);
if ($obj3 = null) {
cc_create($component0, ^iftype_graphic, 1);
cc_setsize(32, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(0, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("wornicons,10");
} else {
cc_create($component0, ^iftype_graphic, 1);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(2, 2, ^setpos_abs_left, ^setpos_abs_top);
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setobject($obj3, $num2);
if_setop(1, "Wear", $component0);
if_setonop("cc_settrans_temporarily($component0, 1, 100, 0)", $component0);
if_setopbase("<col=ff9040><oc_name($obj3)></col>", $component0);
}