Classes:AmbientSound

From ZDoom Wiki

Jump to: navigation, search
Ambient sound
Actor type Map spot Game
DoomEd Number 14065 Class Name AmbientSound

Classes: AmbientSound

The AmbientSound thing plays an ambient sound determined by its first parameter. The sounds themselves must be defined in SNDINFO. While some ambient sounds are defined in ZDoom.pk3, none of them are actually added to the index of ambient sounds with the $ambient command, so a map using this thing needs a SNDINFO lump.

Use in a non-Hexen map

In a Doom-format map, where things cannot have parameters, DoomEd numbers 14001 to 14064 can be used instead: ZDoom will translate each such item in the map to an AmbientSound actor whose first parameter is equal to its number minus 14000. (So, 14001 will be interpreted as if it were 14065 with first parameter 1.)

DECORATE definition

ACTOR AmbientSound 14065 native
{
  +NOBLOCKMAP
  +NOSECTOR
  +DONTSPLASH
}

See Also

Personal tools