Classes:MaceFX4

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 will 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.
Huge firemace sphere
Actor type Explosive Game MiniHereticLogoIcon.png (Heretic)
DoomEd Number None Class Name MaceFX4
Spawn ID 153 Identifier T_DEATHBALL


Classes: MaceFX4

The slow and enormous projectile from the powered-up firemace. On any target that isn't protected by either the BOSS or the DONTSQUASH flag or by being a teammate, it actually deals 1000000 damage. If a target escapes thanks to the auto-use of a chaos device or has the INVULNERABLE flag, it deals no damage.

This sphere will bounce forever until it hits a wall or a solid target. On OpenGL source ports, it is possible to aim straight up, so that it may never stop bouncing. However, the sphere will automatically move towards the first possible target it finds withing 640 map units. (The sphere detects by looking whether it can collide with something in any direction, starting with an angle of 0 degree ("east") and increasing counterclockwise by steps of 22.5 degrees. As long as the target isn't dead, it will continue to home in, seeking a new target if the current one dies before it reached it.

DECORATE definition

ACTOR MaceFX4 native
{
  Radius 8
  Height 6
  Speed 7
  Damage 18
  Gravity 0.125
  Projectile
  -NOGRAVITY
  +TELESTOMP
  +THRUGHOST
  -NOTELEPORT
  BounceType "HereticCompat"
  SeeSound ""
  Obituary "$OB_MPPMACE"

  action native A_DeathBallImpact();

  States
  {
  Spawn:
    FX02 E 99
    Loop
  Death:
    FX02 C 4 A_DeathBallImpact
    FX02 GHIJ 4 Bright
    Stop
  }
}