Classes:MaceFX2

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.
Large firemace sphere
Actor type Explosive Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name MaceFX2
Spawn ID 156 Identifier T_HEAVYMACEBALL


Classes: MaceFX1MaceFX2

The firemace's secondary projectile, this mace sphere bounces a few times, spawning two small spheres on each bounce. The native action A_MaceBallImpact2 manages that by "resurrecting" the sphere (setting it back to its spawn state) unless its vertical speed is too slow, and by spawning the smaller ones.

DECORATE definition

ACTOR MaceFX2 : MaceFX1
{
  Speed 10
  Damage 6
  Gravity 0.125
  -NOGRAVITY
  SeeSound ""

  action native A_MaceBallImpact2();

  States
  {
  Spawn:
    FX02 CD 4
    Loop
  Death:
    FX02 F 4 A_MaceBallImpact2
    Goto Super::Death+1
  }
}