Difference between revisions of "A Scream"

From DoomWiki.org

[checked revision][checked revision]
(recategorize)
Line 1: Line 1:
 
{{DISPLAYTITLE:A_Scream}}
 
{{DISPLAYTITLE:A_Scream}}
{{stub}}
+
[[File:MAP11 shotgun.png|thumb|right|Zombies randomly play one of three different sound effects when <code>A_Scream</code> is invoked]]
 
'''A_Scream''' is a [[code pointer]] used in the death animation for various monsters.
 
'''A_Scream''' is a [[code pointer]] used in the death animation for various monsters.
 +
 +
<code>A_Scream</code>'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 ==
 
== Uses ==

Revision as of 22:01, 16 March 2020

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

The A_Scream code pointer appears in the following states in Doom's state table:

Example

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