A_M_FireShotgun2

Does nothing if the calling actor has no valid target.

A_M_FireShotgun2
(no parameters)

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.

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