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.
AM2R-The-Horde-Multitroid/Export_Code/gml_Object_oMAlpha_Other_10...

70 lines
1.4 KiB

if (other.smissile == 1)
{
dmg = 50
flashtime = 60
}
else
{
dmg = 10
flashtime = 30
}
myhealth -= dmg
if (room == rm_a7b08A)
{
if (myhealth <= ((maxhealth / 3) * 2))
spriteset = 1
if (myhealth <= (maxhealth / 3))
spriteset = 2
}
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(musAlphaFight)
if (!instance_exists(oMZeta))
mus_fadeout(musZetaFight)
oMusicV2.bossbgm = 0
}
with (oMAlpha)
event_user(2)
global.dmap[mapposx, mapposy] = 11
with (oControl)
event_user(2)
dead = 1
}
else if (myid == 52 && global.event[331] == 1)
{
global.event[331] = 2
state = 20
statetime = -1
dead = 1
}
}
flashing = 4
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)