name		CobraPlane1
health		1
type		enemy
hostile		obstacle
nomove		1 1
nodrop		2
nopain		1
death		1
antigravity	100
offscreenkill	13000
subject_to_platform 0

animationscript	 data/chars/cobras/jetsc.c

load		CBomb
load		JetBullet




anim	death
	offset	17 12
	delay	1
	frame	data/chars/cobraboat/plane1.gif
	delay	10
	@cmd	spawn01 "SpaceXplos" 0 0 0
	frame	data/chars/misc/empty.gif
	@cmd	suicide
	frame	data/chars/misc/empty.gif
		
anim	follow1
	delay	1
	offset	17 12
	bbox	3 7 100 17
	frame	data/chars/cobraboat/plane1.gif
	attack	5 4 116 18 10
	delay	300
	@cmd	dasher 1.8 0 0 1
	@cmd	shooter2 "CBomb" 2 -1 0 -1
	frame	data/chars/cobraboat/plane1.gif
	@cmd	beidle
	frame	data/chars/cobraboat/plane1.gif
		
anim	idle
@script
	void self = getlocalvar("self");
	int  x = getentityproperty(self, "x");

	if( x < -60){
	  killentity(self);
	}
	@end_script	
	loop	1
	delay	5
	offset	17 12
	bbox	3 7 100 17
	attack	5 4 116 18 10
	frame	data/chars/cobraboat/plane1.gif
	@cmd	dasher 1.8 0 0 1
	@cmd	attack1 -200 200 -500 20 "ANI_FOLLOW1" 
frame	data/chars/cobraboat/plane1.gif
delay 30
sound data/sounds/HydraGun.wav
@cmd shoot "JetBullet" 44 0 -1
	frame	data/chars/cobraboat/plane1.gif
		
anim	spawn
@script

  if(frame==1){
     void self = getlocalvar("self");
     changeentityproperty(self, "name", "Cobra_Plane");
  }
	@end_script	
	delay	50
	offset	17 12
	frame	data/chars/cobraboat/plane1.gif
	delay	5
	@cmd	dasher 1.8 0 0 1
	frame	data/chars/cobraboat/plane1.gif
		
#|edited by openBor Stats v 0.41
		
