tmp64 / BugfixedHL-Rebased

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

Improve functionality of _toggle cmd on multiplayer #212

Open rtxa opened 9 months ago

rtxa commented 9 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.