A MaceBallImpact2

From ZDoom Wiki
Jump to navigation Jump to search

(no parameter)

If the calling actor is in a bounce, reduces the vertical speed to 75% and returns to the Spawn state. Additionally, spawn on both side of the calling actor a MaceFX3, and give them half the horizontal speed, and the reduced vertical speed, of the calling actor, on divergent angles.

Otherwise, then it sets the calling actor's speed to 0 in all directions, gives it the NOGRAVITY flag, and sets the bounce type to "none".

This codepointer is meant to be used with projectiles using the "Heretic" or "HereticCompat" bounce types, as they put the bouncer in its death state during the bounce. This codepointer is restricted to MaceFX2 and actors inheriting from it.