Page 1 of 1

Bind commands in HL2

Posted: Sun Oct 08, 2006 6:08 pm
by Cynyx
An easy way to have shortcut in Half Life 2 is the BIND creating.

The principle : asign a command to a keyboard key (or mouse event)

1) Open your HL configuration file with a text editor (like Notepad). This file is located in YOUR_INSTALLED_DIR\Valve\Steam\SteamApps\YOUR_STEAM_ACCOUNT_NAME\half-life 2 deathmatch\hl2mp\cfg\config.cfg

2) As you can see, in fact all your command are binds.

Code: Select all

bind "A_KEY" "A_COMMAND"
3) Add the following line in your file :

Code: Select all

bind "F1" "say E=mc² clan rocks" 


4) go in game and press F1 key. Yeah, you are right E=mc² rocks !

Posted: Mon Mar 26, 2007 7:21 pm
by Cynyx
if u want as me bind some new chat keys on the numerical pad :

Code: Select all

/ - KP_SLASH
* - *
- - KP_MINUS
+ - KP_PLUS
ENTER - KP_ENTER
7 - KP_HOME
8 - KP_UPARROW
9 - KP_PGUP
4 - KP_LEFTARROW
5 - KP_5
6 - KP_RIGHTARROW
1 - KP_END
2 - KP_DOWNARROW
3 - KP_PGDN
0 - KP_INS
. - KP_DEL