Cvar: port /toggle and /cycle to C++