A_M_FireShotgun

From ZDoom Wiki
Jump to navigation Jump to search

A_M_FireShotgun
(no parameters)

Does nothing if the calling actor has no valid target.

Otherwise, plays the sound "weapons/shotgf" on the WEAPON channel, calls A_FaceTarget, then performs seven missile-range hitscan attack with a horizontal spread of 5.625°, each of them inflicting 5d3 damage and spawning a BulletPuff. This replicates Shotgun fire. Finally, it sets the calling actor's special1 field to the current tic count + 27.

This codepointer is restricted to ScriptedMarine and derived classes.