Classes:ArtiBlastRadius

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.
Disc of Repulsion
Actor type Artifact Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number 10110 Class Name ArtiBlastRadius
Spawn ID 74 Identifier T_ITEMREPULSION


Classes: InventoryCustomInventoryArtiBlastRadius

The disc of repulsion, when used, pushes away nearby movable actors, including players, monsters and even projectiles. It can be used to avoid being hit by missiles, push enemies out of the way, throw them in chasms or traps, or even provoke infighting by making them collide another monsters. An actor projected by the disc of repulsion will take damage when colliding with a wall or another actor.

Monsters with the BOSS or DONTBLAST flags are normally unaffected; as well as any actor that isn't a monster, player, or projectile, unless they have the CANBLAST flag. When an actor is affected, a blue ring with a white cross temporarily appears on it to show the disc of repulsion did take effect.

DECORATE definition

ACTOR ArtiBlastRadius : CustomInventory
{
  +FLOATBOB
  Inventory.DefMaxAmount
  Inventory.PickupFlash "PickupFlash"
  +INVBAR
  +FANCYPICKUPSOUND
  Inventory.Icon "ARTIBLST"
  Inventory.PickupSound "misc/p_pkup"
  Inventory.PickupMessage "$TXT_ARTIBLASTRADIUS"
  Tag "$TAG_ARTIBLASTRADIUS"
  States
  {
  Spawn:
    BLST ABCDEFGH 4 Bright
    Loop
  Use:
    TNT1 A 0 A_Blast
  }
}