View Single Post
aron9forever
Veteran Member
Join Date: Feb 2013
Location: Rromania
Old 11-11-2017 , 21:55   Re: Make plugin_prechase called after plugin_cfg
Reply With Quote #25

Quote:
Originally Posted by HamletEagle View Post
Actually not, IIRC. Cvars are saved once they are changed, so for example if you read it in precache it will have the value from the previous map, or in other words you need to change the map to make the cvar have an effect in this scenario.
The default value is not always enforced.

I can be wrong tho, and I'm too lazy to check.
that is right actually, but it will still crash if you change it live, so if you only read a custom cfg on plugin_precache and then cache those values, it should be safe

I believe that's how other plugins do it
__________________
Meanwhile, in 2050:
Quote:
Originally Posted by aron9forever
useless small optimizations
Quote:
Originally Posted by Black Rose View Post
On a map that is 512x512x128 units you end up with 3,355,443,200,000 different "positions". To store each one of those positions individually in the variable "user_or" you need 12 terabytes of memory.
aron9forever is offline