A_Scream

From ZDoom Wiki
Jump to navigation Jump to search

void A_Scream ()

DoomWiki.org
For more information on this article, visit the A_Scream page on the Doom Wiki.


Usage

Plays the actor's death sound if it has one. If the actor has either the BOSS or FULLVOLDEATH(New from 4.11.0) flags, the sound is heard at full volume regardless of distance, otherwise it diminishes by distance. The sound is played on the voice channel.

This function can be combined with A_NoBlocking using A_ScreamAndUnblock.

Examples

This is the Death state sequence of Doom's Imp.

Death:
    TROO I 8;
    TROO J 8 A_Scream;
    TROO K 6;
    TROO L 6 A_NoBlocking;
    TROO M -1;
    Stop;