ACTOR IDMMedikitPickup : CustomInventory replaces Medikit
{
  Radius 20
  Height 16
  Inventory.PickupMessage "Medikit."
  Inventory.PickupSound "misc/hppkup"
  Inventory.RespawnTics 1050
  +BASEHEALTH
  +COUNTITEM
  States
  {
  Spawn:
    MEDI A -1
    Stop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("PowerSoul",1,"Soulbonus")
	TNT1 A 0 A_GiveInventory("IDMMedikit")
	Stop
  Soulbonus:
	TNT1 A 0 A_GiveInventory("SoulMedikit",1)
	Stop
  }
}

ACTOR IDMMedikit : Health
{
  Inventory.Amount 50
  Inventory.PickupMessage "Medikit."
  Inventory.PickupSound "misc/hppkup"
  Health.LowMessage 25, "Ooh, I needed that!"
  States
  {
  Spawn:
    MEDI A -1
    Stop
  }
}

ACTOR SoulMedikit : IDMMedikit
{
  Inventory.Amount 100
  Inventory.MaxAmount 300
}