A_Scream

From DoomWiki.org

Zombies randomly play one of three different sound effects when A_Scream is invoked

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 Spider Mastermind 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:

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

External links[edit]