Half Life 2 Console Commands: sv_cheats, God Mode, Noclip, Give

November 14, 2026 · Cheat Codes, Shooter and Action
Quick answer: Half life 2 console commands run on PC once you enable the developer console and type sv_cheats 1. Then use god, noclip, impulse 101 for all weapons or give item_healthkit for health. Press ~ to open the console.

Half life 2 console commands let you turn on god mode, fly through walls, give yourself every weapon and spawn enemies or allies. The console is the Source engine’s developer console, and cheat commands only work after sv_cheats 1.

Commands on this page were checked against a Half-Life 2 console guide, a Steam community thread on the Source console and the Valve Developer Community description of the developer console. Cheats are for single-player play. The Xbox 360 and PS3 versions have no typed console and use button codes.

How to open the Half-Life 2 console

Enable the developer console in the keyboard options, or add a launch option. You can use either method.

  1. In Half-Life 2, open Options, then Keyboard, then Advanced.
  2. Tick Enable developer console and apply.
  3. Press the tilde key (~) in game to open the console. Press it again to close.

The launch option route is to right-click the game in Steam, open Properties, and add -console to the launch options. You can bind another key with bind F2 "toggleconsole". Commands can be chained on one line with semicolons.

The Steam thread that describes the Advanced menu was written for Half-Life: Source. The same menu route is given for Half-Life 2, and the launch option works for any Source game. The developer console is a PC feature.

Turn on cheats with sv_cheats 1

Type sv_cheats 1 before any cheat command. sv_cheats 0 turns cheats off again.

Cheats are flagged per session, so run sv_cheats 1 after you load a map if commands are rejected. Cheat commands are meant for single-player or LAN games. Forcing cheats on a multiplayer server you do not own can get you removed from it.

Half-Life 2 console commands list

Command What it does
sv_cheats 1 Enables cheat commands. Run it first.
god Gordon cannot take damage. Type it again to turn it off.
buddha Damage drops health to 1, but Gordon cannot die.
noclip Flying movement through walls. Type it again to turn off.
notarget NPCs cannot see or target Gordon.
impulse 101 Gives every weapon.
give item_healthkit Adds 25 health.
give item_battery Adds 15 suit energy.
givecurrentammo Refills ammo for the weapon you hold.
kill Kills Gordon instantly.
ai_disable Turns off NPC AI. Enemies stand still.
physcannon_mega_enabled 1 Gives the supercharged gravity gun everywhere.
map d1_trainstation_01 Loads a map by name. This one starts the game.

Type noclip over solid ground. If you switch it off while inside a wall, you can get stuck.

Weapons, health and ammo

Use impulse 101 to get all weapons, give item_healthkit for health and give item_battery for suit power. givecurrentammo refills the weapon in your hand.

Other guides show give weapon_ar2 and give weapon_molotov for single weapons. Replace the name after give with the weapon class you want.

The supercharged gravity gun has a side effect. While physcannon_mega_enabled 1 is active, any NPC’s weapon disintegrates on death throughout the game.

Spawn NPCs and change allegiance in Half-Life 2

Use npc_create npc_<name> to spawn an NPC where you are looking. Example names are npc_combine_s, npc_metropolice, npc_strider, npc_zombie, npc_fastzombie, npc_headcrab, npc_alyx, npc_barney and npc_citizen.

  • ent_fire npc_zombie ignite sets that NPC type on fire.
  • ent_fire npc_combine_s setrelationship "PLAYER D_LI 99" makes the NPC type friendly toward the target. D_HT makes it hostile.
  • ent_create npc_combine_s model models/combine_super_soldier.mdl spawns an Overwatch Elite, which cannot be made with npc_create. Add additionalequipment weapon_<weaponname> to arm him.

Some NPCs need the episodes. npc_zombine requires Episode One or Two, and npc_hunter and npc_magnusson require Episode Two.

Other useful Half-Life 2 console commands

  • fps_max 0 removes the frame rate cap. The default is 300 and the engine tick rate stays at 66.666 Hz.
  • -novid is a launch option that skips the Valve intro video.
  • snd_legacy_surround 1 re-enables legacy surround mixing.
  • maxplayers 4; sv_lan 1, followed by map d1_trainstation_01, loads the campaign as LAN co-op. Autosaves will not load and dead players respawn.
  • developer 1 turns on developer mode with more verbose console output. Valve’s documentation says it also enables cheats and the console, but sv_cheats 1 is the reliable switch.

If you play other Valve shooters, the Half-Life console commands and Black Mesa console commands use the same console. For the multiplayer side see Left 4 Dead 2 console commands, and for Counter-Strike see the CS2 practice console commands. The FPS tweaks are in CS2 console commands for FPS. Browse all game cheat codes for more.

Half-Life 2 cheat codes on Xbox 360 and PS3

The Orange Box versions have no typed console. They use button sequences on the controller.

  • Xbox 360 god mode: LB, Up, RB, Up, LB, LB, Up, RB, RB, Up.
  • Xbox 360 free health: Up, Up, Down, Down, Left, Right, Left, Right, B, A.
  • PS3 restore health: Up, Up, Down, Down, Left, Right, Left, Right, O, X.

Ammo and level-unlock codes also exist for both platforms. The typed commands above are PC only.

Half-Life 2 console commands not working

  • Console will not open: enable the developer console in Options, Keyboard, Advanced, or add -console to the launch options. Check your layout; the tilde key moves on non-US keyboards.
  • “Can’t use cheat command”: run sv_cheats 1 first, after loading the map.
  • NPC does not spawn: check the class name, and remember that episode-only NPCs need those episodes. The Overwatch Elite needs the ent_create method.
  • Stuck after noclip: turn it off over solid ground only.
  • Command works but mods break: the 20th Anniversary update changed the engine and shaders. Old addons may need the legacy build branch on Steam.
  • Speedruns: console use is treated differently by speedrun rules. Use these commands for sandbox play, not for leaderboards.

Half life 2 console commands FAQ

What are the Half life 2 console commands for cheats?

Type sv_cheats 1, then use god, noclip, impulse 101, give item_healthkit or notarget. Open the console with the tilde key after enabling it in the options.

How do I enable the console in Half-Life 2?

Go to Options, Keyboard, Advanced and tick Enable developer console. You can also add -console to the Steam launch options. Then press the tilde key in game.

How do I get all weapons in Half-Life 2?

Run sv_cheats 1, then type impulse 101. For one weapon, use give with a weapon class such as weapon_ar2.

How do I fly or walk through walls in Half-Life 2?

After sv_cheats 1, type noclip. You fly through walls. Type it again to return to normal movement, ideally over solid ground.

How do I spawn enemies in Half-Life 2?

Use npc_create npc_zombie or another NPC class while looking at the spot. Cheats must be on. The Overwatch Elite needs ent_create instead.

Are there cheat codes for Half-Life 2 on Xbox 360 or PS3?

Yes, as button sequences, not a typed console. Xbox 360 god mode is LB, Up, RB, Up, LB, LB, Up, RB, RB, Up.

For a related title, read the Deadlock console commands guide.

Sources

  • GamerTag Mythras – Half-Life 2 console commands guide
  • Steam Community – Half-Life Source console discussion
  • Valve Developer Community – Developer console

Leave a Reply

Your email address will not be published. Required fields are marked *