code/__DEFINES/sound.dm ![code/__DEFINES/sound.dm0](git.png)
SOUND_AUDIBLE_VOLUME_MIN | This is the lowest volume that can be used by playsound otherwise it gets ignored Most sounds around 10 volume can barely be heard. Almost all sounds at 5 volume or below are inaudible This is to prevent sound being spammed at really low volumes due to distance calculations Recommend setting this to anywhere from 10-3 (or 0 to disable any sound minimum volume restrictions) Ex. For a 70 volume sound, 17 tile range, 3 exponent, 2 falloff_distance: Setting SOUND_AUDIBLE_VOLUME_MIN to 0 for the above will result in 17x17 radius (289 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 5 for the above will result in 14x14 radius (196 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 10 for the above will result in 11x11 radius (121 turfs) |
---|---|
SOUND_RANGE | Default range of a sound. |
SHORT_RANGE_SOUND_EXTRARANGE | default extra range for sounds considered to be quieter |
SILENCED_SOUND_EXTRARANGE | The range deducted from sound range for things that are considered silent / sneaky |
SOUND_DEFAULT_FALLOFF_DISTANCE | Percentage of sound's range where no falloff is applied |
SOUND_FALLOFF_EXPONENT | The default exponent of sound falloff |
ANNOUNCER_AIMALF | Announcer audio keys |
SFX_BODYFALL | List of all of our sound keys. |
Define Details
ANNOUNCER_AIMALF ![code/__DEFINES/sound.dm 146](git.png)
Announcer audio keys
SFX_BODYFALL ![code/__DEFINES/sound.dm 184](git.png)
List of all of our sound keys.
SHORT_RANGE_SOUND_EXTRARANGE ![code/__DEFINES/sound.dm 65](git.png)
default extra range for sounds considered to be quieter
SILENCED_SOUND_EXTRARANGE ![code/__DEFINES/sound.dm 67](git.png)
The range deducted from sound range for things that are considered silent / sneaky
SOUND_AUDIBLE_VOLUME_MIN ![code/__DEFINES/sound.dm 31](git.png)
This is the lowest volume that can be used by playsound otherwise it gets ignored Most sounds around 10 volume can barely be heard. Almost all sounds at 5 volume or below are inaudible This is to prevent sound being spammed at really low volumes due to distance calculations Recommend setting this to anywhere from 10-3 (or 0 to disable any sound minimum volume restrictions) Ex. For a 70 volume sound, 17 tile range, 3 exponent, 2 falloff_distance: Setting SOUND_AUDIBLE_VOLUME_MIN to 0 for the above will result in 17x17 radius (289 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 5 for the above will result in 14x14 radius (196 turfs) Setting SOUND_AUDIBLE_VOLUME_MIN to 10 for the above will result in 11x11 radius (121 turfs)
SOUND_DEFAULT_FALLOFF_DISTANCE ![code/__DEFINES/sound.dm 69](git.png)
Percentage of sound's range where no falloff is applied
SOUND_FALLOFF_EXPONENT ![code/__DEFINES/sound.dm 71](git.png)
The default exponent of sound falloff
SOUND_RANGE ![code/__DEFINES/sound.dm 62](git.png)
Default range of a sound.