A_Pain

From DoomWiki.org

Cyberdemon on its pain animation frame, when A_Pain is called.

A_Pain is a code pointer used in the pain animation for the player and various monsters.

A_Pain just plays the monster's "pain sound" (if it has one). For example, in the case of the player that is DSPLPAIN.

Uses[edit]

The A_Pain 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_Pain code pointer in a DeHackEd file:

Pointer 21 (Frame 34)
Codep Frame = 777

Or using BEX syntax:

[CODEPTR]
Frame 1234 = Pain

External links[edit]