
Half-Life 2 – Cheats & Tips
Here are some cheats and tips for the game Half-Life 2.
Cheat mode:
After opening Steam, go to the “Play Games” menu and right click on
“Half-Life 2”. Select “properties” and click the “Launch options” button.
In the box type “-console” and click “OK” to close. Load the game
normally, and when you start playing hit the “~” key to bringup the
console. (For those who dowloaded through steam, use “-applaunch -dev
-tconsole” in the command line instead of -console listed above). Enter
“sv_cheats 1” and you can now enter the codes listed below.
Effect Code
God mode (server only) god
Spawn indicated item give
Reduce your health buddha
Damage player hurtme
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
Toggle developer mode; 2 is verbose developer
Enable mouse look +mlook
Show crosshairs hud_quickhelp/text? 1
Sets the size of carried weapon;
54 is default viewmodel_fov
Execute script file exec
Toggle HUD display cl_drawhud
Toggle HUD display cl_enablehud
Toggle frame rate display cl_showfps
Creates an NPC; only where NPC are
allowed npc_create
Create an NPC aiming away from player npc_create_aimed
Toggle picker mode. picker
Set gravity value sv_gravity
Set minimum stopping speed when on
ground sv_stopspeed
Set world friction sv_friction
Set bounce multiplier for physically
simulated objects collision sv_bounce
Set maximum velocity of any moving
object sv_maxvelocity
Set vertical view fixup when eyes are
near water plane sv_waterdist
Slow time; 1 is default cl_phys_timescale
Change air density air_density
Set length of explosion confusion dsp_explosion_effect_duration
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
Black and white screen mat_yuv 1
Color screen mat_yuv 0
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
Set view to indicated pitch yaw Setang
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
No weapon model onscreen impulse 200
Map names:
Use the following entries with the map code:
d1_canals_01
d1_canals_01a
d1_canals_02
d1_canals_03
d1_canals_05
d1_canals_06
d1_canals_07
d1_canals_08
d1_canals_09
d1_canals_10
d1_canals_11
d1_canals_12
d1_canals_13
d1_eli_01
d1_eli_02
d1_town_01
d1_town_01a
d1_town_02
d1_town_02a
d1_town_03
d1_town_04
d1_town_05
d1_trainstation_01
d1_trainstation_02
d1_trainstation_03
d1_trainstation_04
d1_trainstation_05
d1_trainstation_06
d2_coast_01
d2_coast_03
d2_coast_04
d2_coast_05
d2_coast_07
d2_coast_08
d2_coast_09
d2_coast_10
d2_coast_11
d2_coast_12
d2_prison_01
d2_prison_02
d2_prison_03
d2_prison_04
d2_prison_05
d2_prison_06
d2_prison_07
d2_prison_08
d3_breen_01
d3_c17_01
d3_c17_02
d3_c17_03
d3_c17_04
d3_c17_05
d3_c17_06a
d3_c17_06b
d3_c17_07
d3_c17_08
d3_c17_09
d3_c17_10a
d3_c17_10b
d3_c17_11
d3_c17_12
d3_c17_12b
d3_c17_13
d3_citadel_01
d3_citadel_02
d3_citadel_03
d3_citadel_04
d3_citadel_05
Weapon names:
Use the following entries with the give code.
weapon_357
weapon_alyxgun
weapon_ar2
weapon_bugbait
weapon_cguard
weapon_crowbar
weapon_crossbow
weapon_frag
weapon_physcannon
weapon_pistol
weapon_rpg
weapon_shotgun
weapon_smg1
weapon_cubemap
weapon_annabelle
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.
item_ar2_grenade
item_ammo_smg1_grenade
item_box_buckshot
item_box_lrounds
item_ammo_ar2
item_ammo_ar2_large
item_large_box_lrounds
item_ammo_ar2_altfire
item_box_mrounds
item_ammo_smg1_large
item_large_box_mrounds
item_ammo_smg1
item_box_srounds
item_ammo_pistol
item_ammo_pistol_large
item_large_box_srounds
item_healthkit
item_battery
item_ml_grenade
item_rpg_round
item_suit
item_healthvial
item_ammo_357
item_ammo_357_large
item_ammo_crossbow
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.
npc_alyx
npc_antlion
npc_antlionguard
npc_barnacle
npc_barney
npc_breen
npc_citizen
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
npc_turret_floor
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
Force DirectX compatibility;
less than 8 not advised -dxlevel 0
Use indicated filename for
shader library -shaderdll
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
Load all level data at start of level -preload
Unknown -mat_preloadshaders