|
1
|
if (timer == target)
|
|
2
|
{
|
|
3
|
var _sparkle = snd_play(snd_sparkle_glock);
|
|
4
|
snd_pitch(_sparkle, 1.1 + (target * 0.2));
|
|
5
|
}
|
|
6
|
timer++;
|
|
7
|
if (timer >= 24)
|
|
8
|
{
|
|
9
|
x = xstart;
|
|
10
|
y = ystart;
|
|
11
|
if (timer == 24)
|
|
12
|
{
|
|
13
|
var d = instance_create(x, y, obj_animation);
|
|
14
|
d.sprite_index = sprite_index;
|
|
15
|
d.image_yscale = 2;
|
|
16
|
d.image_xscale = 2;
|
|
17
|
}
|
|
18
|
if (!healer)
|
|
19
|
instance_destroy();
|
|
20
|
else if (timer == 48)
|
|
21
|
scr_spamton_healscr_spamton_heal
function scr_spamton_heal(arg0)
{
with (obj_dmgwriter)
{
if (delaytimer >= 1)
killactive = 1;
}
for (i = 0; i < 3; i++)
{
if (global.char[i] == 0)
continue;
var _hltarget = global.char[i];
var _curhp = global.hp[_hltarget];
if (arg0 == 0)
_healpower = global.maxhp[_hltarget] / 2;
else if (arg0 == 1)
_healpower = global.maxhp[_hltarget] / 5;
else if (arg0 == 2)
_healpower = 1;
else
_healpower = 0;
var _healpower = ceil(_healpower);
scr_heal(i, _healpower);
with (global.charinstance[i])
{
ha = instance_create(x, y, obj_healanim);
ha.target = id;
dmgwr = scr_dmgwriter_selfchar();
with (dmgwr)
{
delay = 8;
type = 3;
damage = _healpower;
}
if (global.hp[global.char[myself]] >= global.maxhp[global.char[myself]])
{
with (dmgwr)
specialmessage = 3;
}
tu += 1;
}
}
for (i = 0; i < 3; i++)
{
with (global.charinstance[i])
tu--;
}
} (heal_state);
|
|
22
|
else if (timer >= 63)
|
|
23
|
instance_destroy();
|
|
24
|
}
|
|
25
|
else if (timer >= 0 && timer <= 24)
|
|
26
|
{
|
|
27
|
x = lerp(xspawn, xstart + xoff, clamp(timer / 25, 0, 1));
|
|
28
|
y = lerp(yspawn, ystart + yoff, clamp(timer / 25, 0, 1));
|
|
29
|
if ((timer % 2) == 0)
|
|
30
|
{
|
|
31
|
var d = instance_create(x + (cos((timer / 3) + offset) * 20), y + (sin((timer / 3) + offset) * 20), obj_animation);
|
|
32
|
d.sprite_index = spr_sparestar_anim;
|
|
33
|
d.image_speed = 0.5;
|
|
34
|
d.image_blend = c_lime;
|
|
35
|
d.image_xscale = 2;
|
|
36
|
d.image_yscale = 2;
|
|
37
|
}
|
|
38
|
}
|