You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
69 lines
2.1 KiB
69 lines
2.1 KiB
var pickup;
|
|
if (hp <= 0)
|
|
{
|
|
if (myid != 52)
|
|
{
|
|
repeat (10)
|
|
{
|
|
expl = instance_create(((x - 16) + random(32)), ((y - 16) + random(32)), oFXAnimSpark)
|
|
expl.image_speed = (0.5 + random(0.5))
|
|
expl.additive = 0
|
|
expl.sprite_index = sExpl1
|
|
expl.direction = random(360)
|
|
expl.speed = (2 + random(1))
|
|
}
|
|
repeat (20)
|
|
deb = instance_create(x, (y - 8), oIceShard)
|
|
make_explosion4(x, y)
|
|
instance_create(x, y, oScreenFlash)
|
|
sfx_play(sndMissileExpl)
|
|
PlaySoundMono(sndIceShatter)
|
|
sfx_play(sndMonsterDeath)
|
|
global.monstersleft -= 1
|
|
global.monstersarea -= 1
|
|
if (global.monstersarea < 1)
|
|
global.monstersarea = 1
|
|
if (global.monstersleft < 1)
|
|
global.monstersleft = 1
|
|
global.metdead[myid] = 1
|
|
with (oMonsterDoorControl)
|
|
alarm[1] = 1
|
|
pickup = choose(0, 1)
|
|
if (pickup == 0)
|
|
{
|
|
if (global.missiles < global.maxmissiles && global.maxmissiles > 0)
|
|
{
|
|
repeat (3)
|
|
instance_create((x + random_range(-15, 15)), (y + random_range(-15, 15)), oMPickup)
|
|
}
|
|
else
|
|
pickup = 1
|
|
}
|
|
if (pickup == 1)
|
|
{
|
|
if (global.smissiles < global.maxsmissiles && global.maxsmissiles > 0)
|
|
instance_create(x, y, oSMPickup)
|
|
}
|
|
if (global.playerhealth < global.maxhealth && (oControl.mod_insanitymode == 0 || (global.difficulty < 2 && oControl.mod_insanitymode == 1)))
|
|
{
|
|
repeat (3)
|
|
instance_create((x + random_range(-15, 15)), (y + random_range(-15, 15)), oHPickupBig)
|
|
}
|
|
instance_destroy()
|
|
}
|
|
else if (myid == 52 && global.event[331] == 0)
|
|
{
|
|
global.event[331] = 1
|
|
repeat (20)
|
|
deb = instance_create(x, (y - 8), oIceShard)
|
|
state = 20
|
|
statetime = -1
|
|
dead = 1
|
|
}
|
|
}
|
|
else
|
|
{
|
|
flashing = 20
|
|
sfx_play(sndMonsterHit)
|
|
}
|