1 |
if (invincibility_timer > 0 && other.big == 0) |
2 |
{ |
3 |
with (other) |
4 |
instance_destroy(); |
5 |
exit; |
6 |
} |
7 |
invincibility_timer = 10; |
8 |
if (global.turntimer < 150) |
9 |
{ |
10 |
hp = 0; |
11 |
if (type == 0 || (type == 1 && obj_spamton_neo_enemy.difficulty > 2 && global.turntimer > 20)) |
12 |
{ |
13 |
global.turntimer = 20; |
14 |
with (obj_sneo_wireheart) |
15 |
{ |
16 |
hp = 0; |
17 |
destroyed = 1; |
18 |
} |
19 |
} |
20 |
} |
21 |
else |
22 |
{ |
23 |
if (type == 0 || (type == 1 && obj_spamton_neo_enemy.difficulty > 2)) |
24 |
{ |
25 |
if (other.big == 1) |
26 |
{ |
27 |
global.turntimer -= (80 - (chargeshothitcount * 10)); |
28 |
if (chargeshothitcount < 3) |
29 |
chargeshothitcount++; |
30 |
} |
31 |
else |
32 |
{ |
33 |
global.turntimer -= (20 - normalshothitcount); |
34 |
if (normalshothitcount < 10) |
35 |
normalshothitcount++; |
36 |
} |
37 |
} |
38 |
else if (other.big == 1) |
39 |
{ |
40 |
hp -= 5; |
41 |
} |
42 |
else |
43 |
{ |
44 |
hp--; |
45 |
} |
46 |
if (scr_debug()) |
47 |
{ |
48 |
show_debug_message(type); |
49 |
show_debug_message(hp); |
50 |
} |
51 |
} |
52 |
with (other) |
53 |
instance_destroy(); |
54 |
damagetimer = 5; |
55 |
snd_play(snd_damage); |
56 |
if (hp <= 0) |
57 |
destroyed = 1; |