ACTOR PDUnarmed : Weapon
{
  Weapon.Kickback 100
  scale 0.1
  	Weapon.SelectionOrder 9999
  Inventory.PickupMessage "WTF?"
  Obituary  "%k stopped %o in his tracks with his hands."
  Tag "Unarmed"
		+WEAPON.MELEEWEAPON
		  +INVENTORY.UNDROPPABLE
  States
  {
	Select:
		TNT1 A 1 A_Raise
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Raise
		loop
	Deselect:
		TNT1 A 1 A_Lower
		TNT1 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 0 A_Lower
		loop
	Ready:
		TNT1 A 1 A_WeaponReady
		loop
  Fire: 
    MK45 A 0 A_Jump(128,"Fire2")
	
	MK45 A 0 A_Jump(128,"Fire4")
    TK01 A 2
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/Unarmmed","Weapon")
    MK45 T 0 A_CustomPunch(10, false, 0, "PDPunchPuff")
    TK01 BCDEFG 2
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/Unarmmed","Weapon")
	MK45 T 0 A_CustomPunch(10, false, 0, "PDPunchPuff")
	TK01 HIJKLMN 2
    Goto Ready
	Fire2:
    MK45 A 0 A_Jump(128,"Fire3")
	TK01 OP 2
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/Unarmmed","Weapon")
	MK45 T 0 A_CustomPunch(10, false, 0, "PDPunchPuff")
	TK01 QRSTUV 2
    Goto Ready
	Fire3:
	MK45 A 0 A_Jump(128,"Fire4")
	TK01 XY 2
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/Unarmmed","Weapon")
	MK45 T 0 A_CustomPunch(10, false, 0, "PDPunchPuff")
	TK01 Z 2
	TK02 ABCDEFGH 2
    Goto Ready
	Fire4:
    TK02 IJ 2
	TNT1 A 0 A_PlaySound ("PerfectDark/Weapons/Unarmmed","Weapon")
	MK45 T 0 A_CustomPunch(10, false, 0, "PDPunchPuff")
	TK02 KLMNOPQR 2
  }
}

actor PDPunchPuff
{
  +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 "PerfectDark/Weapons/Punch" // 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
  }
}