From DoomWiki.org

The Spider Mastermind's "chaingun" actually uses A_SPosAttack.

A_SPosAttack is a code pointer used in the attack animation for the Sargeant and Spiderdemon.

A_SPosAttack implements the Sergeant's shotgun attack, and is therefore similar to the A_FireShotgun code pointer used for the player weapon animations. Unlike that function though, A_SPosAttack fires only three pellets. Internally it calls A_FaceTarget and the DSSHOTGN sound effect is played.


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


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

Pointer 21 (Frame 34)
Codep Frame = 617

Or using BEX syntax:

Frame 1234 = SPosAttack

See also[edit]

External links[edit]