Author Topic: New client  (Read 2354 times)

infestor1

  • Posts: 142
  • Turrets: +6/-28
    • 345356745i624567
New client
« 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!

SlackerLinux

  • Spam Killer
  • *
  • Posts: 555
  • Turrets: +41/-62
Re: New client
« Reply #1 on: February 23, 2010, 01:06:35 am »
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/