name		 CTurret1
type		 enemy
health		 60
gfxshadow	 1
nolife		 1
nomove		 1
nopain		 1
nodrop		 2
death		 1
setlayer	 3
offscreenkill	 10000
defense		 normal 0
animationscript	 data/chars/cobras/jetsc.c

load		 MiniBall


anim idle
	loop	1
	delay	30
	offset  26 47
	bbox	5 22 45 26
	attack	5 22 45 26 200 0 1 1
	frame	data/chars/cobraboat/turret11.png
	@cmd	target 2 2 0 0 0 1 # Dummy targetting
	@cmd	attack1 40 400 -50 25 "ANI_ATTACK1"
	@cmd	attack1 40 400 25 300 "ANI_ATTACK2"
	@cmd	attack1 -40 40 -50 300 "ANI_ATTACK3"
	frame	data/chars/cobraboat/turret11.png

anim attack1
	range	40 400
	rangea	-50 25
	delay	10
	offset  26 47
	bbox	5 22 45 26
	attack	5 22 45 26 200 0 1 1
	frame	data/chars/cobraboat/turret11.png
	delay	100
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.25 1.25 60 -10 0 1
	@cmd	shoot2 "MiniBall" 63 13
	frame	data/chars/cobraboat/turret11.png
	@cmd	beidle
	frame	data/chars/cobraboat/turret11.png

anim attack2
	range	40 400
	rangea	25 300
	delay	10
	offset  26 47
	bbox	5 22 45 26
	attack	5 22 45 26 200 0 1 1
	frame	data/chars/cobraboat/turret12.png
	frame	data/chars/cobraboat/turret13.png
	delay	100
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.25 1.25 30 -35 0 1
	@cmd	shoot2 "MiniBall" 32 38
	frame	data/chars/cobraboat/turret13.png
	@cmd	beidle
	frame	data/chars/cobraboat/turret13.png

anim attack3
	range	-40 40
	rangea	-50 300
	delay	8
	offset  26 47
	bbox	5 22 45 26
	attack	5 22 45 26 200 0 1 1
	frame	data/chars/cobraboat/turret12.png
	frame	data/chars/cobraboat/turret13.png
	frame	data/chars/cobraboat/turret14.png
	frame	data/chars/cobraboat/turret15.png
	delay	100
	sound	data/sounds/HydraGun.wav
	@cmd	target 1.25 1.25 0 -45 0 1
	@cmd	shoot2 "MiniBall" 0 44
	frame	data/chars/cobraboat/turret15.png
	@cmd	beidle
	frame	data/chars/cobraboat/turret15.png


anim death
	delay	10
	offset  26 47
	frame	data/chars/cobraboat/turret13.png
	@cmd	spawn01 "SpaceXplos" 0 0 0
	frame	data/chars/misc/empty.gif
