ACTOR TKRWTurok2Talon : Weapon
{
  Weapon.Kickback 100
  scale 0.1
  	Weapon.SelectionOrder 9999
  Inventory.PickupMessage "Talon"
  Obituary  "%k popped %o's eyes out with his Talon."
  Tag "Talon"
  	Inventory.PickupSound "Turok2/Items/PickupWeapon"
		Inventory.Icon "TKA5T0"
		+WEAPON.MELEEWEAPON
		  +INVENTORY.UNDROPPABLE
		  +CHEATNOTWEAPON
  States
  {
    TNT1 A 0
	TNT1 A 0 A_SpawnItemEx("TKRWWarHammer",0,0,0,random(1,2),0,5,random(0,360),SXF_NOCHECKPOSITION,0)
    Stop
  Ready:
    MK45 A 2 
    MK45 B 1
    MK45 C 2
    MK45 D 1
    MK45 E 2
    MK45 F 1
	MK45 G 2
	MK45 H 1
	MK45 I 2
	MK45 J 1
    MK45 J -1 A_WeaponReady
    Goto Ready+7
  Deselect:
    MN48 R 2
	MN48 S 1
	MN48 T 2
	MN48 U 1
	MN48 V 2
	MN48 X 1
	MN48 Y 2
    TK03 Y 0 A_Lower
    wait
  Select: 
    MK45 A 0 A_Raise 
    Loop  
  Fire: 
    MK45 A 0 A_Jump(128,"FireAlt")
    MK45 K 2
    MK45 L 1 
    MK45 M 1
    MK45 N 1
		TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
    MK45 OPQ 1
    MK45 R 1 A_CustomPunch(12, FALSE, 0, "TK2HitPuff")
    MK45 S 1
    MK45 T 2
    MK45 U 1
	MK45 V 1
	MK45 XYZ 1
	MK46 ABCDEF 1
    Goto Ready+9
	FireAlt:
    MK46 A 0 A_Jump(128,"FireAlt2")
	MK46 GHIJKL 1
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
	MK46 MNOPQ 1
	MK46 R 2 A_CustomPunch(12, FALSE, 0, "TK2HitPuff")
	MK46 S 1
	MK46 TUVXY 1
    Goto Ready+9
	FireAlt2:
	MK46 Z 2
	MK47 ABCDEF 1
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
	MN47 GH 1
	MN48 A 2 A_CustomPunch(12, FALSE, 0, "TK2HitPuff")
	MN48 BCDEFGHIJKLMNOPQ 1
    Goto Ready+9
  }
}

actor TK2HitPuff
{
  +NOBLOCKMAP
  +NOGRAVITY
  +PUFFONACTORS // this is necessary for it to still make sound on enemies
  activesound ""
  attacksound "melee/wall" // what sound it makes when you hit a wall with it
  seesound "Turok2/Weapons/ClawsHit" // 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
  }
}