name		HawkE
health		400
speed		12
type		enemy
gfxshadow	1
aimove		chasez
aimove		avoidx
diesound	data/sounds/die3.wav
dust		dust
bflash		empty2
blockodds	1
escapehits	8
icon		data/chars/hawk/icon.png
animationscript	data/chars/commander/command.c

load		grenade
load		bullete


anim idle
	loop	1
	delay	12
	offset 	80 160
	bbox	60 64 52 93
	frame	data/chars/hawk/idle1.png
	frame	data/chars/hawk/idle2.png
	frame	data/chars/hawk/idle3.png
	frame	data/chars/hawk/idle4.png

anim walk
	loop	1
	delay	12
	offset 	80 160
	bbox	60 64 52 93
	frame	data/chars/hawk/walk1.png
	frame	data/chars/hawk/walk2.png
	frame	data/chars/hawk/walk3.png
	frame	data/chars/hawk/walk4.png
	frame	data/chars/hawk/walk5.png
	frame	data/chars/hawk/walk6.png

anim	spawn
	offset 	80 160
	delay	10
	jumpframe 1 3 4 0
	frame	data/chars/hawk/rise2.png
	delay	12
	frame	data/chars/hawk/jump1.png
	frame	data/chars/hawk/jump2.png
	frame	data/chars/hawk/jump3.png
	frame	data/chars/hawk/jump2.png
	frame	data/chars/hawk/jump1.png
	delay	10
	frame	data/chars/hawk/rise2.png


anim pain
	offset 	80 160
	delay	10
	bbox	60 64 52 93
	frame	data/chars/hawk/pain1.png
	delay	30
	frame	data/chars/hawk/pain2.png
	delay	10
	frame	data/chars/hawk/pain1.png	


anim fall
	offset 	80 160
	delay	20
	landframe 3
	bbox	20 64 87 70
	frame	data/chars/hawk/fall1.png
	frame	data/chars/hawk/fall2.png
	delay	300
	bbox	18 60 90 62
	frame	data/chars/hawk/fall3.png
	delay	10
	bbox	0
	frame	data/chars/hawk/fall4.png

anim burn
	loop	1 0 2
	offset 	80 160
	delay	5
	landframe 3
	frame	data/chars/hawk/burnt1.png
	frame	data/chars/hawk/burnt2.png
	frame	data/chars/hawk/burnt3.png
	delay	10
	frame	data/chars/hawk/fall4.png

anim rise
	delay	8
	offset	80 160
	frame	data/chars/Hawk/r1.png
	delay	13
	frame	data/chars/Hawk/r2.png
	delay	8
	frame	data/chars/Hawk/r3.png
	delay	13
	frame	data/chars/Hawk/r2.png
	delay	8
	frame	data/chars/Hawk/r3.png
	delay	13
	frame	data/chars/Hawk/r2.png
	delay	8
	frame	data/chars/Hawk/r3.png
	delay	8
	frame	data/chars/hawk/rise1.png
	frame	data/chars/hawk/rise2.png
	frame	data/chars/hawk/rise3.png


anim attack1
	range	30 110
	rangez	-10 10
	delay	4
	followanim 1
	followcond 1
	fastattack 1
	offset 	80 160
	bbox	60 64 52 93
	frame	data/chars/hawk/punch1.png
	attack	110 70 54 16 5
	frame	data/chars/hawk/punch2.png
	attack	0
	frame	data/chars/hawk/punch1.png
	
anim follow1
	delay	4
	followanim 2
	followcond 1
	fastattack 1
	offset 	80 160
	bbox	60 64 52 93
	frame	data/chars/hawk/punch2.png
	frame	data/chars/hawk/punch1.png
	delay	5
	frame	data/chars/hawk/punch21.png
	attack	110 70 54 24 7
	frame	data/chars/hawk/punch22.png
	attack	0
	frame	data/chars/hawk/punch23.png
	
anim follow2
	delay	5
	followanim 3
	followcond 1
	fastattack 1
	offset 	80 160
	bbox	60 64 52 93
	frame	data/chars/hawk/punch22.png
	frame	data/chars/hawk/punch23.png
	frame	data/chars/hawk/spunch1.png
	bbox	89 70 42 90
	frame	data/chars/hawk/spunch2.png
        delay   8
	attack	110 70 80 20 10
	frame	data/chars/hawk/spunch3.png
	attack	0
	bbox	60 64 52 93
	frame	data/chars/hawk/spunch4.png

