name	 	Firebat
health		40
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		JetBullet

palette		data/chars/cobras/firebat.png
alternatepal	data/chars/cobras/fbblink.png


anim spawn
	delay	1
	offset	35 30
	attack	12 12 56 18 20 0 0 0 10
	frame	data/chars/cobras/firebat.png
	delay	80
	@cmd	dasher -2 0 0 0
	frame	data/chars/cobras/firebat.png

anim idle
	loop    1
	delay	1
	offset	35 30
	bbox	12 12 56 18
	attack	12 12 56 18 20 0 0 0 10
	frame	data/chars/cobras/firebat.png
	delay	25
	@cmd	target 2 2 200 0 1 0
	@cmd	dash 0 0
	frame	data/chars/cobras/firebat.png
	@cmd	target 2 2 200 0 1 0
	@cmd	dash 0 0
	frame	data/chars/cobras/firebat.png
	@cmd	target 2 2 200 0 1 0
	@cmd	dash 0 0
	frame	data/chars/cobras/firebat.png
	delay	20
	@cmd	dasher 0 0 0 0
	#sound	data/sounds/HydraGun.wav
sound data/sounds/shootL.wav
	@cmd	shooter2 "JetBullet" 34 7 2 0
	frame	data/chars/cobras/firebat.png
	sound	data/sounds/HydraGun.wav
	@cmd	shooter2 "JetBullet" 34 7 2 0
	frame	data/chars/cobras/firebat.png
	#sound	data/sounds/HydraGun.wav
sound data/sounds/shootL.wav
	@cmd	shooter2 "JetBullet" 34 7 2 0
	frame	data/chars/cobras/firebat.png
	delay	25
	frame	data/chars/cobras/firebat.png
	@cmd	target 2 2 200 0 1 0
	@cmd	dash 0 0
	frame	data/chars/cobras/firebat.png
	delay	5
	attack	0
	frame	data/chars/cobras/firebat.png


anim death
	delay	1
	offset	35 30
	frame	data/chars/cobras/firebat.png
	delay	50
	@cmd	dasher 0 -1 0 0
	frame	data/chars/cobras/firebat.png
	@cmd	spawn01 "SpaceXplos" 0 10 0
	@cmd	suicide
	frame	data/chars/cobras/firebat.png
