CFG
caalacricpas Template:Wrongtitle
.cfg files can be found everywhere and are not specific to Source. It is an abbreviation of configuration.
In Source games, a config file can be executed to perform a list of console commands. CFG files can be written in Notepad or any other plain text editor. To create one, right-click the blank space in a folder, and go to New>Text file. Rename it to myconfig.cfg or whatever you want, as long as it ends in .cfg. You can then open it in Notepad and put commands in.
CFGs must be placed in the game root's cfg folder, for example cstrike\cfg
.
Normally, the file autoexec.cfg is run when the game starts up, so you can easily put any commands that you don't want to enter each time into that.
They can also be run from the console using exec <cfgname>
where filename is the name of the config file, excluding its .cfg extention. Sometimes people put exec lines into the autoexec.cfg, so that other CFG files are executed when the game starts up. Config files can be placed in subdirectories of the cfg folder. The exec command would require you to include the subdirectories in the command.