Classes:TelOtherFX1

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.
Banishment device blast
Actor type Explosive Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name TelOtherFX1


Classes: TelOtherFX1
 →TelOtherFX2
 →TelOtherFX3
 →TelOtherFX4
 →TelOtherFX5

This projectile implements Hexen's Banishment Device. The four child classes are spawned by A_TeloSpawnA through A_TeloSpawnD to leave a slight trail as the projectile moves.

Upon hitting a monster, that monster is teleported to a random deathmatch start. If it has a TID, the TID is set to zero. If it has a special, that special is executed and removed.

Upon hitting a player, that player will be teleported to a random start spot, either a deathmatch start for deathmatch games or a normal start for other game modes. Unlike monsters, a player's TID and special will be unaltered.

DECORATE definition

ACTOR TelOtherFX1 native
{
  Damage 10001
  Projectile
  -ACTIVATEIMPACT
  -ACTIVATEPCROSS
  +BLOODLESSIMPACT
  Radius 16
  Height 16
  Speed 20

  action native A_TeloSpawnA();
  action native A_TeloSpawnB();
  action native A_TeloSpawnC();
  action native A_TeloSpawnD();
  action native A_CheckTeleRing();

  States
  {
  Spawn:
    TRNG E 5 Bright
    TRNG D 4 Bright
    TRNG C 3 Bright A_TeloSpawnC
    TRNG B 3 Bright A_TeloSpawnB
    TRNG A 3 Bright A_TeloSpawnA
    TRNG B 3 Bright A_TeloSpawnB
    TRNG C 3 Bright A_TeloSpawnC
    TRNG D 3 Bright A_TeloSpawnD
    Goto Spawn+2
  Death:
    TRNG E 3 Bright
    Stop
  }
}