Originally Posted by Ketho
does this also work? (provided it's already at 0.2 or 0.8)
Code:
/run local a="Sound_MasterVolume"SetCVar(a,1-GetCVar(a))
|
With a script that short, I'd even forgo creating a new variable each time it's pressed.
Code:
/run SetCVar("Sound_MasterVolume",1-GetCVar("Sound_MasterVolume"))
To make sure your volume is at 0.2 (or 0.8) before running the above macro...
Code:
/run SetCVar("Sound_MasterVolume", 0.2)
/edit: Ketho's script works because .2 + .8 = 1
If you want other values (that don't add up to 1), then you'd need a different script.