If you have a poke around your TFC subdirectory you will see loads of files with the extension .cfg. These are your TFC config files. In these you can put configs for all or certain classes or maps. I will list the cfg files you will find and when they are activated.
|
autoexec.cfg
|
This config is executed once when TFC starts - in general, you are best leaving this alone as it is not the last config to be executed so anything you put in here can be overwritten by the next cfg file to run.
|
config.cfg
|
This config file contains all of the standard setting and binds you'll use in TFC. When you go into the multiplayer menu and set things like mouse sensitivity and multiplayer name it'll all be saved in here. In general you should NOT make any changes to this file - leave it alone and set up your binds and aliases elsewhere.
|
mapdefault.cfg
|
This doesn't exist by default but if you create it it will execute every time the map changes or you join a game. NB - by default, this will not automatically work. To make it run when you change maps maps sure the line setinfo "em" "1" is in your autoexec.cfg.
|
mapname.cfg (eg 2fort.cfg, etc)
|
This runs every time you join the map called the same as the mapname.cfg. This is useful in a number of circumstances. For example, in rock2 I perfer my detpack to explode as long as possible after I've primed it to give me a chance to get away when blowing the enemy yard - if the yard blows, everyone knows a demoman is close - if there is a delay you can head through the tunnel and get out through the showers before the yard blows thus giving you a chance to do more in that attack.
|
classname.cfg (eg scout.cfg, etc)
|
This will execute every time you change to a class the same name as the classname. As this is the last config file to run you can be sure that any binds or aliases in here will not be overwritten. I find this useful because, for some bizarre reason, I set my "special" key to t which is quite hard to press on the fly in my key config. I set this up when I first started playing little realising that I'd be using this special key. This makes it hard to toggle / untoggle my rifle zoom while playing as a sniper. Thus, I have a special bind for playing a sniper where my space bar, usually set to prime my first grenade, is used for my special key instead. It is also useful for scouts or medics if you want to put in an auto conc jump script for only those classes. Remember though that you have to unbind any keys in here in all the other classname.cfg files and set them back to what you want them to be, eg for a demoman I need to set back the special key to t in the demoman.cfg file.
NB - by default, this will not automatically work. To make it run when you change maps maps sure the line setinfo "ec" "1" is in your autoexec.cfg.
|