ACTOR Hazmatsuit : CustomInventory replaces Radsuit
{
  Inventory.Icon ARTISUIT
  Inventory.PickupMessage "You've got the hazmat suit! Remember, doesn't protect from zombie bites!"
  Inventory.MaxAmount 100
  Inventory.Amount 100
  Inventory.InterHubAmount 100
  Inventory.PickupSound "Suit/Pickup"
  Inventory.UseSound ""
  Tag "Hazmat Suit"
  +INVBAR
  +INVENTORY.UNDROPPABLE
  States
  {
  Spawn:
    SUIT A -1
    Stop
  Use:
    TNT1 A 0 A_JumpIfInventory("PowerSuitProtect", 1, "Deactivate")
    TNT1 A 0 A_PlaySound("Suit/In",3)
    TNT1 A 0 A_GiveInventory("EnviroSet")
	TNT1 A 0 ACS_NamedExecuteAlways("ARadsuitThing")
    Fail
  Deactivate:
    TNT1 A 0 A_TakeInventory("PowerSuitProtect",1)
    TNT1 A 0 A_PlaySound("Suit/Out",3)
    Fail
  }
}

ACTOR EnviroSet : PowerupGiver
{
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
  Inventory.MaxAmount 0
  Powerup.Type "SuitProtect"
}

ACTOR PowerSuitProtect : PowerProtection
{
  Powerup.Duration 0x7FFFFFFF
  Powerup.Color Green, 0.05
  Inventory.Icon "ENVMASK0"

  DamageFactor "Normal", 0.85
  DamageFactor "Fire", 0.6
  DamageFactor "Ice", 0.6
  DamageFactor "Slime", 0.0
  DamageFactor "Poison", 0.1
  DamageFactor "Drowning", 0.0
  DamageFactor "PoisonCloud", 0.0
}