name	 	CobraSubS2
health		10
type		enemy
nomove		1 1
nodrop		2
nopain		1
nodieblink	2
death		1
#facing		1
offscreenkill	100
antigravity	100
animationscript	data/chars/cobras/jetsc.c

takedamagescript data/scripts/blink.c

load		CTorpedoU

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


anim spawn
	delay	4
	offset	100 40
	frame	data/chars/cobras/sub.png
	delay	100
	bbox	20 23 155 18
	@cmd	dasher 1 0 0 1
	frame	data/chars/cobras/sub.png

anim idle
	loop    1
	delay	1
	offset	100 40
	bbox	20 23 155 18
	@cmd		target 2 2 0 0 1 1
	frame	data/chars/cobras/sub.png
	delay	120
	@cmd	dasher 1 0 0 1
	#@cmd	shoot "CTorpedoU" 73 5 1
@cmd	shooter2 "CTorpedoU" 17 20 0 2 
	frame	data/chars/cobras/sub.png
	delay	5
	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
