Classes:Whirlwind

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.
Whirlwind
Actor type Explosive Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name Whirlwind
Spawn ID 165 Identifier T_WHIRLWIND


Classes: Whirlwind
The tornado summoned by one of the iron lich's attacks. Its native action A_WhirlwindSeek gives it a limited homing capacity.

DECORATE definition

ACTOR Whirlwind native
{
  Radius 16
  Height 74
  Speed 10
  Damage 1
  Projectile
  -ACTIVATEIMPACT
  -ACTIVATEMCROSS
  +SEEKERMISSILE
  +EXPLOCOUNT
  +STEPMISSILE
  RenderStyle Translucent
  DefThreshold 60
  Threshold 50
  Alpha 0.4
  
  action native A_WhirlwindSeek();
  
  States
  {
  Spawn:
    FX07 DEFG 3
    FX07 ABC 3 A_WhirlwindSeek
    Goto Spawn+4
  Death:
    FX07 GFED 4
    Stop
  }
}