Classes:SorcBall1

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.
Purple mana cube
Actor type SFX Game MiniHexenLogoIcon.png (Hexen)
DoomEd Number None Class Name SorcBall1


Classes: SorcBallSorcBall1
One of the three mana cubes that orbit the Heresiarch's head. This one is its source of power for its projectile attacks.

DECORATE definition

ACTOR SorcBall1 : SorcBall native
{
  States
  {
  Spawn:
    SBMP ABCDEFGHIJKLMNOP 2 A_SorcBallOrbit
    Loop
  Pain:
    SBMP A 5 A_SorcBallPop
    SBMP B 2 A_BounceCheck
    Wait
  Death:
    SBS4 D 0 A_ChangeFlag("NOBOUNCESOUND", 1)
    SBS4 D 5 A_Explode(255, 255)
    SBS4 E 5
    SBS4 FGH 6
    Stop
  }
}