Classes:SorcBall2

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


Classes: SorcBallSorcBall2
One of the three mana cubes that orbit the Heresiarch's head. This one is its source of power for its invulnerability shield.

DECORATE definition

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