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.
41 lines
735 B
41 lines
735 B
var dmg, flashtime;
|
|
dmg = 10
|
|
flashtime = 20
|
|
if (other.smissile == 1)
|
|
{
|
|
dmg = 50
|
|
flashtime = 60
|
|
}
|
|
myhealth -= dmg
|
|
flashing = flashtime
|
|
canbehit = 0
|
|
hits_taken += 1
|
|
if (myhealth <= 0)
|
|
{
|
|
state = 100
|
|
statetime = 0
|
|
alarm[10] = 1
|
|
alarm[11] = 160
|
|
with (body_obj)
|
|
instance_destroy()
|
|
with (head_obj)
|
|
instance_destroy()
|
|
with (mask_obj)
|
|
instance_destroy()
|
|
mus_fadeout(musZetaFight)
|
|
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
|
|
}
|
|
if (myhealth > 0)
|
|
{
|
|
PlaySoundMono(sndMZetaHit)
|
|
roaring = 15
|
|
}
|