Classes:ArtiTeleport
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:
|
Darchala's Chaos Device | |||
---|---|---|---|
Actor type | Artifact | Game | ![]() |
DoomEd Number | 36 | Class Name | ArtiTeleport |
Spawn ID | 18 | Identifier | T_ITEMTELEPORT |
Classes: Inventory→ArtiTeleport
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.