by Marrub » Wed Feb 05, 2025 7:37 pm
I don't think anyone's suggested this before, but could there be functions to get the default value of a CVar? This would be useful for option menus, for instance. Currently you could reset the CVar, get the value, and then set it back to what it was, but that's arduous and may interact weirdly with custom CVar classes.
I don't think anyone's suggested this before, but could there be functions to get the default value of a CVar? This would be useful for option menus, for instance. Currently you could reset the CVar, get the value, and then set it back to what it was, but that's arduous and may interact weirdly with custom CVar classes.