The developer console in Half-Life 1 (GoldSrc) unlocks cheats, debugging, and scripting. Here are every way to enable it.
-console (or -dev -console for developer messages).valve/config.cfg (or userconfig.cfg) in Notepad.con_enable "1"hl.exe → Create Shortcut."C:\Path\hl.exe" -console| Command | Effect |
|---|---|
sv_cheats 1 | Enable cheats (required for most below) |
god | Invincibility |
noclip | Fly through walls (press again to disable) |
give <weapon> | e.g., give weapon_glock, give weapon_rpg, give item_suit |
impulse 101 | All weapons + ammo + HEV |
thirdperson | Third-person view |
firstperson | Back to first-person |
cl_showfps 1 | FPS counter |
r_drawviewmodels 0 | Hide weapon viewmodel |
map <name> | Load map (e.g., map c1a0) |
changelevel <name> | Change level keeping inventory |
ent_create <class> | Spawn entity (e.g., ent_create npc_barney) |
sv_cheats 1 disables achievements (Steam) and may block VAC-secured multiplayer.sv_cheats 1 (host only).alias, bind, scripts possible.Happy experimenting in Black Mesa.