name	 	MorayW
health		40
type		enemy
nomove		1 1
nodrop		2
nopain		1
nodieblink	2
#facing		1
death		1
antigravity	100

animationscript	 data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

load		JetBullet

palette		data/chars/cobras/moray.png
alternatepal	data/chars/cobras/morblink.png


anim spawn
	delay	1
	offset	80 75
	frame	data/chars/cobras/moray.png
	delay	50
	@cmd	dasher 1.5 0 0 1
	frame	data/chars/cobras/moray.png
	bbox	13 32 200 37
	frame	data/chars/cobras/moray.png
	delay	5
	@cmd	dasher 0 0 0 1
	frame	data/chars/cobras/moray.png

anim idle
	loop    1
	delay	10
	offset	80 75
	bbox	13 32 200 37
	frame	data/chars/cobras/moray.png
	@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	frame	data/chars/cobras/moray.png

anim follow1
	loop    1
	delay	100
	offset	80 75
	bbox	13 32 200 37
	frame	data/chars/cobras/moray.png
	delay	10
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 58 1.5 0.2
	frame	data/chars/cobras/moray.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 58 1.5 0
	frame	data/chars/cobras/moray.png
	delay	200
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 58 1.5 -0.2
	frame	data/chars/cobras/moray.png
	delay	10
	frame	data/chars/cobras/moray.png


anim death
	delay	1
	offset	80 75
	frame	data/chars/cobras/morayS.png
	delay	15
	@cmd	dasher 0 -1 0 0
	@cmd	spawn01 "Asap" 90 -15 1
	@cmd	spawn01 "Asap" -30 -15 1
	@cmd	spawn01 "Asap" 0 0 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" 0 -15 1
	@cmd	spawn01 "Asap" 60 -15 1
	@cmd	spawn01 "Asap" 120 -15 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" -6 24 1
	@cmd	spawn01 "Asap" -60 -15 1
	@cmd	spawn01 "Asap" 30 -15 1
	frame	data/chars/cobras/moray.png #
	@cmd	spawn01 "Asap" 90 -15 1
	@cmd	spawn01 "Asap" -30 -15 1
	@cmd	spawn01 "Asap" 0 0 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" 0 -15 1
	@cmd	spawn01 "Asap" 60 -15 1
	@cmd	spawn01 "Asap" 120 -15 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" -6 24 1
	@cmd	spawn01 "Asap" -60 -15 1
	@cmd	spawn01 "Asap" 30 -15 1
	frame	data/chars/cobras/moray.png #
	@cmd	spawn01 "Asap" 90 -15 1
	@cmd	spawn01 "Asap" -30 -15 1
	@cmd	spawn01 "Asap" 0 0 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" 0 -15 1
	@cmd	spawn01 "Asap" 60 -15 1
	@cmd	spawn01 "Asap" 120 -15 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" -6 24 1
	@cmd	spawn01 "Asap" -60 -15 1
	@cmd	spawn01 "Asap" 30 -15 1
	frame	data/chars/cobras/moray.png #
	@cmd	spawn01 "Asap" 90 -15 1
	@cmd	spawn01 "Asap" -30 -15 1
	@cmd	spawn01 "Asap" 0 0 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" 0 -15 1
	@cmd	spawn01 "Asap" 60 -15 1
	@cmd	spawn01 "Asap" 120 -15 1
	frame	data/chars/cobras/moray.png
	@cmd	spawn01 "Asap" -6 24 1
	@cmd	spawn01 "Asap" -60 -15 1
	@cmd	spawn01 "Asap" 30 -15 1
	frame	data/chars/cobras/moray.png #
	@cmd	suicide
	frame	data/chars/cobras/moray.png
