A_M_Punch

Does nothing if the calling actor has no valid target.

A_M_Punch (int force)

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.

This article is issued from Zdoom. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.