1 |
if (other.active == 0) |
2 |
exit; |
3 |
if (invincibility_timer > 0) |
4 |
{ |
5 |
with (other) |
6 |
instance_destroy(); |
7 |
exit; |
8 |
} |
9 |
invincibility_timer = 10; |
10 |
if (global.turntimer < 150) |
11 |
{ |
12 |
hp = 0; |
13 |
if (type == 0 || (type == 1 && obj_spamton_neo_enemy.difficulty > 2 && global.turntimer > 20)) |
14 |
{ |
15 |
global.turntimer = 20; |
16 |
with (obj_sneo_wireheart) |
17 |
{ |
18 |
hp = 0; |
19 |
destroyed = 1; |
20 |
} |
21 |
} |
22 |
} |
23 |
else if (type == 0 || (type == 1 && obj_spamton_neo_enemy.difficulty > 2)) |
24 |
{ |
25 |
global.turntimer -= 80; |
26 |
} |
27 |
else |
28 |
{ |
29 |
hp -= 5; |
30 |
other.hp -= 10; |
31 |
other.alarm[0] = 10; |
32 |
if (!audio_is_playing(snd_hurt1)) |
33 |
snd_play(snd_hurt1); |
34 |
} |
35 |
damagetimer = 5; |
36 |
snd_play(snd_damage); |
37 |
if (hp <= 0) |
38 |
destroyed = 1; |