AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cvar's (https://forums.alliedmods.net/showthread.php?t=324209)

Grovliom 05-09-2020 14:38

Cvar's
 
This is a REALLY STUPID QUESTION, but what are Cvar's, what's the use for them, and how to use them?

Thanks to everyone who helps me!

OciXCrom 05-09-2020 14:55

Re: Cvar's
 
The question isn't stupid, but the thread's title and choice of section are not so great.

http://txdv.github.io/cstrike-cvarlist/ - if you're asking about the actual list of cvars. If not, at least the section is correct.

fysiks 05-09-2020 15:11

Re: Cvar's
 
In general, cvars are configuration variables (I'm not 100% sure this is the actual etymology but functionality it's accurate). They are used to configure different features available in the game (either built-in functionality or for functionality provided by plugins).

Grovliom 05-09-2020 15:42

Re: Cvar's
 
Thank you all for helping me! i understand how this works now! thanks!

thEsp 05-09-2020 18:17

Re: Cvar's
 
Additionally, make sure you work with them as pointers.

set/get_cvar_x = Find the corresponding cvar (more cvar's in the server = harder work = slower), and then parse its value.
set/get_pcvar_x = Parse its value directly.

https://forums.alliedmods.net/showthread.php?t=94123

Grovliom 05-10-2020 07:57

Re: Cvar's
 
Quote:

Originally Posted by thEsp (Post 2699138)
Additionally, make sure you work with them as pointers.

set/get_cvar_x = Find the corresponding cvar (more cvar's in the server = harder work = slower), and then parse its value.
set/get_pcvar_x = Parse its value directly.

https://forums.alliedmods.net/showthread.php?t=94123

Thanks thEsp for this! I will use it!


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

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