Frequently Asked Questions
Question
Configuration File: what is it and how to use it ?
Answer
When you assign keys in the Options menu, Half-Life saves your preferences in the config.cfg file.
A custom configuration file is simply a permanent *.txt file, created with a text editing application (Notepad, Wordpad),
containing a "list" of your favourite commands.They can be as simple as binding a key to an single action or command(s),
changing the value of game variables (cvars) , executing scripts or making aliases.
* A Bind:
Binds assign an action to a specific key in the format: bind [key] [command]
So in order to turn Netgraph on and off with a keystroke add:
bind "n" "net_graph 3"
bind "m" "net_graph 0"
Keys that can be bound are:
alt, ctrl, del, downarrow, end, f1-f12 (function keys), home, ins, escape, enter, leftarrow, pause, pgup, pgdn, return, rightarrow,
shift, space, tab, uparrow, CapsLock kp_minus, *, kp_slash, kp_plus, kp_enter, kp_del, kp_ins, kp_5, kp_leftarrow, kp_rightarrow, kp_uparrow, kp_downarrow, kp_home, kp_pgup, kp_pgdn, kp_end
* Change Variables:
//To brighten up the darker maps, reduce these cvars to 2.0 or 1.5
texgamma "2.0"
lightgamma "2.0"
*fast weapon switch
hud_fastswitch 1
bind "key" "weapon_XXXX"
* Alias with Mutiple Commands
//Screenshot without weapons or reticle
alias "cleansnap" " crosshair 0; r_drawviewmodel 0; wait; wait; wait; snapshot; wait; wait; wait; crosshair 1; r_drawviewmodel 1"
bind "F5" "cleansnap"
*Script for One Key LongJump
alias "+lj" "+duck; +jump"
alias "-lj" "-jump; -duck"
bind "shift" "+lj"
* Script for Simultaneous Skin and Name Change
bind "key" "name thename; wait; model themodel"