Difference between revisions of "Ambient music"
(Created page with "{{Entity_Infobox | title= }} This entity is used to play music within a level. The difference from Ambient Generic is the volume being controlled via the...") |
Outerbeast (talk | contribs) m |
||
(One intermediate revision by the same user not shown) | |||
Line 4: | Line 4: | ||
This entity is used to play music within a level. The difference from [[ambient_generic|Ambient Generic]] is the volume being controlled via the CVar 'mp3volume' instead of 'volume'. | This entity is used to play music within a level. The difference from [[ambient_generic|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. | ||
== Keyvalues == | == Keyvalues == | ||
Line 14: | Line 17: | ||
{{Entity_flag|1|Start Silent|Music starts once the entity is triggered.}} | {{Entity_flag|1|Start Silent|Music starts once the entity is triggered.}} | ||
{{Entity_flag|2|Loop|Replays the music until toggled off.}} | {{Entity_flag|2|Loop|Replays the music until toggled off.}} | ||
− | {{Entity_flag|4|Activator Only}} | + | {{Entity_flag|4|Activator Only|Music can be played for an individual player (activator).}} |
{{entity_title}} | {{entity_title}} |
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).