A_FirePistol

From DoomWiki.org

Player firing pistol at former humans. A_FirePistol is the code pointer that inflicts damage as part of the firing animation.

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:

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.

A FirePistol call graph.svg

See also[edit]

External links[edit]