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.
87 lines
1.7 KiB
87 lines
1.7 KiB
if (other.smissile == 1)
|
|
{
|
|
dmg = 50
|
|
flashtime = 60
|
|
}
|
|
else
|
|
{
|
|
dmg = 10
|
|
flashtime = 30
|
|
}
|
|
myhealth -= dmg
|
|
if (myhealth <= 0)
|
|
{
|
|
if (myid != 52)
|
|
{
|
|
state = 100
|
|
statetime = 0
|
|
alarm[10] = 1
|
|
alarm[11] = 160
|
|
flashtime = 180
|
|
turndelay = 180
|
|
PlaySoundMono(deathsound)
|
|
global.metdead[myid] = 1
|
|
global.monstersleft -= 1
|
|
global.monstersarea -= 1
|
|
check_areaclear()
|
|
global.monstersalive -= 1
|
|
if (global.monstersalive == 0)
|
|
{
|
|
mus_fadeout(musGammaFight)
|
|
oMusicV2.bossbgm = 0
|
|
}
|
|
if instance_exists(grabber)
|
|
{
|
|
with (grabber)
|
|
instance_destroy()
|
|
}
|
|
if instance_exists(arms)
|
|
{
|
|
with (arms)
|
|
instance_destroy()
|
|
}
|
|
global.dmap[mapposx, mapposy] = 11
|
|
with (oControl)
|
|
event_user(2)
|
|
dead = 1
|
|
}
|
|
else if (myid == 52 && state < 20 && global.event[331] < 3)
|
|
{
|
|
if instance_exists(grabber)
|
|
{
|
|
with (grabber)
|
|
instance_destroy()
|
|
}
|
|
if instance_exists(arms)
|
|
{
|
|
with (arms)
|
|
instance_destroy()
|
|
}
|
|
if instance_exists(shell)
|
|
{
|
|
with (shell)
|
|
instance_destroy()
|
|
}
|
|
global.event[331] = 3
|
|
xVel = 0
|
|
yVel = 0
|
|
speed = 0
|
|
state = 20
|
|
statetime = 0
|
|
sfx_play(sndMGammaDeath)
|
|
}
|
|
}
|
|
flashing = 1
|
|
canbehit = 0
|
|
statetime = 0
|
|
currentangle = 30
|
|
if (chasing == 0)
|
|
{
|
|
chasing = 1
|
|
alarm[3] = awaydelay
|
|
}
|
|
if (myhealth > 0)
|
|
PlaySoundMono(hitsound)
|
|
if sfx_isplaying(sndMAlphaIntro)
|
|
sfx_stop(sndMAlphaIntro)
|