name		Rattler2
health		30
type		enemy
nomove		1 1
nodrop		2
nopain		1
death		1
antigravity	100
offscreenkill	13000
subject_to_platform 0
animationscript	 data/chars/cobras/jetsc.c
takedamagescript data/scripts/blink.c

palette		 data/chars/cobraboat/plane1.gif
alternatepal	 data/chars/cobraboat/planebl.gif

load		JetBullet

	
anim	spawn
@script
  if(frame==1){
     void self = getlocalvar("self");
     changeentityproperty(self, "name", "Rattler");
  }
@end_script	
	delay	5
	offset	50 65
	frame	data/chars/cobraboat/plane1.gif
	delay	100
	bbox	7 50 90 15
	@cmd	dasher 0 1 0 1
	frame	data/chars/cobraboat/plane1.gif
			
anim	idle
	loop	1
	delay	5
	offset	50 65
	bbox	7 50 90 15
	frame	data/chars/cobraboat/plane1.gif
	delay	10
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	dasher 2 0 0 1
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif

anim	follow1
	delay	1
	offset	50 65
	bbox	7 50 90 15
	frame	data/chars/cobraboat/plane1.gif
	delay	10
	@cmd	dasher 2 0 0 1
	sound	data/sounds/HydraGun.wav
	@cmd	shoot "JetBullet" 51 5 0
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	sound	data/sounds/HydraGun.wav
	@cmd	shoot "JetBullet" 51 5 0
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	sound	data/sounds/HydraGun.wav
	@cmd	shoot "JetBullet" 51 5 0
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	sound	data/sounds/HydraGun.wav
	@cmd	shoot "JetBullet" 51 5 0
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	frame	data/chars/cobraboat/plane1.gif
	@cmd	beidle
	frame	data/chars/cobraboat/plane1.gif
	
anim	follow2
	delay	8
	offset	50 65
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	dasher 1.5 0 0 1
	frame	data/chars/cobraboat/plane2.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	@cmd	dasher 1 0 0 1
	frame	data/chars/cobraboat/plane2.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	dasher 0.5 0 0 1
	frame	data/chars/cobraboat/plane3.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.26
	@cmd	dasher 0 0 0 1
	frame	data/chars/cobraboat/plane3.gif
	@cmd	shooterDmg "Asap2" 8 8 0.5 0 0.51
	@cmd	dasher -0.5 0 0 1
	frame	data/chars/cobraboat/plane4.gif
	@cmd	shooterDmg "Asap2" 8 8 0.5 0 0.26
	@cmd	dasher -1 0 0 1
	frame	data/chars/cobraboat/plane4.gif
	@cmd	shooterDmg "Asap2" 8 8 0.5 0 0.51
	@cmd	dasher -1.5 0 0 1
	frame	data/chars/cobraboat/plane5.gif
	@cmd	shooterDmg "Asap2" 8 8 0.5 0 0.26
	@cmd	dasher -2 0 0 1
	frame	data/chars/cobraboat/plane5.gif
	@cmd	shooterDmg "Asap2" 8 8 0.5 0 0.51
	@cmd	flip
	@cmd	dasher 2 0 0 1
	frame	data/chars/cobraboat/plane1.gif
	@cmd	beidle
	frame	data/chars/cobraboat/plane1.gif

anim	follow3
	delay	2
	offset	50 65
	bbox	7 50 90 15
	frame	data/chars/cobraboat/plane1.gif
	@cmd	dasher 2 0.8 0 1
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	@cmd	attack1 -300 240 -200 -5 "ANI_FOLLOW4"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	beidle
	frame	data/chars/cobraboat/plane1.gif

anim	follow4
	delay	2
	offset	50 65
	bbox	7 50 90 15
	frame	data/chars/cobraboat/plane1.gif
	@cmd	dasher 2 -0.8 0 1
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	shooterDmg "Asap2" 8 8 -0.5 0 0.51
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	attack1 60 240 -5 5 "ANI_FOLLOW1"
	@cmd	attack1 -15000 0 -200 200 "ANI_FOLLOW2"
	@cmd	attack1 -300 240 5 200 "ANI_FOLLOW3"
	frame	data/chars/cobraboat/plane1.gif
	@cmd	beidle
	frame	data/chars/cobraboat/plane1.gif


anim	death
	delay	1
	offset	50 65
	frame	data/chars/cobraboat/plane1.gif
	delay	10
	@cmd	spawn01 "SpaceXplos" 0 8 0
	frame	data/chars/misc/empty.gif
	@cmd	suicide
	frame	data/chars/misc/empty.gif
	