forked from RuneStar/cs2-scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path[proc,script161].cs2
47 lines (47 loc) · 1.68 KB
/
[proc,script161].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
// 161
[proc,script161](inv $inv0, int $slot1, component $component2, int $comsubid3, int $int4, component $component5, string $string0, string $string1, string $string2, string $string3, string $string4, string $string5, string $string6, string $string7, string $string8, boolean $boolean6)
def_obj $obj7 = null;
if (cc_find($component2, $comsubid3) = ^true) {
$obj7 = invother_getobj($inv0, $slot1);
if ($obj7 ! null) {
if ($boolean6 = true) {
cc_setobject($obj7, invother_getnum($inv0, $slot1));
} else {
cc_setobject_nonum($obj7, 1);
}
cc_setopbase(oc_name($obj7));
cc_setop(1, $string0);
cc_setop(2, $string1);
cc_setop(3, $string2);
cc_setop(4, $string3);
cc_setop(5, $string4);
cc_setop(6, $string5);
cc_setop(7, $string6);
cc_setop(8, $string7);
cc_setop(9, $string8);
cc_setop(10, "Examine<col=ff9040>");
if ($int4 > 0) {
cc_setdragdeadzone(5);
cc_setdragdeadtime(5);
}
if ($int4 = 1) {
cc_setondragcomplete("script155($inv0, event_comsubid, event_dropsubid, event_com, $int4, $component5, $string0, $string1, $string2, $string3, $string4, $string5, $string6, $string7, $string8)");
} else if ($int4 = 2) {
cc_setondragcomplete("script156($inv0, event_comsubid, event_dropsubid, event_com, $int4, $component5, $string0, $string1, $string2, $string3, $string4, $string5, $string6, $string7, $string8)");
}
cc_setgraphicshadow(0x333333);
cc_setoutline(1);
cc_setonop("cc_settrans_temporarily(event_com, event_comsubid, 100, 0)");
} else {
cc_setobject(null, 0);
cc_setopbase("");
cc_clearops;
if ($int4 > 0) {
cc_setdragdeadzone(0);
cc_setdragdeadtime(0);
}
cc_setondragcomplete(null);
cc_setonop(null);
}
cc_settrans(0);
}