Raised This Month: $ Target: $400
 0% 

better way to declare CVARs


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
gamer99
Senior Member
Join Date: Jul 2011
Old 07-14-2011 , 14:34   Re: better way to declare CVARs
Reply With Quote #4

Quote:
Originally Posted by Arkshine View Post
You could cache the value :

- Into a global var, like each new round or something. The cons is your var won't be updated in real-time.
- Using my awesome module Cvar Utilities, you can hook a value change of a cvar and caching the value into a global var. It will updated in real-time.
wonderful module but i don't want any extra module


Quote:
I don't know of any cvar that needs to be real-time updated. 99% of cvars could be cached on init and nobody would know the difference.
init is a good idea ...lemme try that
gamer99 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:07.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode