A_SPosAttack

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 shotgun guy (a.k.a. sergeant) 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.

Uses[edit]

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

Example[edit]

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:

[CODEPTR]
Frame 1234 = SPosAttack

Code structure[edit]

The code structure for A_SPosAttack is almost identical to that of A_PosAttack.

See also[edit]

External links[edit]