tmp64 / BugfixedHL-Rebased

Bugfixed and improved Half-Life
GNU General Public License v3.0
116 stars 26 forks source link

Improve functionality of _toggle cmd on multiplayer #212

Open rtxa opened 10 months ago

rtxa commented 10 months ago

The command _toggle currently only works with cvars that can query from client-side. E.g _toggle volume 0.0 0.5 1.0.

Make it work on multiplayer servers by remembering the cvar name being toggled and the last value being set.