1 |
with (other) |
2 |
event_user(0); |
3 |
if (obj_sneo_lastattack.endattack != 2) |
4 |
{ |
5 |
snd_play(snd_damage); |
6 |
if (instance_exists(obj_sneo_lastattack)) |
7 |
{ |
8 |
with (obj_sneo_lastattack) |
9 |
hurtalpha = 1; |
10 |
} |
11 |
if (obj_sneo_lastattack.endattack == 0) |
12 |
obj_sneo_lastattack.skip_1st_part_hp -= other.damage; |
13 |
if (obj_sneo_lastattack.skip_1st_part_hp < 1 && obj_sneo_lastattack.endattack == 0) |
14 |
obj_sneo_lastattack.endattack = 1; |
15 |
if (obj_sneo_lastattack.skip_2nd_part_hp < 1 && obj_sneo_lastattack.endattack == 1) |
16 |
{ |
17 |
with (obj_sneo_bigshot) |
18 |
{ |
19 |
playerhit = 1; |
20 |
damage = 0; |
21 |
event_user(0); |
22 |
} |
23 |
obj_sneo_lastattack.endattack = 2; |
24 |
} |
25 |
} |