Classes:ArtiInvulnerability2

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.
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
  }
}