Classes:MaceFX2

From ZDoom Wiki
Jump to navigation Jump to search
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.
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
  }
}