Raised This Month: $51 Target: $400
 12% 

So, what exactly is a CVAR?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Omnom
Junior Member
Join Date: Sep 2012
Old 09-10-2012 , 21:47   So, what exactly is a CVAR?
Reply With Quote #1

I've been wondering this lately, what are they and what are they for? I'll trying typing them into the console but they don't do anything. Are these supposed to be put into server.cfg or something?
Omnom is offline
ferret
SourceMod Developer
Join Date: Dec 2004
Location: Atlanta, GA
Old 09-10-2012 , 21:51   Re: So, what exactly is a CVAR?
Reply With Quote #2

Shortish:

Client variable. Some of them are client side, some of them are server side. The server's cvars can only be changed directly from it's console or through rcon.

Server.cfg is used to set values for cvars when the server start.
__________________
I'm a blast from the past!

Last edited by ferret; 09-10-2012 at 21:51.
ferret is offline
Snaggle
AlliedModders Donor
Join Date: Jul 2010
Location: England
Old 09-10-2012 , 21:57   Re: So, what exactly is a CVAR?
Reply With Quote #3

If you're having problems setting them while the server is in use, use the sm_cvar command to do it.

E.G sm_cvar mp_autoteambalance "1"

Pretty sure that works!
Snaggle is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 09-10-2012 , 23:13   Re: So, what exactly is a CVAR?
Reply With Quote #4

cvar = convar = console variable
__________________
Do not Private Message @me
Bacardi is offline
Ade
I love purple
Join Date: May 2010
Old 09-11-2012 , 10:40   Re: So, what exactly is a CVAR?
Reply With Quote #5

yup, console variables; there's also concommands=console commands

syntax:
cl_ denotes client cvars; sv_ denotes server cvars; mp_ denotes server cvars related to gameplay; tv_ denotes server cvars/commands related to sourcetv; sm_ ofc is used for sourcemod cvars/commands
(most of) the rest, that don't start with those prefixes, are commands

use:
when typing a cvar in console, it automatically displays default value and info; to change that cvar, it must be followed by a parameter/value
when typing a command in console (some can have parameters), it just executes it


PS: pls correct me if necessary
__________________

Last edited by Ade; 09-11-2012 at 10:40.
Ade is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 09-11-2012 , 11:00   Re: So, what exactly is a CVAR?
Reply With Quote #6

Game specific cvars sometimes start with the game abbreviation instead, such as tf_weapon_criticals for TF2.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Reply



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 05:10.


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