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.
55 lines
1.2 KiB
55 lines
1.2 KiB
myhealth -= dmg
|
|
flashing = flashtime
|
|
canbehit = 0
|
|
if (myhealth <= 0)
|
|
{
|
|
state = 100
|
|
statetime = 0
|
|
alarm[10] = 1
|
|
alarm[11] = 160
|
|
event_user(2)
|
|
if (myid != 52)
|
|
{
|
|
mus_fadeout(musOmegaFight)
|
|
oMusicV2.bossbgm = 0
|
|
global.metdead[myid] = 1
|
|
global.monstersleft -= 1
|
|
global.monstersarea -= 1
|
|
check_areaclear()
|
|
global.dmap[mapposx, mapposy] = 11
|
|
with (oControl)
|
|
event_user(2)
|
|
dead = 1
|
|
}
|
|
else if (myid == 52)
|
|
{
|
|
global.monstersleft -= 1
|
|
global.monstersarea -= 1
|
|
if (global.monstersarea < 1)
|
|
global.monstersarea = 1
|
|
if (global.monstersleft < 1)
|
|
global.monstersleft = 1
|
|
global.metdead[52] = 1
|
|
with (oMonsterDoorControl)
|
|
alarm[1] = 1
|
|
if (global.monstersleft != 1)
|
|
global.monstersleft = 1
|
|
if (global.monstersarea != 1)
|
|
global.monstersarea = 1
|
|
instance_create(0, 0, oBigQuakeQueen)
|
|
}
|
|
}
|
|
if (myhealth > 0)
|
|
{
|
|
if (dmg < 100)
|
|
{
|
|
PlaySoundMono(sndMOmegaHit)
|
|
roaring = 30
|
|
}
|
|
else
|
|
{
|
|
PlaySoundMono(sndMOmegaHit2)
|
|
roaring = 160
|
|
}
|
|
}
|