A_M_FirePistol

Does nothing if the calling actor has no valid target.

A_M_FirePistol (bool accurate)

Otherwise, plays the sound "weapons/pistol" on the WEAPON channel, calls A_FaceTarget, then performs a missile-range hitscan attack without spread (if accurate is true) or a horizontal spread of 5.625° (if accurate is false) that inflicts 5d3 damage and spawns a BulletPuff. This replicates Pistol fire.

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.