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
  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 1 
    MK45 B 1
    MK45 C 1
    MK45 D 1
    MK45 E 1
    MK45 F 1
	MK45 GHIJ 2
    MK45 J -1 A_WeaponReady
    Goto Ready+7
  Deselect:
    MK47 A 2
    MK47 BCDEFGH 1
    MK47 Y 0 A_Lower
    wait
  Select: 
    MK45 A 0 A_Raise 
    Loop  
  Fire: 
    MK45 A 0 A_Jump(128,"FireAlt")
	MK45 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    MK45 K 1
    MK45 L 1 
    MK45 M 1
    MK45 N 1
		TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
    MK45 OPQRS 2
    MK45 T 1 A_CustomPunch(15, false, 0, "TK2HitPuff")
    MK45 U 1
    MK45 V 1
    MK45 X 1
	MK45 Y 1
	MK45 Z 2
	MK46 A 2
	MK46 B 2
    Goto Ready+9
	FireAlt:
    MK45 A 0 A_Jump(128,"FireAlt2")
	MK45 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
	MK46 GHIJ 2
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
	MK46 KLM 1
	MK46 N 1 A_CustomPunch(15, false, 0, "TK2HitPuff")
	MK46 OPQRSTUVXYZ 2
	MK47 A 2
    Goto Ready+9
	FireAlt2:
	MK45 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
	MK48 ABCDE 1
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
	MK48 FG 1
	MK48 H 1 A_CustomPunch(15, false, 0, "TK2HitPuff")
	MK48 IJKLMNOPQRSTUVX 2
    Goto Ready+9
	 SwingPower:
    MK45 A 0 A_Jump(128,"SwingPower2")
    MK45 K 1
    MK45 L 1
    MK45 M 1
    MK45 N 1
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
    MK45 OPQRS 1
    MK45 T 1 A_CustomPunch(25, false, 0, "TK2HitPuff")
    MK45 U 1
    MK45 V 1
    MK45 X 1
	MK45 Y 1
	MK45 Z 1
	MK46 A 1
	MK46 B 1
    Goto Ready+9
	 SwingPower2:
	   MK45 A 0 A_Jump(128,"SwingPower3")
	MK46 GHIJ 1
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
	MK46 KLM 1
	MK46 N 1 A_CustomPunch(25, false, 0, "TK2HitPuff")
	MK46 OPQRSTUVXYZ 1
	MK47 A 1
    Goto Ready+9
	SwingPower3:
	MK48 ABCDE 2
	TNT1 A 0 A_PlaySound ("Turok2/Weapons/Talonattack","Weapon")
	MK48 FG 1
	MK48 H 1 A_CustomPunch(25, false, 0, "TK2HitPuff")
	MK48 IJKLMNOPQRSTUVX 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
  }
}