ACTOR IDMStimpackPickup : CustomInventory replaces Stimpack
{
  Radius 20
  Height 16
  Inventory.PickupMessage "Stimpack."
  Inventory.PickupSound "misc/hppkup"
  Inventory.RespawnTics 1050
  +BASEHEALTH
  +COUNTITEM
  States
  {
  Spawn:
    STIM A -1
    Stop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("PowerSoul",1,"Soulbonus")
	TNT1 A 0 A_GiveInventory("IDMStimpack")
	Stop
  Soulbonus:
	TNT1 A 0 A_GiveInventory("SoulStimpack",1)
	Stop
  }
}

ACTOR IDMStimpack : Health
{
  Inventory.Amount 25
  Inventory.PickupMessage "Stimpack."
  Inventory.PickupSound "misc/hppkup"
  States
  {
  Spawn:
    STIM A -1
    Stop
  }
}

ACTOR SoulStimpack : IDMStimpack
{
  Inventory.Amount 50
  Inventory.MaxAmount 300
}