Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No music slider #4

Open
JonnyPtn opened this issue Jan 29, 2017 · 0 comments
Open

No music slider #4

JonnyPtn opened this issue Jan 29, 2017 · 0 comments

Comments

@JonnyPtn
Copy link
Contributor

JonnyPtn commented Jan 29, 2017

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant