ACTOR TK3Tomahawk : Weapon
{
  Weapon.Kickback 100
  scale 0.5
  Inventory.PickupMessage "Tomahawk"
  Weapon.SelectionOrder 9999
  Obituary  "%o lost %p head by %k."
  	Inventory.PickupSound "Turok3/Items/PickupWeapon"
	inventory.Icon "TKA5Y0"
	Tag "Tomahawk"
		+WEAPON.MELEEWEAPON
  States
  {
  Spawn:
    TKA3 H -1
    Loop
  Ready:
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkUp","Weapon")
    TK01 A 2 
    TK01 B 2
    TK01 C 2
    TK01 D 2
    TK01 E 2
    TK01 F 2
	TK01 G 2
    TK01 G 200 A_WeaponReady
	MK01 ABCDEFGHIJKLMNOPQRSTUVXYZ 1 A_WeaponReady
	MK02 ABCDEFGHIJKLMNOPQRSTUVXYZ 1 A_WeaponReady
	MK03 ABCDEFGHIJKLMNO 2 A_WeaponReady
	TK01 G 200 A_WeaponReady
	MK04 ABCDEFGHIJKLMNOPQRSTUVXYZ 1 A_WeaponReady
	MK05 ABCDEFGHIJKLMNOPQRSTUVXYZ 1 A_WeaponReady
	MK06 ABCDEFGHIJKLMN 1 A_WeaponReady
    Goto Ready+7
  Deselect:
    TK01 U 2
    TK01 VXY 2
    TK01 Y 0 A_Lower
    wait
  Select: 
    TK01 A 0 A_Raise 
    Loop  
  Fire: 
  TK01 A 0 A_Jump(128,"FireAlt")
  	TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
 	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkAttack","Weapon")
    TK01 H 1
    TK01 I 1 
    TK01 J 1 
    TK01 K 1 
    TK01 L 1
    TK01 M 1
    TK01 N 1 A_CustomPunch(20, FALSE, 0, "TK3HitPuff")
    TK01 O 1
    TK01 P 1
	TK01 Q 1
	TK01 R 1
	TK01 S 1
	TK01 T 1
	TK01 G 12
    Goto Ready+7
	  FireAlt: 
	  	TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    TK50 ABC 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkAttack","Weapon")
	TK50 DEF 1
    TK50 G 1 A_CustomPunch(20, FALSE, 0, "TK3HitPuff")
    TK50 HIJKLM 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkAttack","Weapon")
    TK50 N 1 A_CustomPunch(20, FALSE, 0, "TK3HitPuff")
	TK50 O 1
	TK50 P 1
	TK50 Q 1
	TK50 RS 1
	TK01 G 12
    Goto Ready+7
	
	
  SwingPower: 
  TK01 A 0 A_Jump(128,"SwingPower2")
 	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkAttack","Weapon")
    TK01 H 1
    TK01 I 1 
    TK01 J 1 
    TK01 K 1 
    TK01 L 1
    TK01 M 1
    TK01 N 1 A_CustomPunch(40, FALSE, 0, "TK3HitPuff")
    TK01 O 1
    TK01 P 1
	TK01 Q 1
	TK01 R 1
	TK01 S 1
	TK01 T 1
    Goto Ready+7
	SwingPower2: 
    TK50 ABC 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkAttack","Weapon")
	TK50 DEF 1
    TK50 G 1 A_CustomPunch(40, FALSE, 0, "TK3HitPuff")
    TK50 HIJKLM 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/TomahawkAttack","Weapon")
    TK50 N 1 A_CustomPunch(40, FALSE, 0, "TK3HitPuff")
	TK50 O 1
	TK50 P 1
	TK50 Q 1
	TK50 RS 1
    Goto Ready+7
	
  }
}

actor TK3HitPuff
{
  +NOBLOCKMAP
  +NOGRAVITY
  +PUFFONACTORS // this is necessary for it to still make sound on enemies
  activesound ""
  attacksound "Turok3/Weapons/TomahawkHitWall" // what sound it makes when you hit a wall with it
  seesound "Turok3/Weapons/MeleeHit" // what sound it makes when you beat somebody up with it
  states
  {
  Spawn:
    TNT1 A 0
    TNT1 A 1
    stop
  Crash:
     TNT1 A 0
     TNT1 A 1
     stop
  Melee:
     TNT1 A 0
     TNT1 A 1
     stop
  }
}