View Single Post
Old 09-14-2007, 02:12 AM   #8
4est
Fortress Forever Staff
 
4est's Avatar
 
Join Date: Mar 2007
Location: OK
Posts Rated Helpful 0 Times
Send a message via Yahoo to 4est
Quote:
Originally Posted by Doughnut-4|4-
I know how to set binds in console but how do you set player specific binds? Edit the scripts, right? I'd love a tutorial.

I also noticed the console is hard bound to tilde. Can this be moved?
If you want specific commands/binds for each class, simply create the following:

demoman.cfg
engineer.cfg
hunted.cfg
hwguy.cfg
medic.cfg
pyro.cfg
scout.cfg
sniper.cfg
soldier.cfg
spy.cfg

Some ppl just throw all binds and aliases into autoexec.cfg. That works fine for most players.


If you want to make your life more difficult, Flamewave had a rather funky system of configs and learned to do this from his website. You have to create 3 new files, binds.cfg, settings.cfg and classdefault.cfg

binds.cfg - contains all non-specific binds
settings.cfg - contains all settings
classdefault.cfg - contains all aliases (almost all)

Nothing is in autoexec.cfg.

Each class config only contains class specific binds aliases and nothing else. They start with:

Code:
unbindall
exec binds.cfg
exec classdefault.cfg
unbindall - wipes out all keys ** DO NOT USE IF YOU DON'T KNOW WHAT YOU ARE DOING**
binds.cfg - has all general use binds
classdefault.cfg - contains all non-specific aliases

The last line in binds.cfg executes the settings.cfg file.
Code:
exec settings.cfg
Naturally, settings.cfg it only contains settings.
Here are the ones I'm using for some aliasing examples: http://www.4estgimp.com/HL2/FF/cfg.rar

*spy.cfg is NOT finished yet* and could cause issues.

Last edited by 4est; 09-14-2007 at 03:17 AM.
4est is offline   Reply With Quote