Classes:ArtiTeleport

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.
Darchala's Chaos Device
Actor type Artifact Game MiniRavenLogoIcon.png (Raven)
DoomEd Number 36 Class Name ArtiTeleport
Spawn ID 18 Identifier T_ITEMTELEPORT


Classes: InventoryArtiTeleport


The Chaos Device is a magic artifact that enters the player's inventory when picked up and, when activated, gives the player an "emergency escape" from dangerous situations and unmorphs them if they are currently morphed.


Using in DECORATE

When this (or inherited) actor is used it teleports the activator to one of the player starts. It also cancels player morph and plays the sound "*evillaugh" (if defined).


DECORATE definition

ACTOR ArtiTeleport : Inventory native
{
  +COUNTITEM
  +FLOATBOB
  +INVENTORY.INVBAR
  +INVENTORY.PICKUPFLASH
  +INVENTORY.FANCYPICKUPSOUND
  Inventory.DefMaxAmount
  Inventory.Icon "ARTIATLP"
  Inventory.PickupSound "misc/p_pkup"
  Inventory.PickupMessage "$TXT_ARTITELEPORT" // "CHAOS DEVICE"
  Tag "$TAG_ARTITELEPORT"
  States
  {
  Spawn:
    ATLP ABCB 4
    Loop
  }
}

Notes

As of 2.3.0, the "*evillaugh" sound is recognised in any game; previously it could be defined, but was only fully recognised by Heretic.