Console cheats: Right click on the Half-Life 2 short-cut, go to "Properties," and add
-console at the end of the target line so that it reads:
C:Program FilesHalf-Life 2hl2.exe-console
Apply the change, close the Properties window, and double-click the short-cut to run the game. During gameplay, press ~ and enter the following.
sk_plr_dmg_357 X |
X equals .357 damage |
sk_plr_dmg_crossbow X |
X equals crossbow damage |
sk_plr_dmg_crowbar X |
X equals crowbar damage |
sk_plr_dmg_grenade X |
X equals grenades damage |
sk_plr_dmg_pistol X |
X equals pistol damage |
sk_plr_dmg_ar2 X |
X equals Pulse Rifle damage |
sk_plr_dmg_rpg_round X |
X equals RPG rockets damage |
sk_plr_dmg_buckshot X |
X equals shotgun damage |
sk_plr_dmg_smg1_grenade X |
X equals SMG grenades damage |
sk_plr_dmg_smg1 X |
X equals submachine gun damage |
Netgraph 1 |
Show framerate |
noclip |
Walk through walls |
sv_cheats 1 |
Cheat activation |
viewmodel_fov X |
X equals weapon size |
impulse 101 |
All Weapons |
skill X |
X equals skill level, must be 1, 2 or 3 |
air_density X |
X equals air density |
exec X |
Executes script X |
firstperson |
First-person view mode |
give X |
X equals desired weapon or item |
sv_infinite_aux_power 1 |
Sprint forever |
God |
God mode |
impulse 76 |
Grunt-O-Matic |
notarget |
Invisibility |
mat_numtextureunits X |
Limit the number of texture units (0 is default) |
Map X |
X equals desired map |
mat_fullbright 1 |
No shadows |
mat_fullbright 0 |
Restore shadows |
impulse 203 |
Removes target |
mat_depthbias_normal 1 |
Transparent walls |
sv_gravity X |
X equals gravity level |
sv_friction X |
X equals level of friction |
sv_bounce X |
X equals bounce multiplier for objects |
Developer X |
Developer mode (0=off, 1=on, 2=verbose) |
sv_maxvelocity X |
X equals maximum velocity of object |
hud_quickhelp/text? 1 |
Show crosshairs |
cl_showfps 1 |
Show FPS |
impulse 82 |
Spawns one jeep |
thirdperson |
Third person view mode |
ai_disable |
Turns enemy AI on and off |
sv_unlockedchapters X |
Unlock chapters 1 thru X |
npc_createnpc_X |
Spawns desired NPC |
Map names:
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:
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:
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:
cscanner, rollermine, poisonzombie, mossman, monk, metropolice, manhack, launcher, kleiner, ichthyosaur, headcrab_poison, headcrab_black, headcrab_fast, headcrab, helicopter, gman, fastzombie, eli, dog, pigeon, seagull, crow, combine_s, combinegunship, combinedropship, citizen, breen, barney, barnacle, antlion, alyx, antlionguard, stalker, strider, vortigaunt, zombie, zombie_torso
Console option:
Go to Options, then advanced keyboard settings and set console preference.