Half-Life 2 Hints

AUTOEXEC.CFG

  • Actually, sv_cheats and other environment variables don't have to be reset every time you run the game. You could instead create an AUTOEXEC.CFG file in Half-Life 2's CFG directory and put the commands in it.

    It's quite a path to the CFG directory. On my computer, my Steam account name is dunigase, so the full path from the root directory of the hard drive to the CFG directory is:

    \Program Files\Valve\Steam\SteamApps\dunigase\half-life 2\hl2\cfg

    Whew, what a path! Anyway, if you can run Microsoft Notepad and then navigate all the way there, you can save a new file there called AUTOEXEC.CFG. In it, you can put whatever commands you want to already be in effect every time you run the game. For instance, if you wanted cheat mode on and infinite auxiliary power for the HEV suit activated, your AUTOEXEC.CFG would contain these two lines:

    sv_cheats 1
    sv_infinite_aux_power 1