My Useful Console Commands

footsteps

Newbie
Joined
Oct 8, 2004
Messages
90
Reaction score
0
Posted this on the steam boards but within a few minutes it had been relegated to page 2.

---------

HL2 has a really cool ingame sound mixer. I always thought the footsteps (!) were barely audible, so I sought to fix that. The command that controls a mixgroup's volume is:

snd_mixvol <mixgroup> <volume>

The mixgroup that includes the player's footsteps is called Player. So, by entering the following command, I can increase its volume:

snd_mixvol Player 1.0

Typing snd_mixvol Player 0 will mute footsteps and other player related sounds altogether. An argument between 0 and 1 works best here so as to not cause any sound distortion.

If you want to learn a few more mixgroup names, type the following:

snd_showmixer 1

You'll have to make a bind with these commands because they won't work in the autoexec.cfg. But fortunately you only have to press it once per session as it sticks between level loads.

You could have:

bind m "snd_mixvol Player 1; snd_mixvol Player_Weapons_Loud 1.2; snd_mixvol Explosions 1.2"

------
Other commands:

If you want to create a few binds that will directly control brightness, you can have:

bind ] "incrementvar mat_monitorgamma 1.6 2.6 -0.1"
bind [ "incrementvar mat_monitorgamma 1.6 2.6 0.1"

Now pressing [ and ] will control the game's brightness. Very handy; In HL1 you had to create a huge ass script to do this.

You could also use this for a volume control:

bind + "incrementvar volume 0 1 0.1"
bind - "incrementvar volume 0 1 -0.1"

Or to toggle between cl_showfps 0 and 2:

bind p "incrementvar cl_showfps 0 2 2"

The syntax is:

incrementvar <variable> <minValue> <maxValue> <delta>

Delta is the size of the increment.

-----

If you want to toggle a cvar between 0 and 1, you can just use:

bindtoggle <key> <variable>

example: "bindtoggle h hud_quickinfo" would switch the crosshair health and ammo brackets on and off by pressing the h key.

-----

If at any time when messing around with console variables you screw up and would like to revert to the variable's default value, you can simply type:

revert <variable>
 
Back
Top