|
1
|
if (shake > 0)
|
|
2
|
shake--;
|
|
3
|
var shakex = shake - (random(shake) * 2);
|
|
4
|
var shakey = shake - (random(shake) * 2);
|
|
5
|
if (type != 3 && type != 4 && type != 5 && type != 7 && type != 8)
|
|
6
|
draw_sprite_ext(sprite_index, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, image_alpha);
|
|
7
|
if (sprite_index == spr_zapper_sharpshoot || sprite_index == spr_zapper_spare_sharpshoot)
|
|
8
|
{
|
|
9
|
if (fadein && _alpha < 0.5)
|
|
10
|
_alpha += 0.1;
|
|
11
|
if (!fadein && _alpha > 0)
|
|
12
|
_alpha -= 0.1;
|
|
13
|
d3d_set_fog(true, c_black, 0, 1);
|
|
14
|
draw_sprite_ext(sprite_index, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, _alpha);
|
|
15
|
d3d_set_fog(false, c_black, 0, 0);
|
|
16
|
if ((i_ex(parentid) && (global.mercymod[parentid.myself] + parentid.sharpshootmercy) < 100) || spare == true)
|
|
17
|
{
|
|
18
|
if (sprite_index == spr_zapper_sharpshoot)
|
|
19
|
{
|
|
20
|
changecolortimer += 0.5;
|
|
21
|
buttonblend = merge_color(c_red, c_yellow, 0.5 + (sin(changecolortimer) * 0.5));
|
|
22
|
draw_sprite_ext(spr_zapper_sharpshoot2, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, buttonblend, 1);
|
|
23
|
}
|
|
24
|
if (sprite_index == spr_zapper_spare_sharpshoot)
|
|
25
|
draw_sprite_ext(spr_zapper_spare_sharpshoot2, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, buttonblend, 1);
|
|
26
|
}
|
|
27
|
}
|
|
28
|
if (sprite_index == spr_pippins_sharpshoot || sprite_index == spr_pippins_sharpshoot2 || sprite_index == spr_pippins_sharpshoot3)
|
|
29
|
{
|
|
30
|
draw_sprite_ext(spr_pippins_sharpshoot4, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, 1);
|
|
31
|
if (fadein && _alpha < 0.5)
|
|
32
|
_alpha += 0.1;
|
|
33
|
if (!fadein && _alpha > 0)
|
|
34
|
_alpha -= 0.1;
|
|
35
|
d3d_set_fog(true, c_black, 0, 1);
|
|
36
|
draw_sprite_ext(spr_pippins_sharpshoot4, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, _alpha);
|
|
37
|
d3d_set_fog(false, c_black, 0, 0);
|
|
38
|
if ((i_ex(parentid) && (global.mercymod[parentid.myself] + parentid.sharpshootmercy) < 100) || spare == true)
|
|
39
|
draw_sprite_ext(sprite_index, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, 1);
|
|
40
|
}
|
|
41
|
if (sprite_index == spr_shutta_sharpshoot || sprite_index == spr_shutta_sharpshoot2)
|
|
42
|
{
|
|
43
|
draw_sprite_ext(spr_shutta_sharpshoot, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, 1);
|
|
44
|
if (fadein && _alpha < 0.5)
|
|
45
|
_alpha += 0.1;
|
|
46
|
if (!fadein && _alpha > 0)
|
|
47
|
_alpha -= 0.1;
|
|
48
|
d3d_set_fog(true, c_black, 0, 1);
|
|
49
|
draw_sprite_ext(spr_shutta_sharpshoot, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, _alpha);
|
|
50
|
d3d_set_fog(false, c_black, 0, 0);
|
|
51
|
if ((spare == false && i_ex(parentid) && (global.mercymod[parentid.myself] + parentid.sharpshootmercy) < 100) || (spare == true && sparehp > 0))
|
|
52
|
draw_sprite_ext(spr_shutta_sharpshoot2, image_index, x + shakex, y + shakey, image_xscale, image_yscale, image_angle, image_blend, 1);
|
|
53
|
}
|