name	 	CobraSub
health		30
type		enemy
nomove		1 1
nodrop		2
nopain		1
nodieblink	2
#facing		2
death		1
antigravity	100
animationscript	data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

load		CTorpedo

palette		data/chars/cobras/sub.png
alternatepal	data/chars/Snake_Eyes/sub/blink.png


anim spawn
	delay	4
	offset	100 40
	attack	20 23 155 18 20 0 0 0 10
	frame	data/chars/cobras/sub.png
	delay	80
	bbox	20 23 155 18
	@cmd	dasher -1.5 0 0 0
	frame	data/chars/cobras/sub.png
	@cmd	shoot "CTorpedo" 73 5 1
	frame	data/chars/cobras/sub.png
	delay	4
	@cmd	dasher 0 0 0 0
	frame	data/chars/cobras/sub.png

anim idle
	loop    1
	delay	1
	offset	100 40
	bbox	20 23 155 18
	attack	20 23 155 18 20 0 0 0 10
	frame	data/chars/cobras/sub.png
	delay	25
	@cmd	target 2 2 0 0 1 1
	@cmd	dash 0 1
	frame	data/chars/cobras/sub.png
	@cmd	target 2 2 0 0 1 1
	@cmd	dash 0 1
	frame	data/chars/cobras/sub.png
	@cmd	target 2 2 0 0 1 1
	@cmd	dash 0 1
	frame	data/chars/cobras/sub.png
	@cmd	dasher 0 0 0 0
	@cmd	shoot "CTorpedo" 73 5 1
	frame	data/chars/cobras/sub.png
	delay	75
	frame	data/chars/cobras/sub.png
	delay	25
	@cmd	target 2 2 0 0 1 1
	@cmd	dash 0 1
	frame	data/chars/cobras/sub.png
	attack	0
	frame	data/chars/cobras/sub.png


anim death
	delay	1
	offset	100 40
	frame	data/chars/cobras/sub.png
	delay	20
	@cmd	dasher 0 -1 0 0
	@cmd	spawn01 "Asap" -80 8 1
	@cmd	spawn01 "Asap" 0 8 1
	@cmd	spawn01 "Asap" 40 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" 60 8 1
	@cmd	spawn01 "Asap" -40 8 1
	@cmd	spawn01 "Asap" 20 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" -20 8 1
	@cmd	spawn01 "Asap" -60 8 1
	frame	data/chars/cobras/sub.png #
	@cmd	spawn01 "Asap" -80 8 1
	@cmd	spawn01 "Asap" 0 8 1
	@cmd	spawn01 "Asap" 40 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" 60 8 1
	@cmd	spawn01 "Asap" -40 8 1
	@cmd	spawn01 "Asap" 20 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" -20 8 1
	@cmd	spawn01 "Asap" -60 8 1
	frame	data/chars/cobras/sub.png #
	@cmd	spawn01 "Asap" -80 8 1
	@cmd	spawn01 "Asap" 0 8 1
	@cmd	spawn01 "Asap" 40 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" 60 8 1
	@cmd	spawn01 "Asap" -40 8 1
	@cmd	spawn01 "Asap" 20 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" -20 8 1
	@cmd	spawn01 "Asap" -60 8 1
	frame	data/chars/cobras/sub.png #
	@cmd	spawn01 "Asap" -80 8 1
	@cmd	spawn01 "Asap" 0 8 1
	@cmd	spawn01 "Asap" 40 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" 60 8 1
	@cmd	spawn01 "Asap" -40 8 1
	@cmd	spawn01 "Asap" 20 8 1
	frame	data/chars/cobras/sub.png
	@cmd	spawn01 "Asap" -20 8 1
	@cmd	spawn01 "Asap" -60 8 1
	frame	data/chars/cobras/sub.png #
	@cmd	suicide
	frame	data/chars/cobras/sub.png
