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.
27 lines
485 B
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)
|