A_FireShotgun


Performs Doom's shotgun attack, firing seven pellets each dealing 5 * 1d3 damage. This is a shortcut for calling A_FireBullets, A_PlaySound and A_GunFlash with predetermined hard-coded parameters.

A_FireShotgun

(no parameters)

This code is the equivalent of calling A_FireShotgun for 7 tics on the A frame of the SHTG sprite:

    SHTG A 0 A_FireBullets (5.6, 0, 7, 5, "BulletPuff")
    SHTG A 0 A_PlaySound ("weapons/shotgf", CHAN_WEAPON)
    SHTG A 7 A_GunFlash

If vertical bullet spread for weapons is enabled, the function applies vertical spread in addition to the horizontal one.

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