1 |
if (i_ex(target)) |
2 |
{ |
3 |
image_index = target.image_index; |
4 |
sprite_index = target.sprite_index; |
5 |
if (global.chapter == 2 && target.object_index == obj_mauswheel_enemy) |
6 |
sprite_index = target.idlesprite; |
7 |
if (global.chapter == 2 && target.object_index == obj_berdlyb_enemy) |
8 |
sprite_index = target.hurtsprite; |
9 |
if (global.chapter == 2 && target.object_index == obj_spamton_neo_enemy) |
10 |
{ |
11 |
siner += flashspeed; |
12 |
if (siner > 4 && sin(siner / 3) < 0) |
13 |
{ |
14 |
instance_destroy(); |
15 |
obj_spamton_neo_enemy.state = 0; |
16 |
exit; |
17 |
} |
18 |
if (siner == flashspeed) |
19 |
{ |
20 |
with (obj_spamton_neo_enemy) |
21 |
{ |
22 |
partmode = 40; |
23 |
shockthreshold = 15; |
24 |
shocktimer = 9999; |
25 |
hurttimer2 = 10; |
26 |
} |
27 |
} |
28 |
for (i = 0; i < 8; i += 1) |
29 |
{ |
30 |
obj_spamton_neo_enemy.flash = 1; |
31 |
obj_spamton_neo_enemy.fsiner = obj_spamton_neo_enemy.partsiner[i] / 8; |
32 |
} |
33 |
exit; |
34 |
} |
35 |
} |
36 |
siner += flashspeed; |
37 |
d3d_set_fog(true, flashcolor, 0, 1); |
38 |
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, 0, image_blend, sin(siner / 3)); |
39 |
d3d_set_fog(false, c_black, 0, 0); |
40 |
if (siner > 4 && sin(siner / 3) < 0) |
41 |
instance_destroy(); |