A_FirePistol
From DoomWiki.org
A_FirePistol is a code pointer used in the attack animation for the pistol.
Uses[edit]
The A_FirePistol
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
14 | S_PISTOL2 | attack animation for the pistol |
Example[edit]
The following is an example of how to set the A_FirePistol
code pointer in a DeHackEd file:
Pointer 21 (Frame 34) Codep Frame = 14
Or using BEX syntax:
[CODEPTR] Frame 1234 = FirePistol
Code structure[edit]
The following call graph shows some of the underlying internals of the A_FirePistol
function. The P_LineAttack
function uses the common line-traversal code (P_PathTraverse
) with a callback function (PTR_ShootTraverse
) that damages any encountered objects that have the MF_SHOOTABLE
flag set.
See also[edit]
- A_PosAttack - monster equivalent code pointer, used by the zombieman to fire his rifle.
External links[edit]
- A_FirePistol in the Doom source code.
- A_FirePistol at the ZDoom wiki
- FirePistol at the Eternity Engine wiki