ACTOR TK3Blade : Weapon
{
  Weapon.Kickback 100
  scale 0.5
  Inventory.PickupMessage "Blade"
  Obituary  "%o was Slashed by %k's blade."
  	Inventory.PickupSound "Turok3/Items/PickupWeapon"
		inventory.Icon "TKA5X0"
		+WEAPON.WIMPY_WEAPON
	+WEAPON.MELEEWEAPON
  States
  {
  Spawn:
    TKA5 X -1
    Loop
  Ready:
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeUp","Weapon")
    TK02 A 2 
    TK02 B 2
    TK02 C 2
    TK02 D 2
    TK02 E 2
    TK02 F 2
    TK02 G 2
    TK02 G -1 A_WeaponReady
    Goto Ready+9
  Deselect:
    TK02 X 2
    TK02 YZ 2
	TK03 A 2
    TK03 A 0 A_Lower
    wait
  Select: 
    TK02 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/BladeAttack","Weapon")
    TK02 H 1
    TK02 I 1 
    TK02 J 1 
    TK02 K 1 
    TK02 L 1
    TK02 M 1
    TK02 N 1
    TK02 O 1
    TK02 P 1
	TK02 Q 1 A_CustomPunch(7, FALSE, 0, "TK3HitPuff2")
	TK02 R 1
	TK02 S 1
	TK02 T 1
    Goto Ready+6
	FireAlt: 
  TK01 A 0 A_Jump(128,"FireAlt2")
  TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    TK51 AB 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
	TK51 CDEF 1
    TK51 G 1 A_CustomPunch(7, FALSE, 0, "TK3HitPuff2")
    TK51 HIJK 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
	TK51 LM 1
	TK51 N 1 A_CustomPunch(7, FALSE, 0, "TK3HitPuff2")
	TK51 OPQR 1
    Goto Ready+6
FireAlt2:
TK01 A 0 A_JumpIfInventory("PowerStrength",1,"SwingPower")
    TK51 STUVXY 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
    TK51 Z 1 A_CustomPunch(7, FALSE, 0, "TK3HitPuff2")
    TK52 ABCDEFG 1
    Goto Ready+6
	
  SwingPower: 
  TK01 A 0 A_Jump(128,"SwingPower2")
 	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
    TK02 H 1
    TK02 I 1 
    TK02 J 1 
    TK02 K 1 
    TK02 L 1
    TK02 M 1
    TK02 N 1
    TK02 O 1
    TK02 P 1
	TK02 Q 1 A_CustomPunch(13, FALSE, 0, "TK3HitPuff2")
	TK02 R 1
	TK02 S 1
	TK02 T 1
    Goto Ready+6
	SwingPower2: 
  TK01 A 0 A_Jump(128,"SwingPower3")
    TK51 AB 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
	TK51 CDEF 1
    TK51 G 1 A_CustomPunch(13, FALSE, 0, "TK3HitPuff2")
    TK51 HIJK 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
	TK51 LM 1
	TK51 N 1 A_CustomPunch(13, FALSE, 0, "TK3HitPuff2")
	TK51 OPQR 1
    Goto Ready+6
	SwingPower3:
    TK51 STUVXY 1
	TNT1 A 0 A_PlaySound ("Turok3/Weapons/BladeAttack","Weapon")
    TK51 Z 1 A_CustomPunch(26, FALSE, 0, "TK3HitPuff2")
    TK52 ABCDEFG 1
    Goto Ready+6
	
  }
}


actor TK3HitPuff2
{
  +NOBLOCKMAP
  +NOGRAVITY
  +PUFFONACTORS // this is necessary for it to still make sound on enemies
  activesound ""
  attacksound "Turok3/Weapons/BladeHitWall" // 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
  }
}