A_PosAttack
From DoomWiki.org
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.
Uses[edit]
The A_PosAttack
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
185 | S_POSS_ATK2 | attack animation for the zombieman |
Example[edit]
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:
[CODEPTR] 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.
See also[edit]
- A_FirePistol - player weapon equivalent
External links[edit]
- A_PosAttack in the Doom source code.
- A_PosAttack at the ZDoom wiki
- PosAttack at the Eternity Engine wiki