1 |
if (state == 3) |
2 |
{ |
3 |
sleepcounter = 99; |
4 |
sleeping = 0; |
5 |
global.monstercomment[myself] = ; |
6 |
global.monsterstatus[myself] = 0; |
7 |
idlesprite = spr_susie_enemy; |
8 |
hurttimer -= 1; |
9 |
if (hurttimer < 0) |
10 |
{ |
11 |
state = 0; |
12 |
} |
13 |
else |
14 |
{ |
15 |
if (global.monster[myself] == 0) |
16 |
{ |
17 |
snd_play(snd_sussurprise); |
18 |
with (obj_susieandlancer_event) |
19 |
{ |
20 |
with (s) |
21 |
{ |
22 |
visible = 1; |
23 |
sprite_index = spr_susie_enemy_defeat; |
24 |
depth = 100; |
25 |
} |
26 |
} |
27 |
visible = 0; |
28 |
instance_destroy(); |
29 |
} |
30 |
hurtshake += 1; |
31 |
if (hurtshake > 1) |
32 |
{ |
33 |
if (shakex > 0) |
34 |
shakex -= 1; |
35 |
if (shakex < 0) |
36 |
shakex += 1; |
37 |
shakex = -shakex; |
38 |
hurtshake = 0; |
39 |
} |
40 |
draw_sprite_ext(hurtsprite, 0, x + shakex, y, 2, 2, 0, image_blend, 1); |
41 |
} |
42 |
} |
43 |
if (state == 0) |
44 |
{ |
45 |
siner += 1; |
46 |
thissprite = idlesprite; |
47 |
if (global.mercymod[myself] >= global.mercymax[myself]) |
48 |
thissprite = idlesprite; |
49 |
draw_sprite_ext(thissprite, siner / 6, x, y, 2, 2, 0, image_blend, 1); |
50 |
if (flash == 1) |
51 |
{ |
52 |
fsiner += 1; |
53 |
d3d_set_fog(true, c_white, 0, 1); |
54 |
draw_sprite_ext(thissprite, siner / 6, x, y, 2, 2, 0, image_blend, (-cos(fsiner / 5) * 0.4) + 0.6); |
55 |
d3d_set_fog(false, c_black, 0, 0); |
56 |
} |
57 |
} |
58 |
if (becomeflash == 0) |
59 |
flash = 0; |
60 |
becomeflash = 0; |