From DoomWiki.org

Zombieman attacking the player.

A_PosAttack is a code pointer used in the attack animation for the zombieman.

A_PosAttack causes the monster to fire a hitscan attack against its current target, internally calling A_FaceTarget to face in the direction of the target. It is similar to the A_FirePistol code pointer used in the pistol firing animation sequence. The sound effect DSPISTOL is played.


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


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

Pointer 21 (Frame 34)
Codep Frame = 185

Or using BEX syntax:

Frame 1234 = PosAttack

Code structure[edit]

The following is a call graph for the A_PosAttack function. Many of the functions are the same as those of A_FirePistol.

A PosAttack call graph.svg

See also[edit]

External links[edit]