Half-Life 2 Cheats: Console Commands for PC
- PC Enable the developer console in Options Keyboard, press ~ to open it, type sv_cheats 1 and press Enter, then type each command and press Enter.
Published by Andrew B.
No cheats match that filter.
Enable cheats
| Cheat | Command | Effect |
|---|---|---|
| Enable cheats | PCsv_cheats 1 | Turn on cheat-protected commands |
God mode and health
| Cheat | Command | Effect |
|---|---|---|
| Invincibility | PCgod | Invincibility |
| Buddha mode | PCbuddha | Take damage but never die |
Movement and vision
| Cheat | Command | Effect |
|---|---|---|
| Noclip | PCnoclip | Fly through walls and geometry |
| Notarget | PCnotarget | NPCs stop noticing you |
| Third-person camera | PCthirdperson | Switch to a third-person camera |
| First-person camera | PCfirstperson | Switch back to first-person |
Weapons and ammo
| Cheat | Command | Effect |
|---|---|---|
| All weapons | PCimpulse 101 | Give every weapon from the campaign with full ammo |
| Crowbar | PCgive weapon_crowbar | Give the crowbar |
| Shotgun | PCgive weapon_shotgun | Give the shotgun |
| Pulse rifle | PCgive weapon_ar2 | Give the pulse rifle |
| Crossbow | PCgive weapon_crossbow | Give the crossbow |
| Gravity gun | PCgive weapon_physcannon | Give the gravity gun |
| Refill ammo | PCgivecurrentammo | Refill ammo for your current weapon |
World and NPCs
| Cheat | Command | Effect |
|---|---|---|
| Spawn zombie | PCnpc_create npc_zombie | Spawn a zombie in front of you |
| Spawn Combine soldier | PCnpc_create npc_combine_s | Spawn a Combine soldier in front of you |
| Disable NPC AI | PCai_disable | Turn off all NPC AI |
| Reset game speed | PChost_timescale 1 | Reset 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
- Enable the developer console in Options Keyboard.
- Press the tilde (~) key to open the console.
- Type sv_cheats 1 and press Enter first.
- Type each command and press Enter.
How to enable developer mode in Half-Life 2
- Open the game's settings, go to the keyboard options and tick Enable Developer console.
- Press ~ (US layout) to open the console. If it does not open, bind another key to the console in the same keyboard options.
- Type sv_cheats 1 and press Enter. GameLeap says most cheat commands need it.
- To earn achievements again, type sv_cheats 0 and restart the game.
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.
- Console off by default The Steam Community guide says you first tick Enable Developer console in the settings, then press ~ on a US keyboard layout. If ~ does nothing, it says to bind another key to the console in the keyboard options. The game pauses while the console is open. Steam Community: Half-Life 2 cheats and commands
- Commands without sv_cheats The Steam Community guide says many commands work without cheats turned on, so it suggests trying them first. Its author agrees that givecurrentammo is one of them. Steam Community: Half-Life 2 cheats and commands
- Episodes and Lost Coast The Steam Community guide marks some give weapon codes as belonging to other games: weapon_hopwire and weapon_striderbuster to Episode One and Two, weapon_oldmanharpoon to Lost Coast and weapon_portalgun to Portal. It says impulse 101 gives only the non-secret Half-Life 2 weapons. Steam Community: Half-Life 2 cheats and commands
- Extreme values The Steam Community guide warns that very high values for the sk_plr_dmg damage settings or host_timescale can freeze the game, and that a very high sv_gravity may crash it. Steam Community: Half-Life 2 cheats and commands
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.
