Half-Life 2 Cheats: Console Commands for PC

Published by

Enable cheats

CheatCommandEffect
Enable cheatsPCsv_cheats 1Turn on cheat-protected commands

God mode and health

CheatCommandEffect
InvincibilityPCgodInvincibility
Buddha modePCbuddhaTake damage but never die

Movement and vision

CheatCommandEffect
NoclipPCnoclipFly through walls and geometry
NotargetPCnotargetNPCs stop noticing you
Third-person cameraPCthirdpersonSwitch to a third-person camera
First-person cameraPCfirstpersonSwitch back to first-person

Weapons and ammo

CheatCommandEffect
All weaponsPCimpulse 101Give every weapon from the campaign with full ammo
CrowbarPCgive weapon_crowbarGive the crowbar
ShotgunPCgive weapon_shotgunGive the shotgun
Pulse riflePCgive weapon_ar2Give the pulse rifle
CrossbowPCgive weapon_crossbowGive the crossbow
Gravity gunPCgive weapon_physcannonGive the gravity gun
Refill ammoPCgivecurrentammoRefill ammo for your current weapon

World and NPCs

CheatCommandEffect
Spawn zombiePCnpc_create npc_zombieSpawn a zombie in front of you
Spawn Combine soldierPCnpc_create npc_combine_sSpawn a Combine soldier in front of you
Disable NPC AIPCai_disableTurn off all NPC AI
Reset game speedPChost_timescale 1Reset game speed to normal after changing it

A code here did not work? Tell us and it gets rechecked. Report a code

How to enter cheats in Half-Life 2

PC

  1. Enable the developer console in Options Keyboard.
  2. Press the tilde (~) key to open the console.
  3. Type sv_cheats 1 and press Enter first.
  4. Type each command and press Enter.

How to enable developer mode in Half-Life 2

  1. Open the game's settings, go to the keyboard options and tick Enable Developer console.
  2. Press ~ (US layout) to open the console. If it does not open, bind another key to the console in the same keyboard options.
  3. Type sv_cheats 1 and press Enter. GameLeap says most cheat commands need it.
  4. To earn achievements again, type sv_cheats 0 and restart the game.

Steam Community: Half-Life 2 cheats and commands

Do cheats disable achievements in Half-Life 2?

Yes, but only for the session. GameLeap says sv_cheats 1 disables achievements until you set sv_cheats 0 and restart the game. The Steam Community guide adds that achievements you already earned are kept. GameLeap: Half-Life 2 all cheats and commands

Compatibility notes

Which releases these codes apply to, and where one behaves differently. Each note links to the source that documents it.

FAQ

Do Half-Life 2 console commands disable achievements?

Yes. sv_cheats 1 disables achievements for that session; they come back once you restart the game without it.

How do you open the console in Half-Life 2?

Enable it in Options Keyboard, then press the tilde (~) key to open it.

Is there a god mode command in Half-Life 2?

Yes. The god command makes you invincible, and buddha lets you take damage without dying.

Do Half-Life 2 console commands work in multiplayer?

No. These commands work in single-player.

Part of

References: GameLeap: Half-Life 2 all cheats and commands; Steam Community: Half-Life 2 cheats and commands; GameFAQs: Half-Life 2 cheats.