23.11.09

Managing Scripts in Team Fortress 2

Whether you never used a single script for TF2 yet, or you already have some, I fully recommend that your "cfg" directory will contain the following files:


scout.cfg
soldier.cfg
pyro.cfg
demoman.cfg
heavyweapons.cfg
engineer.cfg
medic.cfg
sniper.cfg
spy.cfg


back.cfg
autoexec.cfg


The file config.cfg should already be there.


1. Any class config file should start with the line "exec back.cfg".


2. Basically, any class-specific script will go to its class config file. Any binds that are effected by that script, should be redefined in back.cfg. For example, if the soldier config file binds the mouse2 (right-click) button to a rocket jump script, then you should write the line "bind 'mouse2' +attack2" in "back.cfg".


This is kind of a must-do before you read any of my other scripts related posts.