A_MacePL1Check

From ZDoom Wiki
Jump to navigation Jump to search

A_MacePL1Check
(no parameters)

Does nothing if the calling actor's special1 field is null. Otherwise, decreases it by 4 points. If it is still above 0 after that, does nothing either.

Otherwise, sets that field to 0, clears the calling actor's NOGRAVITY flag and gives it a gravity property of 0.125. Its horizontal velocity is set to 7 in its current direction, and its vertical speed is decreased by half.

This codepointer is restricted to MaceFX1 and derived classes.