Half-Life 2 Cheats: Console Commands for PC

Codes last checked on against the sources listed at the bottom of this page. Covers PC release of Half-Life 2 (Source engine).

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

How to enter cheats

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.

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.