-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path[proc,interact_entity_highlight_pulse].cs2
35 lines (35 loc) · 1.2 KB
/
[proc,interact_entity_highlight_pulse].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
// 5963
[proc,interact_entity_highlight_pulse](int $int0, entityoverlay $entityoverlay1, npc_uid $npc_uid2, int $int3, loc $loc4, coord $coord5, obj $obj6, coord $coord7, string $string0)
if (~interact_entity_highlight_pulse_continue($npc_uid2, $int3, $loc4, $coord5, $obj6, $coord7, $string0) = 0) {
return;
}
def_int $int8 = calc(clientclock - $int0);
def_int $int9 = calc(17 / 2);
def_int $int10 = -1;
def_int $int11 = -1;
def_int $int12 = -1;
def_int $int13 = -1;
if (if_find_entityoverlay($entityoverlay1) = ^true) {
if ($int8 >= 17) {
cc_setontimer(null);
~entity_highlight_clear(4);
~entity_highlight_setup(4, 2, 0, ~script758);
return;
}
$int10 = $int8;
if ($int8 >= $int9) {
$int10 = calc(17 - $int8);
}
$int11 = _7460;
if (get_minimenu_opened = true) {
~entity_highlight_clear(4);
~entity_highlight_minimenu(4);
if ($int8 >= $int9) {
$int0 = calc($int0 + 1);
}
cc_setontimer("interact_entity_highlight_pulse($int0, $entityoverlay1, %varcint973, %varcint974, %varcint975, %varcint976, %varcint977, %varcint978, %varcstring979)");
}
$int12 = calc(128 - scale($int10, $int9, 128));
$int13 = calc(2 + scale($int10, $int9, 2));
~entity_highlight_setup(4, $int13, $int12, ~script758);
}