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
  +INVENTORY.ALWAYSPICKUP
  +COUNTITEM
  Inventory.PickupMessage "Picked up a box of Slug shells."
  Inventory.PickupSound "weapons/sgpump"
  States
  {
  Spawn:
    SLSU A 1
    SLSU A -1
    Loop
  Pickup:
    TNT1 A 0 A_GiveInventory("SlugRoundsUpgrade", 1)
    TNT1 A 0 A_GiveInventory("AmmoShell", 20)
    Stop
  }
}

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

ACTOR PistolAmmoBox: CustomInventory
{
 Game Doom
 //Scale 0.8
 Scale 1.3
 Radius 20
 Height 16
 Inventory.PickupMessage "You got a Pistol ammo box!"
 Inventory.PickupSound "items/pammo"
 States
 {
  Spawn:
   4M0K A 1 bright 
   loop
   
  Pickup:
   TNT1 A 0 A_GiveInventory("Clip1", 100)
   Stop
  }
}