What is Binding?
Binding is an easy way to access any in-game command with a single key or button press. You can use the in-game console
to create binds or – far more easily – do it with a simple Notepad file. The basic format goes like this:
bind “ < keyname > ” “ < command > ”
Don't forget
the quote marks or things might not work properly – particularly if you start binding typed messages to keypresses.
Binds are usually stored in a file named
config.cfg (found in Steam/Steamapps/
account name /day
of defeat source/dod/cfg) but Day of Defeat: Source likes to overwrite this file every time you change your options, so your
best bet is to create a new Notepad document and go from there.
You'll need to save this file as
userconfig.cfg in the same directory as config.cfg and make sure
that the file type (when saving in Notepad) is set to “All file types”,
NOT .txt or it won't
work.
NOTE: When you've finished binding your commands, make it read-only (right-click, Properties, check
the box) and add the following line to the bottom of your config.cfg file:
exec userconfig.cfg
Creating a bind
There are two things you need to know in order to start making your own keybinds. First of all, you need to know the
name of the key you want to assign the command to (usually pretty straightforward – on the main part of the keyboard,
it's the character you get when you hit the key without shift or capslock held down). Be warned though – you can't (easily)
bind a separate command to “p” and “P”. More on this at the end.
Secondly, you need to know the in-game command as it shows up in the console (although not all commands actually show
up, which – in the case of the voice commands you can shout during the game – is where the table below comes in).
Binding Voice Commands
Let's say you wanted to make your player shout “MEDIC!” with a simple press of the “M” key.
To do that, you'd enter the following line into your blank notepad file:
bind “m” “voice_medic”
The only thing you need to be sure of is that the key you're
binding to isn't already used by the game for something else…
If you want to bind a non-alphanumeric key, you'll need to know its actual name – this is usually pretty obvious
(ALT, CAPSLOCK, SHIFT etc) but if you want to bind the cursor keys or the numeric keypad, you'll need to get a bit more descriptive.
Use LEFTARROW, UPARROW, DOWNARROW, RIGHTARROW for the cursors or refer to the following list for the keypad:
KEY NAME
/ - KP_SLASH
* - *
- - KP_MINUS
+ - KP_PLUS
ENTER - KP_ENTER
7 - KP_HOME
8 - KP_UPARROW
9 - KP_PGUP
+ - KP_PLUS
4 - KP_LEFTARROW
5 - KP_5
6 - KP_RIGHTARROW
1 - KP_END
2 - KP_DOWNARROW
3 - KP_PGDN
0 - KP_INS
. - KP_DEL
Next, you'll be wanting a list of all the voice commands you can bind. The transcription is based on the US Army commands
for all you English speakers out there…
VOICE ( U.S. ARMY) COMMAND
Take this ammo voice_takeammo
Fire in the hole voice_fireinhole
I need backup voice_backup
I need ammo voice_needammo
Squad, covering fire voice_cover
Go, go, go voice_gogogo
Prepare for assault voice_attack
Sniper voice_sniper
Incoming fire, left flank voice_fireleft
Area clear voice_areaclear
Incoming fire, right flank voice_fireright
Flank left voice_left
Flank right voice_right
Cover the flanks voice_coverflanks
Fall back voice_fallback
Cease fire voice_ceasefire
Hold this position voice_hold
Stick together voice_sticktogether
Displace voice_displace
Smoke ‘em voice_usesmoke
Get a grenade in there voice_usegrens
Use the bazooka voice_usebazooka
Panzerschreck voice_bazookaspotted
Grenade, take cover voice_grenade
Enemy position knocked out voice_wegothim
Enemy ahead voice_enemyahead
Enemy behind us voice_enemybehind
We need an MG up here voice_moveupmg
MG position ahead voice_mgahead
Yes, sir voice_yessir
Negative voice_negative
Nice shot voice_niceshot
Thanks voice_thanks
Medic! voice_medic
Drop your weapons voice_dropweapons
Whiskey Tango Foxtrot voice_wtf
More uses for binds
You can bind a pre-set team message to a single key using the following method:
bind “h” “say_team Hit the dirt!”
Every time you hit the H key from that point
on, you'll send everyone on your current team a message saying “Hit the dirt!” – not useful all the time,
but if you use the following commands in your message they can actually come in handy.
%c broadcasts your class.
%l broadcasts your current location (or nearest landmark).
%h broadcasts your current health level.
%t broadcasts the current time.
By mixing those in with messages, you can come up with some quite useful shortcuts:
bind “#” “say_team I'm a %c at %l with %h health remaining”
Binding
multiple commands to a single keypress
The semicolon ( ; ) comes in handy when you want to carry out two or more actions with a single keypress. Let's say
you wanted to drop some ammo, tell your team where you left it, and have your character shout “Take this ammo!”
all at once:
bind “h” “dropammo;voice_takeammo;say_team Ammo can dropped near %l”
Mess around
with it and see what you can come up with…
Advanced binding
… is the subject for a whole other tutorial. Do some research and you should be able to find out about aliases
and how to use the “exec” command to change whole sets of keybinds all at once.
One final tip
If you can't figure out what a key's called, go into the ingame options menu and apply it to a blank (unbound) command.
Make a note of the name that appears, then go and edit it in your userconfig.cfg file to match.