Bind commands in HL2

If we can help you in HL2DM...
Post Reply
User avatar
Cynyx
E=mc² Member, Site Admin
Posts: 3945
Joined: Fri Oct 06, 2006 5:11 pm
Location: France, Paris

Bind commands in HL2

Post 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 !
Last edited by Cynyx on Tue May 01, 2007 9:37 am, edited 1 time in total.
User avatar
Cynyx
E=mc² Member, Site Admin
Posts: 3945
Joined: Fri Oct 06, 2006 5:11 pm
Location: France, Paris

Post 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 
Post Reply