anim follow3
	delay	8
	followanim 4
	followcond 1
	fastattack 1
	offset 	80 160
	bbox	89 70 42 90
	frame	data/chars/hawk/spunch3.png
	bbox	60 64 52 93
	frame	data/chars/hawk/spunch4.png
	delay	6
	frame	data/chars/hawk/kick1.png
	frame	data/chars/hawk/kick2.png
	attack	121 41 57 76 15 0 0 15 30
	frame	data/chars/hawk/kick3.png
	attack	0
	frame	data/chars/hawk/kick4.png
	frame	data/chars/hawk/kick5.png
	frame	data/chars/hawk/kick6.png
	frame	data/chars/hawk/kick7.png
	
anim follow4
	delay	6
	fastattack 1
	offset 	80 160
	bbox	60 64 52 93
	frame	data/chars/hawk/kick3.png
	frame	data/chars/hawk/kick4.png
	frame	data/chars/hawk/kick5.png
	frame	data/chars/hawk/kick6.png
	frame	data/chars/hawk/kick7.png
	delay	8
	hitflash slash
	hitfx	data/sounds/slash.wav
	frame	data/chars/hawk/knife1.png
	frame	data/chars/hawk/knife2.png
	attack2	110 63 100 28 20 1
	frame	data/chars/hawk/knife3.png
	attack	0
	frame	data/chars/hawk/knife4.png
	frame	data/chars/hawk/knife5.png
	
anim attack2
@script
    if( frame == 0){
      void self = getlocalvar("self");
      int r = rand()%30;

      if( r > -10){
        changeentityproperty(self, "animation", openborconstant("ANI_FOLLOW5"));
      }
    }
@end_script
	range	200 500
	rangez	-40 40
	delay	1
	offset 	80 160
	bbox	57 60 40 100
	sound   data/sounds/reload.wav
	frame	data/chars/hawk/shoot1.png
	delay	8
	frame	data/chars/hawk/shoot1.png
	frame	data/chars/hawk/shoot2.png
	delay	25
	frame	data/chars/hawk/shoot3.png
	delay	5
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 0
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 0.2
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 -0.2
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 0.4
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 -0.4
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 0
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 0.2
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 -0.2
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 0.4
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shooter "bulletE" 73 75 0 3 0 -0.4
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	delay	18
	frame	data/chars/hawk/shoot2.png
	frame	data/chars/hawk/shoot1.png

anim follow5
	delay	1
	offset 	80 160
	bbox	57 60 40 100
	sound   data/sounds/reload.wav
	frame	data/chars/hawk/shoot1.png
	delay	8
	frame	data/chars/hawk/shoot1.png
	frame	data/chars/hawk/shoot2.png
	delay	25
	@cmd	target 2.4 1.2 0 0 0 1
	frame	data/chars/hawk/shoot3.png
	delay	7
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shootT "bulletE" 73 75 1
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shootT "bulletE" 73 75 1
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shootT "bulletE" 73 75 1
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png
	sound	data/chars/snake_eyes/pistol.wav
	@cmd	shootT "bulletE" 73 75 1
	@cmd	tosser "shel" 20 66 0 -0.5 2 0
	frame	data/chars/hawk/shoot4.png
	frame	data/chars/hawk/shoot3.png

anim attack3
	range	0 200
	rangez	-50 -10
	delay	20
	offset 	80 160
	bbox	60 64 52 93
	@cmd	targetL 3 60 0 1
	frame	data/chars/hawk/gretoss1.png
	delay	8
	@cmd	tossT "Grenade" 40 100 0 3
	frame	data/chars/hawk/gretoss2.png
	frame	data/chars/hawk/gretoss3.png
	delay	20
	frame	data/chars/hawk/gretoss1.png

anim attack4
	range	0 200
	rangez	10 50
	delay	20
	offset 	80 160
	bbox	60 64 52 93
	@cmd	targetL 3 60 0 1
	frame	data/chars/hawk/gretoss1.png
	delay	8
	@cmd	tossT "Grenade" 40 100 0 3
	frame	data/chars/hawk/gretoss2.png
	frame	data/chars/hawk/gretoss3.png
	delay	20
	frame	data/chars/hawk/gretoss1.png


anim	special2
	offset 	80 160
	delay	10
	frame	data/chars/hawk/rise2.png
	delay	13
	@cmd	dodgeleapz 0 2 1
	frame	data/chars/hawk/jump1.png
	frame	data/chars/hawk/jump2.png
	frame	data/chars/hawk/jump1.png
	delay	10
	frame	data/chars/hawk/rise2.png

anim	block
	offset 	80 160
	delay	10
	frame	data/chars/hawk/rise2.png
	delay	13
	@cmd	dodgeleapz 0 2 1
	frame	data/chars/hawk/jump1.png
	frame	data/chars/hawk/jump2.png
	frame	data/chars/hawk/jump1.png
	delay	10
	frame	data/chars/hawk/rise2.png
