name	 	Moray
health		70
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 45
	frame	data/chars/cobras/moray.png
	delay	180
	@cmd	dasher 2.5 0 0 1
	frame	data/chars/cobras/moray.png
	delay	20
	@cmd	dasher 0 0 0 1
	frame	data/chars/cobras/moray.png

anim idle
	loop    1
	delay	10
	offset	80 45
	bbox	13 42 200 27
	attack	13 42 200 27 40 0 0 1 10
	frame	data/chars/cobras/moray.png
	@cmd	attack1 -60 40 40 200 "ANI_FOLLOW5"
	@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	@cmd	attack1 0 500 40 200 "ANI_FOLLOW2"
	@cmd	attack1 -500 0 -20 40 "ANI_FOLLOW3"
	@cmd	attack1 -500 0 40 200 "ANI_FOLLOW4"
	frame	data/chars/cobras/moray.png

anim follow5
	loop    1
	delay	10
	offset	80 55
	bbox	13 52 200 27
	attack	13 52 200 27 40 0 0 1 10
	frame	data/chars/cobras/moray5.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 11 43 0.2 3
	frame	data/chars/cobras/moray5.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 11 43 0 3
	frame	data/chars/cobras/moray5.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 11 43 -0.4 3
	frame	data/chars/cobras/moray5.png
	attack	0
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 11 43 0.4 3
	frame	data/chars/cobras/moray5.png
	delay	200
	attack	13 52 200 27 40 0 0 1 10
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 11 43 -0.2 3
	frame	data/chars/cobras/moray5.png
	delay	10
	@cmd	attack1 40 500 -20 40 "ANI_FOLLOW1"
	@cmd	attack1 40 500 40 200 "ANI_FOLLOW2"
	@cmd	attack1 -500 -60 -20 40 "ANI_FOLLOW3"
	@cmd	attack1 -500 -60 40 200 "ANI_FOLLOW4"
	frame	data/chars/cobras/moray5.png

anim follow1
	loop    1
	delay	10
	offset	80 45
	bbox	13 42 200 27
	attack	13 42 200 27 40 0 0 1 10
	frame	data/chars/cobras/moray.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 28 1.5 0.2
	frame	data/chars/cobras/moray.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 28 1.5 0
	frame	data/chars/cobras/moray.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 28 1.5 -0.2
	frame	data/chars/cobras/moray.png
	attack	0
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 35 28 1.5 0.2
	frame	data/chars/cobras/moray.png
	delay	200
	sound	data/sounds/HydraGun.wav
	attack	13 42 200 27 40 0 0 1 10
	@cmd	shooter2 "JetBullet" 35 28 1.5 -0.2
	frame	data/chars/cobras/moray.png
	delay	10
	@cmd	attack1 -60 40 40 200 "ANI_FOLLOW5"
	@cmd	attack1 0 500 40 200 "ANI_FOLLOW2"
	@cmd	attack1 -500 0 -20 40 "ANI_FOLLOW3"
	@cmd	attack1 -500 0 40 200 "ANI_FOLLOW4"
	frame	data/chars/cobras/moray.png

anim follow2
	loop    1
	delay	10
	offset	80 45
	bbox	13 42 200 27
	attack	13 42 200 27 40 0 0 1 10
	frame	data/chars/cobras/moray2.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 28 46 1.5 2.8
	frame	data/chars/cobras/moray2.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 28 46 1.5 3.2
	frame	data/chars/cobras/moray2.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 28 46 1.5 3
	frame	data/chars/cobras/moray2.png
	attack	0
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 28 46 1.5 3.4
	frame	data/chars/cobras/moray2.png
	delay	200
	sound	data/sounds/HydraGun.wav
	attack	13 42 200 27 40 0 0 1 10
	@cmd	shooter2 "JetBullet" 28 46 1.5 2.6
	frame	data/chars/cobras/moray2.png
	delay	10
	@cmd	attack1 -60 40 40 200 "ANI_FOLLOW5"
	@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	@cmd	attack1 -500 0 -20 40 "ANI_FOLLOW3"
	@cmd	attack1 -500 0 40 200 "ANI_FOLLOW4"
	frame	data/chars/cobras/moray2.png

anim follow3
	loop    1
	delay	10
	offset	80 45
	bbox	13 42 200 27
	attack	13 42 200 27 40 0 0 1 10
	frame	data/chars/cobras/moray3.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -36 28 -1.5 -0.2
	frame	data/chars/cobras/moray3.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -36 28 -1.5 0.2
	frame	data/chars/cobras/moray3.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -36 28 -1.5 -0.2
	frame	data/chars/cobras/moray3.png
	attack	0
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -36 28 -1.5 0
	frame	data/chars/cobras/moray3.png
	delay	200
	sound	data/sounds/HydraGun.wav
	attack	13 42 200 27 40 0 0 1 10
	@cmd	shooter2 "JetBullet" -36 28 -1.5 0.2
	frame	data/chars/cobras/moray3.png
	delay	10
	@cmd	attack1 -60 40 40 200 "ANI_FOLLOW5"
	@cmd	attack1 0 500 40 200 "ANI_FOLLOW2"
	@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	@cmd	attack1 -500 -20 40 200 "ANI_FOLLOW4"
	frame	data/chars/cobras/moray3.png

anim follow4
	loop    1
	delay	10
	offset	80 45
	bbox	13 42 200 27
	attack	13 42 200 27 40 0 0 1 10
	frame	data/chars/cobras/moray4.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -30 46 -1.5 3.2
	frame	data/chars/cobras/moray4.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -30 46 -1.5 3
	frame	data/chars/cobras/moray4.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -30 46 -1.5 2.6
	frame	data/chars/cobras/moray4.png
	attack	0
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" -30 46 -1.5 2.8
	frame	data/chars/cobras/moray4.png
	delay	200
	sound	data/sounds/HydraGun.wav
	attack	13 42 200 27 40 0 0 1 10
	@cmd	shooter2 "JetBullet" -30 46 -1.5 3.4
	frame	data/chars/cobras/moray4.png
	delay	10
	@cmd	attack1 -60 40 40 200 "ANI_FOLLOW5"
	@cmd	attack1 0 500 40 200 "ANI_FOLLOW2"
	@cmd	attack1 -500 0 -20 40 "ANI_FOLLOW3"
	@cmd	attack1 0 500 -20 40 "ANI_FOLLOW1"
	frame	data/chars/cobras/moray4.png


anim death
	delay	1
	offset	80 45
	frame	data/chars/cobras/moray.png
	delay	15
	@cmd	dasher -2 -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	suicide
	frame	data/chars/cobras/moray.png
