name	         RatBase
health	         40
setlayer	 1
type	         none
subject_to_gravity	 0
offscreenkill	 10000
animationscript  data/scripts/oscript.c
load	         Rattler2


anim spawn
@script
   if(frame==1){
     void self = getlocalvar("self");

     setentityvar(self, 1, 7);
   }
@end_script
	delay	10
	offset	50 65
	frame	data/chars/cobraboat/plane1.gif
	delay	300
	@cmd	MspawnN "Rattler2" 0 0 0 0
        frame   data/chars/misc/empty.gif
	delay	10
	offset	50 40
	frame	data/chars/cobraboat/plane1.gif
	offset	50 45
	frame	data/chars/cobraboat/plane1.gif
	offset	50 50
	frame	data/chars/cobraboat/plane1.gif
	offset	50 55
	frame	data/chars/cobraboat/plane1.gif
	offset	50 60
	frame	data/chars/cobraboat/plane1.gif

anim idle
	loop	1
	delay	20
	offset	50 65
	frame	data/chars/cobraboat/plane1.gif
	@cmd	attackE "ANI_FOLLOW1" 0
	frame	data/chars/cobraboat/plane1.gif

anim follow1
@script
   if(frame==0){
     void self = getlocalvar("self");
     void Limit = getentityvar(self, 1);

     if(Limit>0){ // Hasn't reached limit yet?
       setentityvar(self, 1, Limit-1);
     } else {
       killentity(self);
     }
   }
@end_script
	delay	1
	offset	50 65
	frame	data/chars/cobraboat/plane1.gif
	delay	300
	@cmd	MspawnN "Rattler2" 0 0 0 0
        frame   data/chars/misc/empty.gif
	delay	10
	offset	50 40
	frame	data/chars/cobraboat/plane1.gif
	offset	50 45
	frame	data/chars/cobraboat/plane1.gif
	offset	50 50
	frame	data/chars/cobraboat/plane1.gif
	offset	50 55
	frame	data/chars/cobraboat/plane1.gif
	offset	50 60
	frame	data/chars/cobraboat/plane1.gif
	@cmd	beidle
        frame   data/chars/misc/empty.gif
