actor NanoMachineGun : Weapon
{
  Weapon.SelectionOrder 2000
  Weapon.AmmoUse 1
  Weapon.AmmoGive 60
  Scale 0.65
  Weapon.AmmoType "Clip"
  Obituary  "%o was blasted by %k's Machinegun."
  Inventory.PickupMessage "Picked up a Machinegun."
  Weapon.UpSound "mgun/cock"
  Inventory.RestrictedTo "MorseClass"
  Tag "UMP-45"
  States
  {
  Ready:
	NAMG A 1 A_WeaponReady
    Loop
  Deselect:
    NAMG A 1 A_Lower
	TNT1 A 0 A_Lower
	TNT1 A 0 A_Lower
	Loop
  Select:
	NAMG A 1 A_Raise
	TNT1 A 0 A_Raise
	TNT1 A 0 A_Raise
    Loop
  Fire:
    NAMG A 1 bright
	NAUZ X 0 bright A_PlaySound("mgun/fire")
    NAUZ Z 1 bright A_FireBullets(2,2,1,10,"NanoPuff",1)
	NAUZ X 0 bright A_Recoil(0.2)
    NAUZ X 1 bright A_SpawnItemEx("PisCaseSpawn",30,0,29,0,0,0,0,128)
	NAMG A 0 bright A_ReFire
    Goto Ready
  Spawn:
    MPPU A -1
    Stop
  }
}