Classes:ArtiInvulnerability2

From ZDoom Wiki
Jump to navigation Jump to search
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
Icon of the Defender
Actor type Artifact Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 84 Class Name ArtiInvulnerability2
Spawn ID 133 Identifier T_ITEMINVULNERABILITY


Classes: InventoryPowerupGiverArtiInvulnerability2

The Icon appears as a large gray chess rook surrounded by a purple halo. It is the equivalent of the ring of invincibility from Heretic. In Hexen.wad, the sprites are actually named ARTIINVU and INVUA0 to INVUD0 and are renamed at load-time by ZDoom.

The differences in behavior for Baratus the Fighter, Parias the Cleric and Daedolon the Mage are handled by the player class's Player.InvulnerabilityMode actor property rather than by the item itself.

  • For Baratus: A rotating icon of a chess rook in the top right corner appears as long as the player is invulnerable, flickering in the last few seconds.
  • For Parias: As for Baratus, but in addition the player will phase in and out of ghost mode throughout the duration.
  • For Daedolon: As for Baratus, but in addition the player will reflect incoming projectiles.

DECORATE definition

ACTOR ArtiInvulnerability2 : PowerupGiver
{
  +COUNTITEM
  +FLOATBOB
  +INVENTORY.PICKUPFLASH
  Inventory.RespawnTics 4230
  Inventory.Icon ARTIDEFN
  Inventory.PickupMessage "$TXT_ARTIINVULNERABILITY2" // "ICON OF THE DEFENDER"
  Powerup.Type Invulnerable
  Tag "$TAG_ARTIDEFENDER"
  States
  {
  Spawn:
    DEFN ABCD 3
    Loop
  }
}