Cheat Codes
Start Steam and go to the "Play Games" menu, and select Half-Life 2. Right click
it and select "Properties". Click the "Launch Options" button then type -console Click
"OK", then close it. Double click "Half-Life 2" to start the game. Once it is loaded
during gameplay press ~ (Tilde) to bring up the console window. Then, enter
sv_cheats 1 and press Enter to enable cheat mode. You can
now enter the following codes at the console window. Any code can be used
as a command line parameter by prefixing it with the "-"
character. Note: For games that were downloaded from Steam, to use cheats
in single player mode, start the game with the -applaunch -dev -tconsole
command line. You can also use the cheats from the original Half-Life 2.
God mode (server only) - god
Move player to indicated location - setpos <coordinates>
Set view to indicated pitch yaw - Setang <value>
Wire frame models - mat_wireframe1
Only wireframe objects effected by physics - vcollide_wireframe 1
Show game triggers - showtriggers_toggle
Show normal maps - mat_normalmaps 1
Show surface materials - mat_normals 1
Toggle bump mapping - mat_fastnobump <0 or 1>
No weapon model onscreen - impulse 200
Spawn indicated item - give <item name>
Full ammo for current weapon; only refills secondary ammo if it was last fired; does not refill empty weapons -
givecurrentammo
Can lose health but cannot die - buddha
Damage player - hurtme <amount>
All weapons - impulse 101
Skulls - impulse 102
Spawn a jeep - impulse 82
Spawn an air boat - impulse 83
Spawn a scout car - ch_createjeep
Spawn an airboat - ch_createairboat
Ignored by NPCs - notarget
Walk through objects (server only) - noclip
List maps - maps
Load indicated map - map <map name>
Toggle developer mode; 2 is verbose - developer <0-2>
Enable mouse look - +mlook
Show crosshairs - hud_quickhelp/text? 1
Limit texture units - mat_numtexttureunits <number>
Sets the size of carried weapon; 54 is default - viewmodel_fov <number>
Execute script file - exec <filename>
Enable use of wired Xbox 360 controller - exec 360controller
Toggle HUD display - cl_drawhud <0 or 1>
Toggle HUD display - cl_enablehud <0 or 1>
Toggle frame rate display - cl_showfps <0 or 1>
Creates an NPC; only where NPC are allowed - npc_create <name>
Create an NPC aiming away from player - npc_create_aimed
Toggle picker mode - picker
Set gravity value - sv_gravity <number>
Set minimum stopping speed when on ground - sv_stopspeed <number>
Set world friction - sv_friction <number>
Set bounce multiplier for physically simulated objects collision - sv_bounce <number>
Set maximum velocity of any moving object - sv_maxvelocity <number>
Set vertical view fixup when eyes are near water plane - sv_waterdist <number>
All chapters unlocked next time game is played - sv_unlocked chapters 15
Slow time; 1 is default - cl_phys_timescale <0.00-1.00>
Change air density - air_density <number>
Set length of explosion confusion - dsp_explosion_effect_duration <number>
See through walls - mat_depthbias_normal 1
Disable dead bodies going through each other - cl_ragdoll_collide 1
Toggle bounding-boxes debug mode; red: ignore damage, white: respond to damage, green: health -
prop_debug
Toggle reporting missing .WAV files - sv_soundemitter_filecheck
Limits the number of texture units; 0 lets the game decide - mat_numtextureunits <number>
Deleted targeted object or person - impulse 203
Black and white screen - mat_yuv 1
Color screen - mat_yuv 0
Record demo - record <demo name>
Stop recording demo - stop
Play recorded demo - play <demo name>
Display help for indicated command - help <console command>
Set max ammo for .357 Magnum - sk_max_357 <number>
Set max ammo for Pulse Rifle - sk_max_ar2 <number>
Set max ammo for Pulse Rifle energy orbs - sk_max_ar2_altfire <number>
Set max ammo for shotgun - sk_max_buckshot <number>
Set max ammo for crossbow - sk_max_crossbow <number>
Set max ammo for hand grenades - sk_max_grenade <number>
Set max ammo for pistol - sk_max_pistol <number>
Set max ammo for RPG - sk_max_rpg_round <number>
Set max ammo for submachine gun - sk_max_smg1 <number>
Set max ammo for SMG grenades - sk_max_smg1_grenade <number>
Set damage value for pistol - sk_plr_dmg_pistol <number>
Set damage value for .357 Magnum - sk_plr_dmg_357 <number>
Set damage value for Pulse Rifle - sk_plr_dmg_ar2 <number>
Set damage value for shotgun - sk_plr_dmg_buckshot <number>
Set damage value for crossbow - sk_plr_dmg_crossbow <number>
Set damage value for crowbar - sk_plr_dmg_crowbar <number>
Set damage value for grenades - sk_plr_dmg_grenade <number>
Set damage value for RPG rockets - sk_plr_dmg_rpg_round <number>
Set damage value for submachine gun - sk_plr_dmg_smg1 <number>
Set damage value for SMG grenades - sk_plr_dmg_smg1_grenade <number>
Detailed framerate information - net_graph 1
Toggle position display - cl_showpos <0 or 1>
Get coordinates - getpos
Set skill level - skill <1-3>
Set how hard you propel objects with the Gravity Gun - physcannon_maxforce <number>
Set how large pulled objects can be - physcannon_maxmass <number>
Set how quickly objects are pulled - physcannon_pullforce <number>
Set length that objects can be pulled from - physcannon_tracelength <number>
Set game speed; "1.0" is default - host_timescale <number>
Spawn human grunt - impulse 76
Create an earthquake - shake
Toggle crosshairs - crosshair <0 or 1>
First person view - firstperson
Toggle unlimited power for sprinting, breathing underwater, etc. - sv_infinite_aux_power <0 or 1>
Combine vision - r_screenoverlay effects/combine_binocoverlay.vmt
Strange vision - r_screenoverlay effects/tp_eyefx/tp_eyefx.vmt
Set number of pellets fired from each shotgun shell - sk_plr_num_shotgun_pellets <number>
Change Gravity Gun to Super Gravity Gun - physcannon_megacannon 1
Move to indicated coordinates - setpos <coordinates>
Set NPC shotgun damage - sk_npc_dmg_shotgun <number>
Set NPC pulse rifle damage - sk_npc_dmg_ar2 <number>
Set NPC SMG damage - sk_npc_dmg_smg1 <number>
Toggle shadows - mat_fullbright <0 or 1>
Enable developer mode - Developer 1
Disable developer mode - Developer 0
Enable verbose developer mode - Developer 2
Show framerate - cl_showfps 1
Shows game information - status
Set view to specified pitch yaw - setang
Third person view - thirdperson
Toggle NPC AI - ai_disable
Toggle alien blood - violence_ablood <0 or 1>
Toggle alien gibs - violence_agibs <0 or 1>
Toggle human blood - violence_hblood <0 or 1>
Toggle human gibs - violence_hgibs <0 or 1>
Map Names
Use one of the following names with the above map code:
Credits - credits
At the beginning of Chapter 13 - d1_breen_01
In the canals after the seventh load point - d1_canal_08
In the canals after the eighth load point - d1_canal_09
In the canals after the ninth load point - d1_canal_10
The canals - d1_canals_01
Deeper in the canals - d1_canals_02
In the canals after the second load point - d1_canals_03
In the canals after the third load point - d1_canals_04
In the canals after the fourth load point - d1_canals_05
In the canals after the fifth load point - d1_canals_06
In the canals after the sixth load point - d1_canals_07
In the canals after the tenth load point - d1_canals_11
In the canals after the eleventh load point - d1_canals_12
In the canals close to the end - d1_canals_13
Near the end of the canals - d1_canals_end
After the canal, outside of Eli's Lab - d1_eli_01
Eli's Lab - d1_eli_02
Ravenholm - d1_town_01
Ravenholm after the first load point area - d1_town_02
Ravenholm after the second load point area - d1_town_03
Ravenholm after the third load point area - d1_town_04
Near the end of Ravenholm - d1_town_05
Train station - d1_trainstation_01
Train station after the first load point - d1_trainstation_02
In the train station after the second load point - d1_trainstation_03
In the train station after the third load point - d1_trainstation_05
Near the end of the train station - d1_trainstation_06
Lab - d1_under_01
The lab chapter after the second load point - d1_under_02
The lab chapter after the third load point - d1_under_03
The lab chapter near the end - d1_under_04
On the coast (Vehicle) - d2_coast_01
The coast area after the first load point - d2_coast_02
The coast area after the second load point - d2_coast_03
The coast area after the third load point - d2_coast_04
The coast area after the fourth load point - d2_coast_05
The coast area after the fifth load point - d2_coast_06
The coast area after the sixth load point - d2_coast_07
The coast area near the end of it - d2_coast_08
The coast area after the eighth load point - d2_coast_09
The coast area after the ninth load point - d2_coast_10
The coast area after the tenth load point - d2_coast_11
Near the end of the coast area - d2_coast_12
Nova Prospekt - d2_prison_01
Nova Prospekt after the first load point - d2_prison_02
Nova Prospekt after the second load point - d2_prison_03
Nova Prospekt after the third load point - d2_prison_04
Nova Prospekt near the end of the level - d2_prison_05
Nova Prospekt after the fifth load point - d2_prison_06
Nova Prospekt after the sixth load point - d2_prison_07
Near the end of Nova Prospekt - d2_prison_08
The City 17 rebellion - d3_c17_01
In City 17 after the first load point - d3_c17_02
In City 17 after the second load point - d3_c17_03
In City 17 after the third load point - d3_c17_04
In City 17 after the fourth load point - d3_c17_05
In City 17 after the fifth load point - d3_c17_06
In City 17 after the sixth load point - d3_c17_07
In City 17 after the seventh load point - d3_c17_08
In City 17 after the eighth load point - d3_c17_09
In City 17 after the ninth load point - d3_c17_10
In City 17 after the eleventh load point - d3_c17_12
Near the end of City 17 - d3_c17_13
In City 17 after the tenth load point - d3_c18_11
Near the beginning of the Citadel - d3_citadel_01
After the first load point in the Citadel - d3_citadel_02
After the second load point in the Citadel - d3_citadel_03
After the third load point in the Citadel - d3_citadel_04
At the end of the Citadel - d3_citadel_05
Introduction - intro
Item Names
Use one of the following names with the above give code:
item_ar2_grenade - Submachine gun grenades
item_ammo_smg1_grenade - Submachine gun grenades
item_box_buckshot - Sshotgun ammo
item_box_lrounds - Pulse gun ammo
item_ammo_ar2 - Pulse gun ammo
item_ammo_ar2_large - Pulse gun ammo large
item_large_box_lrounds - Pulse gun ammo large
item_ammo_ar2_altfire - Pulse gun grenades
item_box_mrounds - Submachine gun ammo
item_ammo_smg1_large - Submachine gun ammo large
item_large_box_mrounds - Submachine gun ammo large
item_ammo_smg1 - Submachine gun ammo
item_box_srounds - 9mm pistol ammo
item_ammo_pistol - 9mm pistol ammo
item_ammo_pistol_large - 9mm pistol ammo large
item_large_box_srounds - 9mm pistol ammo large
item_healthkit - Large health kit; 25 HP
item_battery - HEV suit battery; 15 AP
item_ml_grenade - RPG ammo
item_rpg_round - RPG ammo
item_suit - HEV suit
item_healthvial - Small health kit; 10 HP
item_ammo_357 - .357 Magnum ammo
item_ammo_357_large - .357 Magnum ammo large
item_ammo_crossbow - Crossbow ammo
Weapon Names
Use one of the following names with the above give code:
weapon_357 - .357 Magnum
weapon_alyxgun - All
weapon_ar2 - pulse gun
weapon_bugbait - Pheropod
weapon_cguard - Guard
weapon_crowbar - Crowbar
weapon_crossbow- Crossbow
weapon_frag - Grenade
weapon_physcannon - Gravity gun; may not work at certain times, and may cause undesired effects
weapon_pistol - 9mm pistol
weapon_rpg - RPG
weapon_shotgun - shotgun
weapon_smg1 - Submachine gun
weapon_cubemap - May not work at certain times, and may cause undesired effects
weapon_annabelle - Father Annabelle Grigori's shotgun, uses 357 magnum ammo
|