Cleanup is going to take awhile, so the site is back up but editing has been disabled.
Half-Life 2 Cheats
From HalfLife 2 Knowledge Base
Contents |
Enabling Cheats
Make sure the console is on. if it is not, go to the main menu -> Options -> Keyboard -> Advanced -> "Enable Developer Console".
then, while in game, bring down the console by pressing the tilda key (~) and type sv_cheats 1.
Impulse Commands
- impulse 50 - Commander mode
- impulse 51
- impulse 52 - Print distance to whatever you're looking at
- impusle 76
- impulse 81 - Give cubemap tool
- impulse 82 - Give Jeep
- impulse 83 - Give Airboat
- impulse 101 - All weapons, a health pack
- impusle 102 - Gib
- impulse 103
- impulse 106 - "Give me the classname and targetname of this entity"
- impulse 107 - Print the name of the texture you're looking at
- impulse 108 - "Sets the debug NPC to be the NPC under the crosshair"
- impusle 195 - "show shortest paths for entire level to nearest node" (flying object)
- impulse 196 - "show shortest paths for entire level to nearest node" (large object)
- impulse 197 - "show shortest paths for entire level to nearest node" (human object)
- impulse 200 - Toggle weapon nodraw
- impulse 201 - Spray decal
- impulse 202 - Random blood splatter
- impulse 203 - Remove item being looked at
Spawning NPCs
npc_create <entity name> - Creates the specified entity wherever you are pointing at. Look around for a list of such npcs.
npc_create_equipment <weapon name> - Used in conjuncture with npc_create, you can determine what weapon your spawned npc uses.
Ex. to create a Combine Soldier with an OSIPR you would enter into the console repsectively:
- npc_create_equipment weapon_ar2
- npc_create npc_combine_s
To make this a bit quicker you might do something like this:
- alias spawn_soldier "npc_create_equipment weapon_ar2; npc_create npc_combine_s"
- bind <key> spawn_soldier
which will create a soldier with an OSIPR whenever you press <key>.
Pistol Trick
The "pistol trick" is an exploitation of a bug in the game that allows you to "charge up" any gun without a secondary fire. This allows things such as one shot kills with the USP Match.
-Note- Shortly after its discovery valve released a patch that changed the damage delt by the magnum, changed dm_overwatch and took out the pistol glitch amoung other bug fixes.
To use the pistol trick:
- press and hold the secondary fire button
- while still holding down secondary fire, press and hold the primary fire button
- hold for a period of time
- release the secondary fire
If you did it correctly your gun should fire multiple bullets. The longer you hold down the primary and secondary fire keys, the more bullets your gun should shoot.

