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 zombieman |
221 | S_SPOS_PAIN2 | pain animation for the shotgun guy |
270 | S_VILE_PAIN2 | pain animation for the arch-vile |
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 heavy weapon dude |
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 Wolfenstein SS |
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