A_Scream
From DoomWiki.org
A_Scream is a code pointer used in the death animation for various monsters.
A_Scream
's main purpose is to play the monster's death sound. However, it includes a few minor tweaks:
- monsters using the zombie death sounds (DSPODTH1, DSPODTH2, DSPODTH3) will randomly pick one of the three. This ensures variation as not all zombies sound the same when they die;
- imps will randomly play DSBGDTH1 or DSBGDTH2 for the same reason;
- the cyberdemon and spiderdemon play their death sound effects at full volume when they die.
Uses[edit]
The A_Scream
code pointer appears in the following states in Doom's state table:
Frame number | Doom internal name | Use |
---|---|---|
190 | S_POSS_DIE2 | death animation for the zombieman |
223 | S_SPOS_DIE2 | death animation for the shotgun guy |
272 | S_VILE_DIE2 | death animation for the arch-vile |
347 | S_SKEL_DIE3 | death animation for the revenant |
389 | S_FATT_DIE2 | death animation for the mancubus |
423 | S_CPOS_DIE2 | death animation for the heavy weapon dude |
458 | S_TROO_DIE2 | death animation for the imp |
491 | S_SARG_DIE2 | death animation for the spectre and demon |
511 | S_HEAD_DIE2 | death animation for the cacodemon |
543 | S_BOSS_DIE2 | death animation for the baron of Hell |
572 | S_BOS2_DIE2 | death animation for the Hell knight |
596 | S_SKULL_DIE2 | death animation for the lost soul |
621 | S_SPID_DIE1 | death animation for the spiderdemon |
653 | S_BSPI_DIE1 | death animation for the arachnotron |
692 | S_CYBER_DIE2 | death animation for the cyberdemon |
715 | S_PAIN_DIE2 | death animation for the pain elemental |
745 | S_SSWV_DIE2 | death animation for the Wolfenstein SS |
766 | S_COMMKEEN3 | death animation for Commander Keen |
809 | S_BEXP2 | death animation for the barrel |
Example[edit]
The following is an example of how to set the A_Scream
code pointer in a DeHackEd file:
Pointer 21 (Frame 34) Codep Frame = 809
Or using BEX syntax:
[CODEPTR] Frame 1234 = Scream