The web's largest cheats, codes, and game help site  
HOME | CHEATS | NEWS | REVIEWS | VIDEOS | FORUMS


More:Half-Life 2 (PC): Cheat Codes

From GameWinners

Jump to: navigation, search

Contents

Cheat mode

Open Steam, go to your "Play Games" menu, and select Half-Life 2. Right click on it and select "Properties". Click the Launch Options button then type -console. Click "Ok", then close. Double click Half-Life 2 to start the game. Once it is loaded and you are playing, press the ~ key to bring up the console. Then, enter sv_cheats 1 and press [Enter]. You can now enter the following codes at the console window.

Also, 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 parameter.

Effect Code
God mode (server only) god
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

, , , , and

Developer mode

After enabling cheat mode, enter sv_cheats 1 at the console window. The following codes may now be enabled at the console window

Effect Code
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

sn, vrv lfir

Map names

Use one of the following entries with the map code.

Location 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

and

Debug mode

After enabling cheat mode, press [Shift] + [F1] to bring up a menu. From here you can access codes like god, noclip, notarget, and many more. You can exit by pressing [Shift] + [F1] again.

Beta version: Map names

Use one of the following entries with the map code.

d1_canals_01
d1_canals_02
d1_canals_end
d1_tempanals_02
d1_town_01
d1_town_02
d1_town_03
d1_town_04
d1_town_05
d1_trainstation_01
d1_trainstation_02
d1_trainstation_03
d1_trainstation_05
d1_under_01
d1_under_02
d1_under_03
d1_under_04
d2_coast_01
d2_coast_02
d2_coast_03
d2_coast_04
d2_coast_04_dx60
d2_coast_05
d2_coast_06
d2_coast_07
d2_coast_08
d2_prison_01
d2_prison_02
d2_prison_03
d2_prison_04
d2_prison_05
d3_c17_03
d3_c17_04
d3_c17_05
d3_c17_06a
d3_c17_06b
d3_c17_07

Weapon names

Use one of the following entries with the give code.
and

weapon_357 (.357 Magnum)
weapon_alyxgun (may not work at certain times, and may cause undesired effects)
weapon_ar2 (pulse gun)
weapon_bugbait (Pheropod)
weapon_cguard (may not work at certain times, and may cause undesired effects)
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)

Beta version: Weapon names

Use one of the following entries with the give code.

weapon_alyxgun
weapon_ar1
weapon_ar2
weapon_bugbait
weapon_cguard
weapon_crowbar
weapon_extinguisher
weapon_flaregun
weapon_frag
weapon_gauss
weapon_hopwire
weapon_iceaxe
weapon_physcannon
weapon_physgun
weapon_pistol
weapon_rpg
weapon_shotgun
weapon_smg1
weapon_smg2
weapon_stickylauncher
weapon_stunstick
weapon_thumper
weapon_sniperrifle
weapon_rollerwand
weapon_molotov
weapon_manhack
weapon_immolator
weapon_irifle
weapon_slam
weapon_hmg1
weapon_cubemap
weapon_binoculars
weapon_ml
weapon_brickbat

Item names

Use one of the following entries with the give code.
and

item_ar2_grenade (submachine gun grenades)
item_ammo_smg1_grenade (submachine gun grenades)
item_box_buckshot (shotgun 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)

Beta version: Item names

Use one of the following entries with the give code.

item_box_buckshot
item_box_mrounds
item_box_sniper_rounds
item_box_srounds
item_healthkit
item_battery
item_suit
item_ml_grenade
item_ar2_grenade
item_healthvial

NPC names

Use one of the following entries with the npc_create code.
and

npc_alyx
npc_antlion
npc_antlionguard
npc_barnacle
npc_barney
npc_breen
npc_citizen
npc_combine_p
npc_combine_s
npc_combinedropship
npc_combinegunship
npc_crow
npc_cscanner
npc_dog
npc_eli
npc_fastzombie
npc_gman
npc_headcrab
npc_headcrab_black
npc_headcrab_fast
npc_headcrab_poison
npc_helicopter
npc_ichthyosaur
npc_kleiner
npc_launcher
npc_manhack
npc_metropolice
npc_monk
npc_mossman
npc_pigeon
npc_poisonzombie
npc_rollermine
npc_seagull
npc_stalker
npc_strider
npc_turret_ceiling (ceiling turret)
npc_turret_floor (combine turret)
npc_vortigaunt
npc_zombie
npc_zombie_torso

Additional command-line parameters

Start the game with one of the following command line parameters to activate the corresponding feature.

Effect Command line parameter
Full screen mode -fullscreen
Set heap size -heapsize 80000
Set window size -width 1024 -height 768
Graph connection throughput in multi-player; 0 is off, 3 is most detailed -netgraph <0-3>
Force DirectX <version> compatibility; less than 8 not advised -dxlevel <number>0
Use indicated filename for shader library -shaderdll <filename>
Look around by using mouse -mouselook
Add debug messages to ingame console -condebug
Software mode for rendering -sw
Run in window -startwindowed
Run in window -window
Run in window -windowed
Toggle anamorphic widescreen mode -r_anamorphic <0 or 1>
Load all level data at start of level -preload
Unknown -mat_preloadshaders

Please submit more details about the unknown information.
, , and

All chapters

Note: This procedure involves editing a game file; create a backup copy of the file before proceeding. Use a text editor to edit the "config.cfg" file in the "\hl2\cfg" directory. Locate the "sv_unlockedchapters" line and change its value to "15".

Get super gravity gun in any level

Enable the map d3_citadel_03.bsp code. Once you get the super gravity gun, enable the changelevel <map name> code to go to the desired level. Then, enable the give weapon_physcannon code.

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>