Tremulous Forum
Mods => Modding Center => Topic started by: infestor1 on February 22, 2010, 08:43:20 pm
-
Hi.
I'm developing a new client along with some other people, and I'm making a couple of new cvars for added functionality. How can I make the cvars read-only? I had an idea, so I went to TJW's backport to find out how he makes cl_guid read only, but I can't find how he does it?
Please help,
Thanks!
-
use the CVAR_ROM flag
you can also join flags like CVAR_ARCHIVE | CVAR ROM
the place this goes for clients is in cl_main.c in function cl_init where client cvars are initialized
what changes are you making?