Classes:BJRun

From ECWolf Wiki
Note: Wait! Stop! Before you copy this actor's definition into your mod, remember the following things:
  1. You do not need to copy that actor, since it is already defined.
  2. In fact, it's not just useless, it's actually harmful as it can cause problems.
  3. If you want to modify it, or use a modified version, using inheritance is the way to go.
  4. The actor definitions here are put on the wiki for reference purpose only. Learn from them, don't copy them.
  5. There is only one exception: if what you want is changing Ammo capacity, you need to create a new type from Ammo.
B.J. Runner
Actor type Miscellaneous Game MiniWolf3DLogoIcon.png
DoomEd Number None Class Name BJRun


Classes: ActorBJRun

Overview

Special actor spawned by the Exit_VictorySpin action special. The actor has no special behavior in itself, but is formatted to work with the victory spin action.

Specifically the spawn state causes the actor to move forwards in the direction it is facing. When the victory spin detects the actor bumping into the player, it will be turned into a projectile with the run speed as the velocity and play the Death state. Ultimately the actor triggers the actual exit special.

DECORATE Definition

actor BJRun
{
  // GROSS HACK
  Radius 80
  Speed 4, 1.328
  states
  {
    Spawn:
      BLAZ A 6 NOP A_Chase("*", "*", CHF_NOSIGHTCHECK)
      BLAZ A 1.5
      BLAZ B 4 NOP A_Chase("*", "*", CHF_NOSIGHTCHECK)
      BLAZ C 6 NOP A_Chase("*", "*", CHF_NOSIGHTCHECK)
      BLAZ C 1.5
      BLAZ D 4 NOP A_Chase("*", "*", CHF_NOSIGHTCHECK)
      loop
    Death:
      BLAZ E 7
      BLAZ F 7 A_PlaySound("misc/yeah")
      BLAZ G 7
      BLAZ H 150 A_Stop
      BLAZ H -1 Exit_Victory
      stop
  }
}