News:

Come Chat with us live! Learn how HERE!

Main Menu

New client

Started by infestor1, February 22, 2010, 08:43:20 PM

infestor1

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!

SlackerLinux

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?
Slackware64 13.1
SlackersQVM/