Bind of keys in Half Life 2 Death Match
In HL2DM you can bind any key you want to do almost anything, e.g. set a button to say hello, to a button to kill yourself, to turning the radio on and off (if it’s available).
Config File
All key aliases are in the following configuration file (This is the default path):
C:\Program Files\Steam\steamapps\(steamUserName)\half-life 2 deathmatch\hl2mp\cfg\config.cfg
You can open this in Wordpad (not notepad).
This will show a whole host of information, but what your really interested in is the ‘bind’ part (about 30 lines down). The first part of the binds will just show what keys you have already set through in-game options
This shows some of bind you have, for example mine has:
bind "F3" "say radio"
bind "F4" "say radiooff"
bind "F7" "timeleft; nextmap"
You can amend this file (do so when steam is not running), but it’s probably easier for you to do this via the console.
Console
Firstly, enable this by going into Options -> Keyboard -> Advanced and then make sure ‘console’ is checked.
To show the console at any time during the game press the “~” key (the key below the escape key).
This could be a little different to other keyboard lay-outs. You can change the hotkey for the console in your config file.
If you want to set up my first command for the radio, above, type the following:
Bind “F3” “say radio”
When you then press F3, it makes you say ‘radio’ as you normally would do in the game. This then runs the radio as normal. If you set F4 to say ‘radiooff’ it turns the radio off.
To remove a Bind
Go to the config file mentioned above, and remove the line you added through the console. Make sure you do this when steam is fully shut down. Alternatively, you can just re-bind over the top of it which removes anything previously bind to that key.
Useful Binds
If you are an administrator, you can set lots of different useful commands that you may need during duties as an admin. But, I won’t go into these here.
Other useful commands could be:
bind "F7" "timeleft; nextmap”
By putting a semicolon in the above, you can run two commands at once. So when you press F7 in this case, it shows the time left in the game AND the next map. Useful stuff eh.
If you wanted to set a key to kill yourself, you could type:
Bind “F12” “kill”
You could set up some keys to show in-game technical statistics:
Bind “F9” “net_graph 0”
Bind “F10” “net_graph 1”
Bind “F11” “net_graph 2”
Pressing F10 show in game stats like frames per second, and how much data your PC is sending and receiving. F11 would show the same with a real time graph. Pressing F9 would turn it off.
Binds I recommend
I use many different binds, many which are not listed here. The only one I would recommend is bind "F7" "timeleft; nextmap” as everyone will use that. However, make sure you know what you are doing before you start chopping and changing your keys.
I hope you find this helpful.
Made by TBR General Jason.
|