
Actor SilencerUpgrade : Inventory
{
inventory.maxamount 1
}

Actor CompactMGSilencer: Custominventory
{
  Game Doom
  Radius 20
  +INVENTORY.ALWAYSPICKUP
  Inventory.PickupMessage "You picked up a silencer for the CompactMG!"
  Inventory.PickupSound "CMGATCH"
  VisibleToPlayerClass BDoomer, Doomer2, TacticalDoomer
  Inventory.ForbiddenTo Purist
  Scale 0.5
  States
  {
  Spawn:
    CMGI B 1
	CMGI B -1
    Stop
  Pickup:
    TNT1 A 0 A_GiveInventory("SilencerUpgrade", 1)
    Stop
  }
}

