A_M_FireShotgun2

From ZDoom Wiki
Jump to navigation Jump to search

A_M_FireShotgun2
(no parameters)

Does nothing if the calling actor has no valid target.

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

This codepointer is restricted to ScriptedMarine and derived classes.