Actor SlugMode : Inventory
{
inventory.maxamount 1
}

Actor SlugRoundsUpgrade : Inventory
{
inventory.maxamount 1
}

Actor SilencerUpgrade : Inventory
{
inventory.maxamount 1
}

Actor SlugRounds: Custominventory
{
  Game Doom
  Radius 20
  Height 16
  Scale 0.9
  +INVENTORY.ALWAYSPICKUP
  +COUNTITEM
  Inventory.PickupMessage "You picked up a box of Slugs."
  Inventory.PickupSound "weapons/sgpump"
  VisibleToPlayerClass BDoomer, Doomer2, TacticalDoomer
  Inventory.ForbiddenTo Purist
  States
  {
  Spawn:
    SLSU A 1
    SLSU A -1
    Stop
  Pickup:
    TNT1 A 0 A_GiveInventory("SlugRoundsUpgrade", 1)
    TNT1 A 0 A_GiveInventory("AmmoShell", 20)
    Stop
  }
}

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

ACTOR PistolAmmoBox: CustomInventory
{
 Game Doom
 Scale 0.9
 Radius 20
 Height 16
 Inventory.PickupMessage "You picked up a pistol ammo box!"
 Inventory.PickupSound "items/pammo"
 States
 {
  Spawn:
   4M0K A 1
   4M0K A -1
   Stop
   
  Pickup:
   TNT1 A 0 A_GiveInventory("Clip1", 100)
   Stop
  }
}