From ZDoom Wiki
Jump to navigation Jump to search

A_M_Punch (int force)

Does nothing if the calling actor has no valid target.

Otherwise, calls A_FaceTarget, then performs a melee-range hitscan attack with a horizontal spread of 5.625° that inflicts force times 2d10 melee damage to the target and spawns a BulletPuff, and finally plays the sound "*fist" on the WEAPON channel. Using a force of 1 replicates the effect of a normal Fist punch, with a force of 10 it replicates the effect of a Berserk punch.

This codepointer is restricted to ScriptedMarine and derived classes.