-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,script6507].cs2
37 lines (37 loc) · 1.35 KB
/
[proc,script6507].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
// 6507
[proc,script6507](dbrow $dbrow0, dbrow $dbrow1, loc $loc2, coord $coord3, obj $obj4)
def_entityoverlay $entityoverlay5 = null;
if (loc_find($coord3, $loc2) = true) {
$entityoverlay5 = entityoverlay_get_loc(5);
if ($entityoverlay5 = null) {
$entityoverlay5 = entityoverlay_create_loc(5, 1, 60, 60, 1);
} else {
cc_deleteall_entityoverlay($entityoverlay5);
}
if (if_find_entityoverlay($entityoverlay5) = ^true) {
cc_setonvartransmit("script6508($entityoverlay5, $dbrow0, $dbrow1, $loc2, $coord3, $obj4, %varbit14189, %varbit14164, %varbit14184, %varbit14182){var3546, var3543, var2855}");
}
if (%varbit14182 = 0) {
highlight_loc_off($loc2, $coord3, 9, 1);
return;
}
if (%varbit14189 = 1) {
cc_create_entityoverlay($entityoverlay5, ^iftype_graphic, 0);
cc_setsize(36, 32, ^setsize_abs, ^setsize_abs);
cc_setposition(5, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setobject_nonum($obj4, 1);
cc_setoutline(1);
cc_create_entityoverlay($entityoverlay5, ^iftype_graphic, 1);
cc_setsize(33, 36, ^setsize_abs, ^setsize_abs);
cc_setposition(-5, 0, ^setpos_abs_centre, ^setpos_abs_centre);
cc_setgraphic("side_icons,4");
}
if (%varbit14164 = 1 & ~script6472($loc2) = 1) {
highlight_loc_setup(9, ^green, 2, 30, 1);
} else {
highlight_loc_setup(9, ^red, 2, 30, 1);
}
if (%varbit14184 = 1) {
highlight_loc_on($loc2, $coord3, 9, 1);
}
}