A_SPosAttack
From DoomWiki.org
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.
Contents
Uses[edit]
The A_SPosAttack
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
218 | S_SPOS_ATK2 | attack animation for the Sargeant |
616 | S_SPID_ATK2 | attack animation for the Spiderdemon |
617 | S_SPID_ATK3 | attack animation for the Spiderdemon |
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
See also[edit]
- A_FireShotgun - player weapon equivalent
External links[edit]
- A_SPosAttack in the Doom source code.
- A_SPosAttack at the ZDoom wiki
- SPosAttack at the Eternity Engine wiki