From DoomWiki.org

Revision as of 12:52, 3 January 2024 by Fraggle (talk | contribs) (I think we can call this no longer a stub)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Super shotgun inflicting damage on a cacodemon. A_FireShotgun2 is the code pointer in the super shotgun firing animation that inflicts damage.

A_FireShotgun2 is a code pointer used in the attack animation for the super shotgun.


The A_FireShotgun2 code pointer appears in the following states in Doom's state table:


The following is an example of how to set the A_FireShotgun2 code pointer in a DeHackEd file:

Pointer 21 (Frame 34)
Codep Frame = 36

Or using BEX syntax:

Frame 1234 = FireShotgun2

Code structure[edit]

A_FireShotgun2 uses the same P_GunShot function as A_FirePistol and so its code structure is largely identical.

External links[edit]