Classes:PowerMask

From ZDoom Wiki
Revision as of 20:14, 23 August 2014 by Gez (talk | contribs)
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.
Environment protection power
Actor type Power Game MiniZDoomLogoIcon.png (ZDoom)
DoomEd Number None Class Name PowerMask


Classes: InventoryPowerupPowerIronFeetPowerMask

Gives the same powers as the radiation suit, but does not change the screen color. It also lasts 33% longer than a Doom radiation suit, and is kept when traveling through hubs.

DECORATE definition

ACTOR PowerMask : PowerIronFeet native
{
  Powerup.Duration -80
  Powerup.Color 0, 0, 0, 0
  +INVENTORY.HUBPOWER
  Inventory.Icon "I_MASK"
}