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-Multitroid-Fair-Team-PVP/Export_Code/gml_Object_oEnemy_Other_10.gml

44 lines
918 B

if ((other.object_index == oMissile || other.object_index == oMissileExpl) && global.icemissiles && (!other.smissile))
{
if canfreeze
{
if ((other.damage > myhealth && (!frozen)) || (ceil((other.damage / 2)) > myhealth && (!frozen)))
{
dmg = 0
myhealth = 1
}
else
dmg = other.damage
frozen = 240
}
else
dmg = other.damage
}
else
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)