Difference between revisions of "Ambient music"
Outerbeast (talk | contribs) m |
Outerbeast (talk | contribs) m |
||
Line 8: | Line 8: | ||
Music will play even for players that joined after the entity was triggered. Playback will start with an appropriate offset for them. | Music will play even for players that joined after the entity was triggered. Playback will start with an appropriate offset for them. | ||
Music can be looped. | Music can be looped. | ||
− | |||
− | |||
== Keyvalues == | == Keyvalues == | ||
Latest revision as of 21:41, 29 August 2025
ambient_music | |
---|---|
Type |
point |
Status |
supported |
This entity is used to play music within a level. The difference from Ambient Generic is the volume being controlled via the CVar 'mp3volume' instead of 'volume'. Plays everywhere, is not affected by 3D positioning, reverberation, or filters. Mappers can adjust volume of individual music tracks by "volume" key value, but the final volume is determined on the client-side based on a value of "MP3Volume" CVAR. Music will play even for players that joined after the entity was triggered. Playback will start with an appropriate offset for them. Music can be looped.
1 Keyvalues
Sound File : message
Name of the sound file to play. File Path starts in the 'sound'-folder, example: 'mymap/musicfile.ogg'.
Volume : volume
Set how loud the sound shall be in a range from 0 (not audible) to 10 (normal), but ultimately controlled by the player from the options menu.
2 Flags
1 : Start Silent
Music starts once the entity is triggered.
2 : Loop
Replays the music until toggled off.
4 : Activator Only
Music can be played for an individual player (activator).