Setting console commands as defaults.

A

Andyp88

Guest
Hi there, i'm new to posting non these forums although i have been reading them from time to time so do forgive me if this question has already been answered but:

After changing some console commands, namely cl_rate and cl_crosshairsclae, they reset back to defaults when counterstrike source is closed down meaning everytime i join a server i have to franticly type in some of my config.

it doesnt happen with all commands but is there a secret to getting them to just stay like what i change them to? if not is there a way to set up a bind key in order to change it fast?

Thanks a lot
 
Create an autoexec.cfg file, and put them in there.

Then they'll be executed when the game starts.
 
cl_crosshairscale doesn't get resetted when you restart source, but it will when you goto the options menu. Personally I have a bind that fixes my crosshair back to the right size/color/alfa so I don't have to type it all each time I do something in options.
 
Anyone know how to set the colour of crosshairs in dm?
 
A cfg file is a configuration file that the game uses.

Autoexec is short for 'Automatically execute' or something along those lines. It basically stores the settings you want to be executed on startup of the game.

To create one, just start a new text document in notepad, put the settings you want to execute on startup in there, each on a seperate line.

i.e.

sv_cheats 1
sv_gravity 300

Not;

sv_cheats 1 sv_gravity 300 (though I think adding ';' between the commands will work, I find it easier and clearer to just put them on seperate lines)

Then save the file in

C:\Program Files\Valve\Steam\SteamApps\YOURNAME\counter-strike source\cstrike\cfg

Save it as autoexec.cfg and it should be saved as a config file.
 
Back
Top