Difference between revisions of "Classes:BJRun"

From ECWolf Wiki
(Created page with "{{Actor| | type = Miscellaneous | game = Wolf3D | name = B.J. Runner | class = BJRun }}Classes: {{Class|Actor}} → {{Class|BJRun}}<br> == Overview == Special actor sp...")
 
 
(One intermediate revision by the same user not shown)
Line 15: Line 15:
 
  {
 
  {
 
   // GROSS HACK
 
   // GROSS HACK
   {{property|radius}} 80
+
   {{property|Radius}} 80
   {{property|speed}} 4, 1.328
+
   {{property|Speed}} 4, 1.328
 
   states
 
   states
 
   {
 
   {
Line 32: Line 32:
 
       BLAZ G 7
 
       BLAZ G 7
 
       BLAZ H 150 [[A_Stop]]
 
       BLAZ H 150 [[A_Stop]]
       BLAZ H -1 [[Action specials|Exit_Normal]]
+
       BLAZ H -1 [[Action specials|Exit_Victory]]
 
       stop
 
       stop
 
   }
 
   }
 
  }
 
  }

Latest revision as of 05:47, 11 June 2013

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
  }
}