Hi there!
I though I’d share a simple Macro I wrote that when triggered will change your master volume from 100% to 20% and vice versa. You can modify the macro and change these values of course. I was lazy so I didn’t make variables for easy modification - if you need help, feel free to ask.
I assume there are simpler/cleaner ways how you can achieve the same effect (or better) in LUA but it does what it needs to and will suffice for me for now.
Any feedback and suggestion is welcome, of course!
Copy and paste the following line of code if you wish to use this Macro as is:
/run if GetCVar("Sound_MasterVolume") == "1" then SetCVar("Sound_MasterVolume", .2) print("Master Volume set to 20%") else SetCVar("Sound_MasterVolume", 1) print("Master Volume set to 100%") end
I made a similar simple macro for toggling the Camera Water Collision which you will find here (final version at the bottom of the original post):
Have a nice day!