name		 CobraBoat
type		 enemy
health           1000
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/cobraboat.png
alternatepal	 data/chars/cobraboat/blink.png

load		 CTurret1
load		 CTurret2
load		 RatBase
load		 BoatShoot
load             Big_Torpedo
load		 BoatAtak1
load		 BoatAtak2


anim	spawn
	delay	10
	offset	730 255
	platform 730 255 -955 -955 715 715 26 26
	frame	data/chars/Cobraboat/cobraboat.png
	@cmd	spawnGun "BoatAtak1" -50 163 1 14
	@cmd	spawnGun "BoatAtak1" -230 118 1 15
	@cmd	spawnGun "BoatAtak1" -270 118 1 6
	@cmd	spawnGun "BoatAtak2" -350 70 1 7
	@cmd	spawnGun "BoatAtak2" -470 35 1 8
	@cmd	spawnGun "BoatAtak2" -720 35 1 9
	@cmd	spawnGun "BoatAtak2" 250 35 1 10
	@cmd	spawnGun "BoatAtak2" 500 35 1 11
	frame	data/chars/Cobraboat/cobraboat.png
	@cmd	spawnGun "CTurret2" 750 43 1 0
	@cmd	spawnGun "CTurret2" -90 26 1 1
	@cmd	spawnGun "CTurret2" -550 26 1 2
	@cmd	spawnGun "BoatShoot" 85 100 1 3
	@cmd	spawnGun "CTurret1" 690 43 1 4
	@cmd	spawnGun "CTurret1" -660 26 1 2
	@cmd	spawnGun "BoatAtak2" 730 50 1 12
	@cmd	spawnGun "RatBase" 490 25 1 13
	frame	data/chars/Cobraboat/cobraboat.png
	delay	2000
	frame	data/chars/Cobraboat/cobraboat.png

anim	idle
	loop	1
	delay	1
	offset	730 255
	bbox	672 145 260 85
	attack	458 128 470 132 200 0 0 1
	platform 730 255 -955 -955 715 715 26 26
	frame	data/chars/Cobraboat/cobraboat.png
	@cmd	attack0 "ANI_FOLLOW1"
	frame	data/chars/Cobraboat/cobraboat.png
	
anim	follow1
	loop	1
	delay	1
	offset	730 255
	bbox	672 145 260 85
	attack	458 128 470 132 200 0 0 1
	platform 730 255 -955 -955 715 715 26 26
	frame	data/chars/Cobraboat/cobraboat.png
	delay	6000
	@cmd	shooter22 "Big_Torpedo" 950 -15 0.5 0
	frame	data/chars/Cobraboat/cobraboat.png
	

anim	death
	delay	1
	offset	730 255
	frame	data/chars/Cobraboat/cobraboat.png
	@cmd	killgun 0 1
	@cmd	killgun 1 1
	@cmd	killgun 2 1
	@cmd	killgun 3 0
	@cmd	killgun 4 1
	@cmd	killgun 5 0
	@cmd	killgun 6 0
	@cmd	killgun 7 0
	frame	data/chars/Cobraboat/cobraboat.png
	@cmd	killgun 8 0
	@cmd	killgun 9 0
	@cmd	killgun 10 0
	@cmd	killgun 11 0
	@cmd	killgun 12 0
	@cmd	killgun 13 0
	@cmd	killgun 14 0
	@cmd	killgun 15 0
	frame	data/chars/Cobraboat/cobraboat.png
	delay	700
	@cmd	dasher 0 -0.2 0 1
	frame	data/chars/Cobraboat/cobraboat.png
	@cmd	jumptobranch "Good" 1
	frame	data/chars/Cobraboat/cobraboat.png
	