|
1
|
var blackflash = false;
|
|
2
|
if (flashtimer == 10 || flashtimer == 9 || flashtimer == 6 || flashtimer == 5 || flashtimer == 2 || flashtimer == 1)
|
|
3
|
blackflash = true;
|
|
4
|
if (hurttimer == 10 || hurttimer == 9 || hurttimer == 6 || hurttimer == 5 || hurttimer == 2 || hurttimer == 1)
|
|
5
|
blackflash = true;
|
|
6
|
var aaa = 0;
|
|
7
|
if (show_outline == true && global.flag[8 simplify_vfx] == 0)
|
|
8
|
{
|
|
9
|
if (blackflash == true)
|
|
10
|
d3d_set_fog(true, c_white, 0, 1);
|
|
11
|
else
|
|
12
|
d3d_set_fog(true, c_black, 0, 1);
|
|
13
|
draw_sprite_ext(sprite_index, image_index, (round(x / 2) * 2) - 2, round((y + aaa) / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
14
|
draw_sprite_ext(sprite_index, image_index, (round(x / 2) * 2) + 2, round((y + aaa) / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
15
|
draw_sprite_ext(sprite_index, image_index, round(x / 2) * 2, (round((y + aaa) / 2) * 2) - 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
16
|
draw_sprite_ext(sprite_index, image_index, round(x / 2) * 2, (round((y + aaa) / 2) * 2) + 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
17
|
d3d_set_fog(false, c_black, 0, 0);
|
|
18
|
}
|
|
19
|
draw_sprite_ext(sprite_index, image_index, round(x / 2) * 2, round((y + aaa) / 2) * 2, image_xscale, image_yscale, 0, image_blend, image_alpha);
|
|
20
|
if (global.flag[8 simplify_vfx] == 0)
|
|
21
|
{
|
|
22
|
if (blackflash == true)
|
|
23
|
{
|
|
24
|
if (sprite_index == spr_board_deer_leftsprite)
|
|
25
|
hurt_sprite = spr_board_deer_left_hurt;
|
|
26
|
if (sprite_index == spr_board_deer_rightsprite)
|
|
27
|
hurt_sprite = spr_board_deer_right_hurt;
|
|
28
|
if (sprite_index == spr_board_deer_upsprite)
|
|
29
|
hurt_sprite = spr_board_deer_up_hurt;
|
|
30
|
if (sprite_index == spr_board_deer_downsprite)
|
|
31
|
hurt_sprite = spr_board_deer_down_hurt;
|
|
32
|
draw_sprite_ext(hurt_sprite, image_index, round(x / 2) * 2, round(y / 2) * 2, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
33
|
}
|
|
34
|
}
|
|
35
|
if (flashtimer > 0)
|
|
36
|
flashtimer--;
|
|
37
|
if (hurttimer2 > 0)
|
|
38
|
hurttimer2--;
|