name		 CobraBoat2
type		 enemy
health           500
facing		 2
setlayer	 2
death		 1
nomove		 1 1
antigravity	 100
offscreenkill	 10000
defense		 normal 0
animationscript	 data/chars/cobraboat/boatsc.c
takedamagescript data/scripts/blink.c

palette		 data/chars/cobraboat/cobraboat2.png
alternatepal	 data/chars/cobraboat/blink2.png

load		 CTurret1
load		 RavenBase
load		 BoatShoot
load		 BoatAtak1
load		 BoatAtak2


anim	spawn
	delay	10
	offset	250 180
	platform 730 255 -955 -955 715 715 26 26
	frame	data/chars/Cobraboat/cobraboat2.png
	@cmd	spawnGun "CTurret1" 400 41 1 0
	@cmd	spawnGun "CTurret1" -200 58 1 1
	@cmd	spawnGun "RavenBase" 240 24 1 2
	@cmd	spawnGun "BoatShoot" 0 112 1 3
	@cmd	spawnGun "BoatAtak2" 120 32 1 4
	@cmd	spawnGun "BoatAtak2" 280 41 1 5
	@cmd	spawnGun "BoatAtak1" -110 110 1 6
	@cmd	spawnGun "BoatAtak1" -30 110 1 7
	frame	data/chars/Cobraboat/cobraboat2.png
	delay	2000
	frame	data/chars/Cobraboat/cobraboat2.png

anim	idle
	loop	1
	delay	10
	offset	250 180
	bbox	127 63 173 93
	attack	8 120 375 75 200 0 0 1
	platform 250 180 -525 -525 243 243 26 26
	frame	data/chars/Cobraboat/cobraboat2.png
	frame	data/chars/Cobraboat/cobraboat2.png
		

anim	death
	delay	1
	offset	250 180
	frame	data/chars/Cobraboat/cobraboat2.png
	@cmd	killgun 0 1
	@cmd	killgun 1 1
	@cmd	killgun 2 0
	@cmd	killgun 3 0
	@cmd	killgun 4 0
	@cmd	killgun 5 0
	@cmd	killgun 6 0
	frame	data/chars/Cobraboat/cobraboat2.png
	delay	800
	@cmd	dasher 0 -0.2 0 1
	frame	data/chars/Cobraboat/cobraboat2.png
	@cmd	suicide
	frame	data/chars/Cobraboat/cobraboat2.png
