|
1
|
if (mercified && sprite_index != spr_bullet_dice_all4s)
|
|
2
|
sprite_index = spr_bullet_dice4pip;
|
|
3
|
if (force_index == -1)
|
|
4
|
{
|
|
5
|
if ((image_index % 4) == 0 && queue_lock)
|
|
6
|
force_index = image_index;
|
|
7
|
tick_count += (turn_rate / (1.5 + slowed_rotate));
|
|
8
|
if (tick_count >= (0.1 + (0.6 * ((image_index % 4) == 0))))
|
|
9
|
{
|
|
10
|
tick_count -= (0.1 + (0.6 * ((image_index % 4) == 0)));
|
|
11
|
image_index += 1;
|
|
12
|
}
|
|
13
|
}
|
|
14
|
else
|
|
15
|
{
|
|
16
|
image_index = force_index;
|
|
17
|
}
|
|
18
|
if (!active)
|
|
19
|
image_blend = c_gray;
|
|
20
|
else if ((mercified && image_index >= 10 && image_index < 14.5) || (mercified && sprite_index == spr_bullet_dice_all4s))
|
|
21
|
image_blend = c_lime;
|
|
22
|
else
|
|
23
|
image_blend = c_white;
|
|
24
|
draw_self();
|
|
25
|
if (alarm[1] == 9 || alarm[1] == 8 || alarm[1] == 4 || alarm[1] == 3) gml_Object_obj_bullet_dice_Alarm_1.gml
image_index = floor(image_index);
var pips = image_index / 4;
if (sprite_index == spr_bullet_dice_all4s)
pips = 3;
event_user(0);
with (instance_create(x, y, obj_regularbullet))
{
image_blend = c_gray;
sprite_index = other.sprite_index;
image_xscale = other.image_xscale;
image_yscale = other.image_yscale;
image_angle = other.image_angle;
image_index = other.image_index;
image_blend = other.image_blend;
image_speed = 0;
mask_index = spr_nothing;
active = false;
grazed = true;
scr_lerpvar("image_xscale", image_xscale, 3, 5);
scr_lerpvar("image_yscale", image_yscale, 3, 5);
scr_lerpvar("image_alpha", image_yscale, 0, 5);
}
bullet = instance_create(x, y, obj_bullet_dice_shockwave);
bullet.target = target;
bullet.damage = 44;
bullet.grazepoints = 4;
bullet.count = 0;
bullet.image_xscale = 1.5;
bullet.image_yscale = 1.5;
if (pips >= 3 || (sprite_index == spr_bullet_dice && image_index >= 8) || (sprite_index == spr_bullet_dice4pip && image_index >= 8))
{
bullet.image_xscale = 2;
bullet.image_yscale = 2;
}
|
|
26
|
{
|
|
27
|
d3d_set_fog(true, c_red, 0, 1);
|
|
28
|
draw_sprite_ext(sprite_index, image_index, x, y, image_xscale, image_yscale, image_angle, image_blend, 0.3);
|
|
29
|
d3d_set_fog(false, c_black, 0, 0);
|
|
30
|
}
|
|
31
|
if (image_alpha < 1)
|
|
32
|
image_alpha += 0.2;
|