name	 	Spear
health   	0
type     	none
speed		8
candamage 	player
antigravity 30
subject_to_gravity 	0
no_adjust_base		0
subject_to_hole 	1
subject_to_wall 	1
offscreenkill		100
animationscript 	data/scripts/ani0020.h

anim idle
@script
	if(frame==0){
	void self = getlocalvar("self");
	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);
	}
@end_script
	loop		1
    delay		5
	offset 		18 14
    hitflash  	blood
    hitfx  		data/sounds/Double_Dragon_III/knife_damage.wav
	followanim 	1
	followcond 	1
	Bbox		11 9 17 7
    attack 		12 11 14 3 10 1 1 0 0 3
    dropv 		1 0.4
    forcedirection -1
    @cmd    antiwall4 10 "ANI_FOLLOW2"
    @cmd  knife 20 20 0 20 "ANI_FOLLOW2"
	@cmd	anichange	"ANI_Freespecial3"
	frame  data/chars/Gladiator/Spear_01.GIF
	
anim Freespecial3
@script
	if(frame==0){
	void self = getlocalvar("self");
	changeentityproperty(self, "defense", openborconstant("ATK_NORMAL2"), 0, 200, 0);
	}
@end_script
	loop		1
    delay		5
	offset 		18 14
    hitflash  	blood
    hitfx  		data/sounds/Double_Dragon_III/knife_damage.wav
	followanim 	1
	followcond 	1
	Bbox		11 9 17 7
    attack 		12 11 14 3 10 1 0 0 0 3
    dropv 		1 0.4
    forcedirection -1
    @cmd    antiwall4 10 "ANI_FOLLOW2"
    @cmd  knife 20 20 0 20 "ANI_FOLLOW2"
	frame  data/chars/Gladiator/Spear_01.GIF
    @cmd    antiwall4 10 "ANI_FOLLOW2"
    @cmd  knife 20 20 0 20 "ANI_FOLLOW2"
	frame  data/chars/Gladiator/Spear_01.GIF


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

    if(frame==1){
      killentity(self);
    }
@end_script
        delay     6
	offset 		18 14
	frame	 data/chars/misc/empty.gif
	frame	 data/chars/misc/empty.gif

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

    if(frame==0){
      changeentityproperty(self, "subject_to_gravity", 1);
    }
@end_script
	loop      0
    delay     10
	offset 		18 14
	jumpframe 0 2.5 -1 0
    sound  data/sounds/Double_Dragon_III/Weap_Wall.wav
    @cmd    degravity -0.30
    @cmd  knife 20 20 0 100 "ANI_FOLLOW2"
	frame  data/chars/Gladiator/Spear_02.GIF
	frame  data/chars/Gladiator/Spear_01.GIF
	frame  data/chars/Gladiator/Spear_02.GIF
	frame  data/chars/Gladiator/Spear_01.GIF
	frame	 data/chars/misc/empty.gif
    @cmd killentity getlocalvar("self")
	frame	 data/chars/misc/empty.gif



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

    if(frame==0){
      changeentityproperty(self, "subject_to_gravity", 1);
    }
@end_script
	loop      0
      delay     10
	offset 		18 14
	landframe 9
	jumpframe 0 2.5 -1 0
      sound  data/sounds/Double_Dragon_III/Weap_Wall.wav
      @cmd    degravity -0.30
      @cmd  knife 20 20 0 100 "ANI_FOLLOW2"
	frame  data/chars/Gladiator/Spear_02.GIF
	frame  data/chars/Gladiator/Spear_01.GIF
	frame  data/chars/Gladiator/Spear_02.GIF
	frame  data/chars/Gladiator/Spear_01.GIF
	frame	 data/chars/misc/empty.gif
      @cmd killentity getlocalvar("self")
	frame	 data/chars/misc/empty.gif

anim death
      loop      0
      delay     2
	offset 		18 14
      frame	 data/chars/misc/empty.gif
      @cmd killentity getlocalvar("self")
	frame	 data/chars/misc/empty.gif