Binding keys in games is how you can personalize the way you play. For example there are those who bind shooting to their mouse wheel and use a gun like the G3 and spray across maps. Personally I think that is really fucking lame and you get better accuracy and speed shooting normally, but it is their choice.
To bind a key you need to open the console by hitting the [`] button in the top left of your keyboard just under the [Esc] button
*NOTE - If console will not open then you need to go into Options/Game Options/ and enable console
Now to bind a key it is very simple and the command comes in a 3 basic parts:
1. bind command
/bind
2. key you want to bind ( for an example we will use "k" )
/bind k
3. the action or command you want that key to do ( we will use switching weapons for an example )
/bind k weapnext
Now when you press k you will switch weapons.
Most people ask me how I bind keys to say certain things such as; rules, warnings, the address to this website
To bind a key to say something it is very simple:
/bind say
As an example we will bind "k" to say "Hello my name is Kronophonix"
/bind k say Hello my name is Kronophonix
Now when you press "k" it will say in that in the chatbox.
Here are some keys that are not so basic and need more explanation if you want to bind to them.
Binding the mouse wheel: mwheelup, mwheeldown
Binding to buttons on the side of your mouse ( this depends on the mouse ): mouse4, mouse5
Binding to the function keys ( simply type "f" followed by the number ): f1, f2, f3, f4...
That cover most of the common keys people want bound.
Now for some common commands that are good for binding:
Switching weapon: weapnext, weapprev
Knife: +melee
Shooting: +attack
Those are handy to bind on things like mouse wheel.
These are some really good console commands that could possibly be bound on a key, but are really just good for tweaking your gameplay.
Hiding Text Chat :: To hide text chat you need this command
/cg_hudchatposition
This lets you change the x and y values of your chat position, the command for default chat position is:
/cg_hudchatposition 5 204
If you would like to hide the chat, play with the x and y values until it disappears. The command that works for me is:
/cg_hudchatposition 600 600
Removing Crosshairs :: Some servers will not allow you to do this, but it is good to know
/cg_drawcrosshair 0
To enable it again change the 0 to a 1
Changing Field Of View :: Really High numbers will make your game look fisheyed
/cg_fov 65
The default value for FOV is 65, but a good number to play on is 80
/cg_fov 80