Go Back   Steam Users' Forums > Steam Game Discussions > # - C > Counter-Strike

Reply
 
Thread Tools Display Modes
Old 11-04-2007, 11:43 AM   #1
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
Half-Life & Counter-Strike CVar List

Half-Life & Counter-Strike CVar List



Me and a few guys made a very complete (I don't think you can find better) CVar List.

At the moment, only a few one are missing (we couldn't find what are their functions), but it should be complete soon !

Click here to access the CVar List.

1) What is a CVar?

CVar means Console Variable. Console variables have a value assigned to them. You can change this value by using the console (~ key).

There are different CVars types:
  • Boolean : 0 (off) or 1 (on)
  • Integer : A whole number. (Example : 123, 1, -500, etc...)
  • Float : A number with a decimal. (Example : 0.33, 1.5, 50.4, etc)
  • String : A set of characters.

Example:
cl_righthand.
cl_righthand is the CVar which controls if your weapon is right-handed or left-handed. cl_righthand is a boolean.

If you type cl_righthand "1" into the console, your weapon will be right-handed.

If you type cl_righthand "0" into the console, your weapon will be left-handed.

2) Where to place CVars ?

Like I said previously, you have to type CVar's in the console. But there are some CVar's which don't save. So if you don't want to type them each time you launch the game, you will have to place them in a config file (.cfg).

There are three .cfg files (there are others but not important) which are automatically executed when you launch the game.
One is called autoexec.cfg, one config.cfg and the last one userconfig.cfg.

config.cfg file has your binds, and some automatically saved CVar's. Do not add anything in this config file, or anything added will be automatically deleted.

autoexec.cfg and userconfig.cfg are especially to place your CVars/Commands in them.

Those config files are executed by the game in this order:
  • autoexec.cfg
  • config.cfg
  • userconfig.cfg

userconfig.cfg is better to place your CVars in because if you use autoexec.cfg, some of your CVars will be overwritten by config.cfg.


3) How to create .cfg files ?

You have to use Notepad.

Click on Start => Programs => Accessories => Notepad

Here, you can add any CVars/Commands, one on each line, or on the same line with semi-colons between them.

Example :
Code:
cl_righthand "1"
cl_weather "0"
cl_minmodels "0"
or with semi-colons:

Code:
cl_righthand "1";cl_weather "0";cl_minmodels "0"
Then, save it as a .cfg :

File => Save as

In the "File Name" field, type userconfig.cfg. You can call it whatever you want, but you will have to manually exec your .cfg file if it's not userconfig.cfg or autoexec.cfg. Or you can create a line with the exec command in your userconfig.cfg.

Example :

Code:
exec myconfig.cfg
In the "Type" field, it is important that you change to "All files" or your userconfig.cfg will be created as userconfig.cfg.txt

4) Where to place .cfg files ?

You have to place it in your counter-strike folder.

The counter-strike folder directory is by default:

C:\Program Files (x86)\Steam\SteamApps\common\Half-Life\cstrike\

- AnAkIn

Last edited by AnAkIn: 02-17-2013 at 02:39 AM.
AnAkIn is offline  
Reply With Quote
Old 11-04-2007, 01:51 PM   #2
Nemo™
 
Join Date: Oct 2006
Reputation: 6
Posts: 1,884
At time a proper list was put together.

Great work Anakin and the others, who have helped completing the list.
Nemo™ is offline   Reply With Quote
Old 11-05-2007, 03:07 AM   #3
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
Thanks for your help too.
AnAkIn is offline   Reply With Quote
Old 11-11-2007, 01:49 AM   #4
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
For people wondering why the link is not working, it is because the site changed IP and the link is still redirecting to the old IP... It should be corrected soon.

There's still a way to access it if you really want to:

Go in:
C:/Windows/System32/Drivers/etc

Open the file called hosts with wordpad.

Put those 2 lines after the already existing line at bottom:

Quote:
85.12.31.247 elxdraco.net
85.12.31.247 scripting.elxdraco.net
Click save, and NOT save as.

