A_Pain
From DoomWiki.org
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:
Frame number | Doom internal name | Use |
---|---|---|
157 | S_PLAY_PAIN2 | pain animation for the Player |
188 | S_POSS_PAIN2 | pain animation for the Trooper |
221 | S_SPOS_PAIN2 | pain animation for the Sargeant |
270 | S_VILE_PAIN2 | pain animation for the Archvile |
344 | S_SKEL_PAIN2 | pain animation for the Revenant |
387 | S_FATT_PAIN2 | pain animation for the Mancubus |
421 | S_CPOS_PAIN2 | pain animation for the Chaingun Sargeant |
456 | S_TROO_PAIN2 | pain animation for the Imp |
489 | S_SARG_PAIN2 | pain animation for the Spectre and Demon |
508 | S_HEAD_PAIN2 | pain animation for the Cacodemon |
541 | S_BOSS_PAIN2 | pain animation for the Baron of Hell |
570 | S_BOS2_PAIN2 | pain animation for the Hell Knight |
594 | S_SKULL_PAIN2 | pain animation for the Lost Soul |
620 | S_SPID_PAIN2 | pain animation for the Spiderdemon |
652 | S_BSPI_PAIN2 | pain animation for the Arachnotron |
690 | S_CYBER_PAIN | pain animation for the Cyberdemon |
713 | S_PAIN_PAIN2 | pain animation for the Pain Elemental |
743 | S_SSWV_PAIN2 | pain animation for the SS Nazi |
777 | S_KEENPAIN2 | pain animation for Commander Keen |
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