1 |
if (state == 3) |
2 |
{ |
3 |
hurttimer -= 1 |
4 |
if (hurttimer < 0) |
5 |
state = 0 |
6 |
else |
7 |
{ |
8 |
if (global.monster[myself] == 0) |
9 |
{ |
10 |
hspeed = 12 |
11 |
turnt -= 8 |
12 |
vspeed = -4 |
13 |
} |
14 |
hurtshake += 1 |
15 |
if (hurtshake > 1) |
16 |
{ |
17 |
if (shakex > 0) |
18 |
shakex -= 1 |
19 |
if (shakex < 0) |
20 |
shakex += 1 |
21 |
shakex = (-shakex) |
22 |
hurtshake = 0 |
23 |
} |
24 |
siner = 0 |
25 |
draw_sprite_ext(spr_checkers_idle, 0, (x + shakex), y, 2, 2, 0, image_blend, 1) |
26 |
} |
27 |
} |
28 |
if (state == 0) |
29 |
{ |
30 |
siner += 1 |
31 |
thissprite = spr_checkers_idle |
32 |
if (global.mercymod[myself] >= global.mercymax[myself]) |
33 |
thissprite = spr_checkers_idle |
34 |
draw_sprite_ext(thissprite, (siner / 3), x, y, 2, 2, 0, image_blend, 1) |
35 |
if (flash == 1) |
36 |
{ |
37 |
fsiner += 1 |
38 |
d3d_set_fog(true, c_white, 0, 1) |
39 |
draw_sprite_ext(thissprite, (siner / 3), x, y, 2, 2, 0, image_blend, ((-(cos(fsiner / 5))) * 0.4 + 0.6)) |
40 |
d3d_set_fog(false, c_black, 0, 0) |
41 |
} |
42 |
} |
43 |
if (becomeflash == 0) |
44 |
flash = 0 |
45 |
becomeflash = 0 |
46 |
sprite_index = thissprite |
47 |
image_index = siner / 3 |