From ZDoom Wiki
Jump to navigation Jump to search
For more information on this article, visit the A_FireShotgun2 page on the Doom Wiki.


(no parameters)

Performs Doom's super shotgun attack, firing 20 pellets dealing 5 * 1d3 damage each. This is a shortcut to calling A_FireBullets, A_PlaySound and A_GunFlash with certain predetermined hardcoded parameters.

This code is the equivalent of calling A_FireShotgun2 for 7 tics on the A frame of the SHT2 sprite:

    SHT2 A 0 A_FireBullets (11.2, 7.1, 20, 5, "BulletPuff")
    SHT2 A 0 A_PlaySound ("weapons/sshotf", CHAN_WEAPON)
    SHT2 A 7 A_GunFlash