name		 Tomcat
health		 100
type		 none
makeinv		 4
nodrop		 2
nopain		 1
death		 1
weaploss	 3
modelflag	 7
height		 15
antigravity	 100
subject_to_platform 1
animationscript	 data/scripts/skyhawk.c
takedamagescript data/scripts/blink.c
keyscript	 data/scripts/tcfly.c
script		 data/scripts/tomHUD.c


palette		 data/chars/tomcat/tomcat.png
alternatepal	 data/chars/tomcat/blink.png

		
anim	spawn
@script
    void self = getlocalvar("self");

    if(frame == 0){
      int X = getindexedvar(3);
      if(X == 1){
        changeentityproperty(self,"animation", openborconstant("ANI_RESPAWN"));
      }
    }
    if(frame == 1){
      changeentityproperty(self,"health",100);
      setglobalvar("Bomb", 30);
    }
    if(frame == 18){
      changeentityproperty(self,"noaicontrol",0);
    } else {
      changeentityproperty(self,"noaicontrol",1);
    }
@end_script
	delay	5
	offset	55 20
sound	data/sounds/Tomcat.wav
	frame	data/chars/misc/empty.gif
	delay	100
	@cmd	dasher 0.5 0 0
	frame	data/chars/tomcat/tomcat.png
	@cmd	dasher 1 0 0
	frame	data/chars/tomcat/tomcat.png
	@cmd	dasher 1.5 0 0
	frame	data/chars/tomcat/tomcat.png
	@cmd	dasher 2 0 0
	frame	data/chars/tomcat/tomcat.png
	@cmd	dasher 2 0.5 0
	frame	data/chars/tomcat/tomcat.png
	delay	10
	@cmd	dasher 2 1 0
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	@cmd	dasher 2 1.5 0
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	@cmd	dasher 2 0 0
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	frame	data/chars/tomcat/tomcat2.png
		
anim	respawn
@script
    void self = getlocalvar("self");
    int x = getentityproperty(self,"x"); //Get character's x coordinate
    int z = getentityproperty(self,"z"); //Get character's z coordinate
    int a = getindexedvar(2); //Get respawn a coordinate

    if(a!=NULL()){
      if(frame == 1){
        changeentityproperty(self, "position", x, z, a);
      }
    }

    if(frame == 8){
      changeentityproperty(self,"noaicontrol",0);
    } else {
      changeentityproperty(self,"noaicontrol",1);
    }
@end_script
	delay	1
	offset	55 20
sound	data/sounds/Tomcat.wav
	frame	data/chars/tomcat/tomcat.png
	delay	5
	frame	data/chars/tomcat/tomcat.png
	delay	10
	@cmd	dasher 2 0 0
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png
	delay	5
	@cmd	dasher 0 0 0
	frame	data/chars/tomcat/tomcat2.png
	

anim	idle
	loop	1
	delay	1
	offset	55 20
	bbox	19 9 73 12
sound	data/sounds/Tomcat.wav
	frame	data/chars/tomcat/tomcat2.png
	@cmd	attack0 "ANI_FOLLOW1"
	frame	data/chars/tomcat/tomcat3.png
	
anim	walk
	loop	1
	delay	5
	offset	55 20
sound	data/sounds/Tomcat.wav
	bbox	19 9 73 12
	frame	data/chars/tomcat/tomcat2.png
	frame	data/chars/tomcat/tomcat3.png


anim follow1
	loop	1 2 6
	delay	1
	offset	55 20
	bbox	19 9 73 12
	frame	data/chars/tomcat/tomcat.png
	delay	5
	@cmd	dasher 2 0 0
	frame	data/chars/tomcat/tomcat.png
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.51
	@cmd	keyspeed 0.05 2 3
	@cmd	keyshoot2 "TShot" 14 1 2.5 1 15
	@cmd	keybomb "TBomb" 0 -5 0.4 0 20
	frame	data/chars/tomcat/tomcat2.png
	@cmd	keyshoot2 "TShot" 14 1 2.5 1 15
	@cmd	keybomb "TBomb" 0 -5 0.4 0 20
	frame	data/chars/tomcat/tomcat.png
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.26
	@cmd	keyspeed 0.05 2 3
	@cmd	keyshoot2 "TShot" 14 1 2.5 1 15
	@cmd	keybomb "TBomb" 0 -5 0.4 0 20
	frame	data/chars/tomcat/tomcat.png
	@cmd	keyshoot2 "TShot" 14 1 2.5 1 15
	@cmd	keybomb "TBomb" 0 -5 0.4 0 20
	frame	data/chars/tomcat/tomcat2.png
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.51
	@cmd	keyspeed 0.05 2 3
	@cmd	keyshoot2 "TShot" 14 1 2.5 1 15
	@cmd	keybomb "TBomb" 0 -5 0.4 0 20
	frame	data/chars/tomcat/tomcat2.png

anim follow2
	delay	10
	offset	90 56
sound	data/sounds/Tomcat.wav
	frame	data/chars/tomcat/turn/turn1.gif
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.51
	@cmd	dasher 1 0 0
	frame	data/chars/tomcat/turn/turn2.gif
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.26
	@cmd	dasher 0.5 0 0
	frame	data/chars/tomcat/turn/turn3.gif
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.51
	@cmd	dasher 0 0 0
	frame	data/chars/tomcat/turn/turn4.gif
	@cmd	shooterDmg "Asap2" -12 7 1 0.5 0 0 0.26
	@cmd	dasher -0.5 0 0
	frame	data/chars/tomcat/turn/turn5.gif
	@cmd	shooterDmg "Asap2" -12 7 1 0.5 0 0 0.51
	@cmd	dasher -1 0 0
	frame	data/chars/tomcat/turn/turn6.gif
	@cmd	shooterDmg "Asap2" -12 7 1 0.5 0 0 0.26
	@cmd	dasher -1.5 0 0
	frame	data/chars/tomcat/turn/turn7.gif
	@cmd	shooterDmg "Asap2" -12 7 1 0.5 0 0 0.51
	@cmd	dasher -2 0 0
	frame	data/chars/tomcat/turn/turn8.gif
	offset	55 20
	@cmd	flip
	@cmd	dasher 2 0 0
	@cmd	shooterDmg "Asap2" -12 7 1 -0.5 0 0 0.26
	frame	data/chars/tomcat/tomcat2.png
	@cmd	attack0 "ANI_FOLLOW1"
	frame	data/chars/tomcat/tomcat3.png


anim death
	delay	1
	offset	55 20
	frame	data/chars/tomcat/tomcat.png
	delay	150
	@cmd	degravity 0.5
	@cmd	spawn01 "SpaceXplos" 0 0 0
	frame	data/chars/misc/empty.gif

#|edited by openBor Stats v 0.41
