A_M_FirePistol

From ZDoom Wiki
Revision as of 10:53, 30 September 2009 by Gez (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A_M_FirePistol (bool accurate)

Does nothing if the calling actor has no valid target.

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.