Half-Life Guide

Writing a Custom Userconfig File for Half-Life

Writing a Custom Userconfig File

Overview

Writing a custom userconfig file to change variables.

Writing a Custom Userconfig File

*WARNING*

Read the full article before making any changes. Not doing so may result in loss of custom settings you may already have.

Using a custom userconfig file is a way of keeping things nice and neat so you can make easy changes to any command variable. Anytime the game starts, this file gets executed and overides any commands that may be in the config.cfg file. The userconfig used to be named autoexec before the days of Steam. Autoexec may still work but we are going to use userconfig for now. First we need to find your userconfig.cfg file. This is usually found in the Valve folder of your Half-Life installation.

If you do not have a userconfig.cfg file, you can create one or download a generic one here.[stu-pidaso.net]

Open the file with a text editor such as notepad.

Notice the // marks in front of the text? These 2 forward slash marks makes the line “commented” and will be ignored by the Half-Life engine.

Lets customize the begining of the file. Erase the //This is a generic usercong file and type something different such as //My custom userconfig file. Press the enter key twice and add another line that looks like this..

//—————————||Binds||————————— //—————————————————————

Now is where we start adding some binds and command variables. If you want, you can open the config.cfg file with notepad and copy the binds you already have setup. The defaults are as follows…

bind “TAB” “+showscores” bind “ENTER” “+attack” bind “ESCAPE” “escape” bind “SPACE” “+jump” bind “‘” “+moveup” bind “+” “sizeup” bind “,” “+moveleft” bind “-” “sizedown” bind “.” “+moveright” bind “/” “+movedown” bind “1” “slot1” bind “2” “slot2” bind “3” “slot3” bind “4” “slot4” bind “5” “slot5” bind “;” “+mlook” bind “=” “sizeup” bind “a” “+moveleft” bind “c” “+movedown” bind “d” “+moveright” bind “e” “+use” bind “f” “impulse 100” bind “q” “lastinv” bind “r” “+reload” bind “s” “+back” bind “t” “impulse 201” bind “u” “messagemode2” bind “v” “+moveup” bind “w” “+forward” bind “y” “messagemode” bind “`” “toggleconsole” bind “~” “toggleconsole” bind “UPARROW” “+forward” bind “DOWNARROW” “+back” bind “LEFTARROW” “+left” bind “RIGHTARROW” “+right” bind “ALT” “+strafe” bind “CTRL” “+duck” bind “SHIFT” “+speed” bind “F5” “snapshot” bind “F6” “save quick” bind “F7” “load quick” bind “F10” “quit prompt” bind “INS” “+klook” bind “PGDN” “+lookdown” bind “PGUP” “+lookup” bind “END” “centerview” bind “MWHEELDOWN” “invnext” bind “MWHEELUP” “invprev” bind “MOUSE1” “+attack” bind “MOUSE2” “+attack2” bind “PAUSE” “pause”

Now press enter twice and create a line like this..

//———————-||Audio settings||———————- //—————————————————————

Here is where you would place your audio settings. Below are my particular settings but you may have your own..

ambient_level 0 bgmvolume “0.000000” hisound “1” MP3FadeTime “2.0” MP3Volume “0.8” room_off 1 s_a3d “0” s_automax_distance “30.0” s_automin_distance “2.0” s_bloat “2.0” s_distance “60” s_doppler “0.0” s_eax “1” s_leafnum “0” s_max_distance “1000.0” s_min_distance “8.0” s_numpolys “200” s_occlude “0” s_polykeep “1000000000” s_polysize “10000000” s_refdelay “4” s_refgain “0.4” s_reverb “0” s_rolloff “1.0” s_usepvs “0” s_verbwet “0.25” suitvolume “0.250000” voice_enable “1” voice_forcemicrecord “1” voice_modenable “1” voice_scale “1” volume “0.8”

Continue to do these steps until you have all you prefered settings entered into the userconfig file. Once you are done, at the top left corner click on File and then Save as… The Save As window will pop open. At the bottom where it says Save as type:, make sure it says All Files in the drop down box. Now type userconfig.cfg in the File name box and click on save.

Confused about what all you should put in your userconfig file? Don’t worry, I have provided a link[stu-pidaso.net] with a copy of my userconfig file so you can see what a finished one looks like. For more custom userconfig files, download the userconfig_pack[stu-pidaso.net] here.

More of my tutorials can be found at [link]

SteamSolo.com