
ACTOR DukeHealthPickup : CustomInventory replaces Stimpack 19151
{
  Inventory.PickupMessage "$D3D_HEALTH"
  Inventory.MaxAmount 0
  Inventory.Amount 1
  +INVENTORY.IGNORESKILL
  scale 0.75
  States
  {
  Spawn:
    HEAL A -1
    Stop
  Pickup:
    SHTP A 0 ACS_ExecuteWithResult(602,10,0,0)
    TNT1 A 1
    stop
  }
}

ACTOR DukeBigHealthPickup : CustomInventory replaces Medikit 19152
{
  Inventory.PickupMessage "$D3D_BIGHEALTH"
  Inventory.MaxAmount 0
  Inventory.Amount 1
  +INVENTORY.IGNORESKILL
  scale 0.5
  States
  {
  Spawn:
    HEAL B -1
    Stop
  Pickup:
    SHTP A 0 ACS_ExecuteWithResult(602,30,0,0)
    TNT1 A 1
    stop
  }
}

ACTOR FirstaidkitPickup : CustomInventory replaces Soulsphere 19153
{
  Inventory.PickupMessage "$D3D_HEALTHP"
  Inventory.Amount 1
  Inventory.MaxAmount 1
  +INVENTORY.IGNORESKILL
  +COUNTITEM
  scale 0.5
  States
  {
  Spawn:
    HEAL C -1
    Stop
  Pickup:
	TNT1 A 0 A_JumpIfInventory("Portable_Medkit",100,2)
	TNT1 A 1 A_GiveInventory("Portable_Medkit", 100)
	Stop
	TNT1 A 1
	Fail
  }
}

ACTOR Portable_Medkit : CustomInventory
{
  Inventory.Amount 100
  Inventory.MaxAmount 100
  Inventory.Icon "MEDICON"
  +INVENTORY.INVBAR
  +INVENTORY.IGNORESKILL
  Inventory.InterHubAmount 100
  +INVENTORY.PERSISTENTPOWER
  scale 0.5
  Tag "Portable Medkit"
  States
  {
  Spawn:
    HEAL C -1
    Stop
  Use:
    TNT1 A 0 ACS_ExecuteWithResult(603,0,0,0)
    TNT1 A 1
    Stop
  }
}

ACTOR DukeHealth : Health 
{
	Inventory.MaxAmount 100
}

ACTOR DukeHealthPlus : Health 
{
	Inventory.MaxAmount 200
}

ACTOR DukeHealthBonus : Health replaces HealthBonus 19154
{
  +COUNTITEM
  +INVENTORY.ALWAYSPICKUP
  Inventory.Amount 1
  Inventory.MaxAmount 200
  Inventory.PickupMessage "$D3D_HEALTHB"
  Scale 0.25
  States
  {
  Spawn:
    COCA ABCDEFGH 5
    Loop
  }
}

ACTOR AtomicHealth : CustomInventory replaces MegaSphere 19155
{
  Inventory.PickupMessage "$D3D_ATOMIC"
  Inventory.PickupSound "misc/atomic"
  Inventory.MaxAmount 0
  Inventory.Amount 1
  +INVENTORY.IGNORESKILL
  +COUNTITEM
  +NOGRAVITY
  scale 0.6
  States
  {
  Spawn:
    ATOM ABCDEFGHIJKLMNOP 2 Bright
    Loop
  Pickup:
    SHTP A 0 ACS_ExecuteWithResult(609,0,0,0)
    TNT1 A 1
    stop
  }
}