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.
AM2Rogue/Export_Code/gml_Object_oEnemy_Other_10.gml

27 lines
485 B

dmg = other.damage
if (global.difficulty == 2)
dmg = ceil((dmg / 2))
if (justfrozen == 0)
myhealth -= dmg
if (myhealth <= 0 && justfrozen == 0 && state != 100)
{
state = 100
statetime = 0
global.kills += 1
}
stun = stuntime
if (other.ibeam && frozen == 0 && canfreeze && myhealth < freezehp)
event_user(15)
if canflash
{
flashing = 5
fxtimer = 0
}
if frozen
{
if (myhealth > 0)
PlaySoundMono(sndFreezeHit)
}
else
PlaySoundMono(hitsound)