Half-Life Console Commands and Variables
Category: mouse
Use these console commands and variables to customize
Half-Life, TFC, Opposing Force, or most HL Mods, troubleshoot
problems with video or sound hardware, optimize performance, or make your
own scripts. If you don't know how to use these
console commands and variables, please see the Console
Tutorial. Many of these variables are boolean, which means that they
can be either 1 (on) or 0 (off) and no other values are allowed. In the
descriptions for boolean variables, I use "enables" or "disables" to indicate
what happens when that variable is set on (1). The opposite is always
true (if 1 enables the feature, 0 disables it, and vice-versa). Variables
that can accept any number as a value have descriptions that begin with
"sets the . . . "
Be sure to check out the other
categories, especially the tweaks!. The flags
listed at the end of the descriptions of some variables have the following
meanings:
-
a - attribute variable, changes to these variables
will be automatically saved to Half-Life/valve/config.cfg (or Half-Life/tfc/config.cfg
for TFC). Variables without
this flag will return to the default value listed unless set by Half-Life/valve/autoexec.cfg
(or Half-Life/tfc/autoexec.cfg for TFC).
-
i - info variable, the values of these variables
are displayed in response to the info command.
-
sv - server info variable, the values of these
variables are displayed in response to the serverinfo command.
-
tfc - team fortress classic variables, these
variables apply to TFC mode only (hl.exe
-game tfc).
All · Audio
· Cheats ·
Controls · DemoUtils
· Developer ·
Help · Joystick
· Misc · Mouse
· Net · Prefs
· Scripting ·
TFC · Tweaks
· Unknown ·
Video
Command
or
Variable
Name |
Arguments
or
Default |
Description |
|
|
|
+cammousemove |
|
allow mouse motion to control chase cam while held down
(only works if thirdperson activated) |
+mlook |
|
use mouse to look around |
cl_anglespeedkey |
0.670 |
set the speed that the direction keys (not mouse) change
the view angle |
lookspring |
0 |
enable automatic view centering when +mlook is deactivated
[Flags: a] |
lookstrafe |
0 |
enable mouse strafing when +mlook is deactivated [Flags:
a] |
m_filter |
0 |
enable mouse filtering (smoothing) [Flags: a] |
m_forward |
1 |
set mouse forward speed sensitivity multiplier [Flags: a] |
m_pitch |
-0.022 |
set mouse pitch (up and down motion) speed sensitivity multiplier.
Note that NEGATIVE values result in an inverted mouse (moving mouse forward
looks down), while positive values result in a non-inverted mouse (moving
mouse forward looks up) [Flags: a] |
m_side |
0.800 |
set mouse strafing speed sensitivity multiplier [Flags:
a] |
m_yaw |
0.022 |
set mouse yaw speed sensitivity multiplier [Flags: a] |
sensitivity |
3 |
set mouse sensitivity [Flags: a] |
zoom_sensitivity_ratio |
1.200 |
set the ratio of normal mouse sensitivity to zoomed-in (alt
fire crossbow or .357 in HL, sniper rifle in TFC) mouse sensitivity |
_windowed_mouse |
0 |
enable mouse in windowed mode [Flags: a] |
All · Audio
· Cheats ·
Controls · DemoUtils
· Developer ·
Help · Joystick
· Misc · Mouse
· Net · Prefs
· Scripting ·
TFC · Tweaks
· Unknown ·
Video
|