Classes:RadSuit

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! You do not need to copy this actor's code into your project! Here's why:
  1. This actor is already defined in GZDoom, there's no reason to define it again.
  2. In fact, trying to define an actor with the same name will cause an error (because it already exists).
  3. If you want to make your own version of this actor, use inheritance.
  4. Definitions for existing actors are put on the wiki for reference purpose only.
Radiation-shielding suit
Actor type Powerup Game MiniDoomLogoIcon.png (Doom)
DoomEd Number 2025 Class Name RadSuit
Spawn ID 136 Identifier T_IRONFEET


Classes: InventoryPowerupGiverRadSuit

This is the radiation suit powerup from Doom and Doom 2. It grants the wearer immunity from most damaging sector effects, but may randomly fail to prevent against injury from a sector effect that deals high damage (See Classes:PowerIronFeet for a full list of sector effects). The user's screen is tinted green while the powerup is in effect. Effective for 1 minute (2100 tics).

DECORATE definition

ACTOR RadSuit : PowerupGiver
{
  Height 46
  +INVENTORY.AUTOACTIVATE
  +INVENTORY.ALWAYSPICKUP
  Inventory.MaxAmount 0
  Inventory.PickupMessage "$GOTSUIT" // "Radiation Shielding Suit"
  Powerup.Type "IronFeet"
  States
  {
  Spawn:
    SUIT A -1 Bright
    Stop
  }
}