Now it should be working.

Last edited by AnAkIn: 11-11-2007 at 01:52 AM.
AnAkIn is offline   Reply With Quote
Old 11-11-2007, 12:44 PM   #5
Q-bA11
 
Join Date: Mar 2007
Reputation: 17
Posts: 906
Quote:
Originally Posted by AnAkIn View Post
For people wondering why the link is not working, it is because the site changed IP and the link is still redirecting to the old IP... It should be corrected soon.

There's still a way to access it if you really want to:

Go in:
C:/Windows/System32/Drivers/etc

Open the file called hosts with wordpad.

Put those 2 lines after the already existing line at bottom:



Click save, and NOT save as.

Now it should be working.
Gahh I was wondering what happened. Put an announcement on the Steam-Community already.

Edit: Okay got the hosts thing working.

Ontopic: A float variable has a decimal (in English), not a comma. :>

Last edited by Q-bA11: 11-11-2007 at 03:15 PM. Reason: fix'd
Q-bA11 is offline   Reply With Quote
Old 11-12-2007, 07:59 AM   #6
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
Thanks. Corrected.
AnAkIn is offline   Reply With Quote
Old 11-13-2007, 12:53 AM   #7
HellForge
 
 
 
Guest
Posts: n/a
Quote:
Originally Posted by AnAkIn View Post
[U][COLOR="Yellow"]

Click here to access the CVar List.

- AnAkIn
Link seems to be dead, can it be fixed?
  Reply With Quote
Old 11-13-2007, 02:32 AM   #8
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
Please read the posts below.

Quote:
Originally Posted by AnAkIn View Post
For people wondering why the link is not working, it is because the site changed IP and the link is still redirecting to the old IP... It should be corrected soon.

There's still a way to access it if you really want to:

Go in:
C:/Windows/System32/Drivers/etc

Open the file called hosts with wordpad.

Put those 2 lines after the already existing line at bottom:



Click save, and NOT save as.

Now it should be working.
AnAkIn is offline   Reply With Quote
Old 11-28-2007, 04:28 AM   #9
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
The domain is now fixed, you can access the CVar List...
AnAkIn is offline   Reply With Quote
Old 03-19-2008, 06:15 AM   #10
AnAkIn
 
Join Date: Oct 2006
Reputation: 369
Posts: 4,324
The cvarlist should be finish soon...there are about 100/200 missing cvars. The list is on our forum. If you want to help, join
AnAkIn is offline   Reply With Quote
Old 06-30-2008, 11:56 AM   #11
NNR. ZeGrOX
 
 
 
Guest
Posts: n/a
Need help please, how to make the spectate mod in CS 1.4 "spectate team only" ?

I need an answer please
  Reply With Quote
Old 07-04-2008, 07:09 AM   #12
^JoSaKoS
 
 
 
Guest
Posts: n/a
Nice man THnx!!
  Reply With Quote
Old 08-10-2008, 04:48 AM   #13
Mr.Bashor
 
 
 
Guest
Posts: n/a
Exclamation

in the CVar-List are any commands in category CHEAT.will my account banned when i use this ?
  Reply With Quote
Old 10-05-2008, 04:16 PM   #14
Chaos303
 
 
 
Join Date: Dec 2006
Reputation: 200
Posts: 791
Quote:
Originally Posted by Mr.Bashor View Post
in the CVar-List are any commands in category CHEAT.will my account banned when i use this ?

Stuff you type in the console will not get you banned, however certain scripts that give you an unfair advantage are frowned upon by most of the cs community. The only thing that will get you banned are modifications to the games core .dll files.
Chaos303 is offline   Reply With Quote
Old 02-27-2009, 11:26 PM   #15
blak.poisn
 
 
 
Guest
Posts: n/a
Thumbs up

Thankyou for these infos...
Liked it !
  Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Game Discussions > # - C > Counter-Strike


Thread Tools
Display Modes

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 Off
HTML code is Off



All times are GMT -7. The time now is 03:23 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2012, All Rights Reserved.