You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can show the slider fairly easily, just by defining the CVar for the value it modifies correctly, but that doesn't have any effect on the music volume.
After digging around a bit, it seems there's not a uniform way of playing music. For example in the main menu it uses a the gui script command to play music, whereas in the levels it looks like you're using a trigger volume at the start of the map to play a sound through a speaker?
The problem with that is, theres' not any tidy way of making the music slider functional, as it would require checking lots of variable stuff (for example it would have to check if the trigger volume was playing a sound containing "drm_music" in the path to tell if it should use music volume or global volume, which is a pretty shoddy way of doing it.
There are many options, just need to decide which one. I'd perhaps consider adding a new value to the info_player_start entity which specifies the music for the level, so you can just set it in the editor, any thoughts?
The text was updated successfully, but these errors were encountered:
I can show the slider fairly easily, just by defining the CVar for the value it modifies correctly, but that doesn't have any effect on the music volume.
After digging around a bit, it seems there's not a uniform way of playing music. For example in the main menu it uses a the gui script command to play music, whereas in the levels it looks like you're using a trigger volume at the start of the map to play a sound through a speaker?
The problem with that is, theres' not any tidy way of making the music slider functional, as it would require checking lots of variable stuff (for example it would have to check if the trigger volume was playing a sound containing "drm_music" in the path to tell if it should use music volume or global volume, which is a pretty shoddy way of doing it.
There are many options, just need to decide which one. I'd perhaps consider adding a new value to the info_player_start entity which specifies the music for the level, so you can just set it in the editor, any thoughts?
The text was updated successfully, but these errors were encountered: