ACTOR TK1Knife : Weapon
{
  Weapon.Kickback 100
  scale 0.2
  Inventory.Icon "TKA3G0"
  Inventory.PickupMessage "Knife"
  Obituary  "%k mercilessly beat %o with the end of his Knife."
  +WEAPON.MELEEWEAPON
  +INVENTORY.UNDROPPABLE
  	Inventory.PickupSound "Turok1/Items/PickupWeapon"
  States
  {
  Spawn:
    TKA2 L -1
    Loop
  Ready:
    TK01 A 2 
    TK01 B 2
    TK01 C 2
    TK01 D 2
    TK01 E 2
    TK01 E -1 A_WeaponReady
    Goto Ready+5
  Deselect:
    TK02 B 2
    TK02 CDE 2
    TK02 E 0 A_Lower
    wait
  Select: 
    TK01 A 0 A_Raise 
    Loop  
  Fire: 
  TK01 A 0 A_Jump(128,"Fire2")
    TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    TK27 ABCDE 1
	TK27 F 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	TK27 G 1
	TK27 H 0 A_CustomPunch(25, FALSE, 0, "TK1HitPuff")
	TK27 HIJKLMNO 2
    Goto Ready+5
  Fire2: 
  TK01 A 0 A_Jump(128,"Fire3")
  TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    TK27 PQ 1
	TK27 R 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	TK27 S 1
	TK27 T 1 A_CustomPunch(25, FALSE, 0, "TK1HitPuff")
	TK27 U 1
	TK27 VXYZ 1
	TK28 ABCDEFGHIJ 1
    Goto Ready+5
 Fire3: 
  TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    TK28 KLM 1
	TK28 N 1 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	TK28 O 1
	TK28 P 1 A_CustomPunch(25, FALSE, 0, "TK1HitPuff")
	TK28 QRSTUVXYZ 1
	TK29 ABCDEFG 1
    Goto Ready+5
    SwingPower:
    TK01 FG 1
	TK01 H 1 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	TK01 I 1
	TK01 J 0 A_CustomPunch(45, FALSE, 0, "TK1HitPuff")
	TK01 J 1
	TK01 KLMNO 1
	TK01 P 2 A_PlaySound ("Turok1/Weapons/KnifeAttack")
	TK01 QR 1 
	TK01 J 0 A_CustomPunch(45, FALSE, 0, "TK1HitPuff")
	TK01 S 1 
	TK01 TUVXYZ 1
	TK02 A 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
  }
}