ACTOR TKRWTurok1Knife : Weapon
{
  Weapon.Kickback 100
  scale 0.2
  Weapon.SelectionOrder 9999
  Inventory.Icon "TKA3G0"
  Inventory.PickupMessage "Knife"
  Obituary  "%k mercilessly beat %o with the end of his Knife."
  +WEAPON.MELEEWEAPON
  +INVENTORY.UNDROPPABLE
  Tag "Knife"
  	Inventory.PickupSound "Turok1/Items/PickupWeapon"
  States
  {
  Spawn:
    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:
    MK40 A 2 
    MK40 B 2
    MK40 C 2
    MK40 D 2
    MK40 E 2
    MK40 E -1 A_WeaponReady
    Goto Ready+5
  Deselect:
    MK40 F 2
    MK40 GHI 2
    MK40 E 0 A_Lower
    wait
  Select: 
    MK40 A 0 A_Raise 
    Loop  
  Fire: 
  MK40 A 0 A_Jump(128,"Fire2")
    MK40 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    MK42 ABCDE 1
	MK42 F 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	MK42 G 1
	MK42 H 0 A_CustomPunch(12, false, 0, "TK1HitPuff")
	MK42 HIJKLMNO 2
    Goto Ready+5
  Fire2: 
  MK40 A 0 A_Jump(128,"Fire3")
  MK40 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    MK42 PQ 1
	MK42 R 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	MK42 S 1
	MK42 T 1 A_CustomPunch(12, false, 0, "TK1HitPuff")
	MK42 U 1
	MK42 VXYZ 1
	MK43 ABCDEFGHIJ 1
    Goto Ready+5
 Fire3: 
  MK40 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    MK43 KLM 1
	MK43 N 1 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	MK43 O 1
	MK43 P 1 A_CustomPunch(12, false, 0, "TK1HitPuff")
	MK43 QRSTUVXYZ 1
	MK44 ABCDEFG 1
    Goto Ready+5
	
	
	  SwingPower1: 
  MK40 A 0 A_Jump(128,"SwingPower2")
    MK42 ABCDE 1
	MK42 F 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	MK42 G 1
	MK42 H 0 A_CustomPunch(21, true, 0, "TK1HitPuff")
	MK42 HIJKLMNO 1
    Goto Ready+5
  SwingPower2: 
  MK40 A 0 A_Jump(128,"SwingPower3")
    MK42 PQ 1
	MK42 R 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	MK42 S 1
	MK42 T 1 A_CustomPunch(21, true, 0, "TK1HitPuff")
	MK42 U 1
	MK42 VXYZ 1
	MK43 ABCDEFGHIJ 1
    Goto Ready+5
 SwingPower3: 
    MK43 KLM 1
	MK43 N 1 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	MK43 O 1
	MK43 P 1 A_CustomPunch(21, true, 0, "TK1HitPuff")
	MK43 QRSTUVXYZ 1
	MK44 ABCDEFG 1
    Goto Ready+5
	
  }
}

actor TK1HitPuff
{
  +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 "Turok1/Weapons/KnifeHit" // 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
  }
}