Note: Command parameters are described inside the characters. Syntax: hl2.exe Usage These options can be used with: • Hammer editor dialog. • Windows shortcuts pointing to hl2.exe directly. • Windows shortcuts pointing to steam.exe with the proper -applaunch specified (see Steam section below). • Command-line batch script files launching these applications.
Examples • steam.exe -applaunch 280 -dev -console -sw +sv_lan 1 +map MyMap • hl2.exe -game cstrike -dev -console -fullscreen +sv_lan 1 +map de_dust Command-line parameters Argument Description -autoconfig Restores video and performance settings to default for the current hardware detected. Ignores settings inside any.cfg files until this parameter is removed. -32bit Forces the engine to start in 32-bit mode. Only useful on Operating Systems. -adapter Sets the GL graphics adapter.
Default is 0. -allowdebug -allowstalezip -basedir -bi -bugbait To do: Is it for Bugbait E3 2003 demo? -bugreporterdll Name of the bug reporter DLL to use -buildcubemaps Builds cubemaps when fully loaded into a map, then quits the game. -conclearlog Clears the console.log text file on start. -condebug Logs all console output into the console.log text file.
-console Starts the game with the enabled. Same as having con_enable enabled. -defaultgamedir Fallback directory if '-game' is not set. Default is 'hl2'. Tc Electronic Finalizer Express Manual on this page. -demo Enters the game into demo mode. Only works for 'hl2' and 'portal' -dev Enables developer mode. Also disables the automatic loading of menu background maps and stops the quit dialog from appearing on exit.