To set a key to a command:
Type:
/bind [key] [command name]
into the console and press enter
eg: /bind k kill
would make your character die whenever you press your K button.
To bind multiple commands to a key:
/bind [key] "[command 1];[command 2]"
(you must put double quotes around multiple commands when binding)
eg:
/bind x "kill;say I JUST CANT TAKE IT ANYMORE"
to kill yourself and then scream about the horror of life.
To see all your current key bindings:
/bindlist
Keys
Most keys are just the name of the button (eg "a" or "." or "[" or "shift") with these exceptions:
- semicolon
- backspace
The NumPad:
- kp_slash
- kp_star
- kp_minus
- kp_plus
- kp_enter
- kp_del
- kp_ins
- kp_end
- kp_downarrow
- kp_pgdn
- kp_leftarrow
- kp_5
- kp_rightarrow
- kp_home
- kp_uparrow
- kp_pgup
To unbind keys:
/unbind [key]
For binary commands (ones that are a simple switch of 0 or 1 to toggle a command) you can use a ! as the toggle. For example:
/bind x cg_draw2D !
That will allow you to press the X key to toggle the HUD and 2D elements on your screen on or off. That way you don't need to have 2 keys for both.
Click here for a list of all commands which can be bound
Edited by Circa
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now