Cheat mode (Half-Life 2)

Start the game with the -console command line parameter. Press ~ during game play to display the console window. Enter sv_cheats 1 at the console to enable cheat modes.
Code Effect
air_density
Set air density
budda
Cannot die due to damage
cl_drawhud <0 or 1>
Toggle HUD
cl_enablehud <0 or 1>
Toggle HUD
developer <0-2>
Developer mode
dsp_explosion_effect_duration
Set explosion length
exec
Run script file
give
Spawn indicated weapon or item
god
God mode (Server only)
hud_quickhelp/text? 1
Crosshairs on
hurtme
Damage player by indicated amount
impulse 101
All weapons
impulse 82
Spawn Jeep
map

Load indicated map
maps
Map list
mat_numtexttureunits
Limit texture units
noclip
No clipping mode
notarget
Enemies do not target you
npc_create
Spawn NPC
npc_create_aimed
Spawn NPC
picker
Picker mode
prop_debug
Bounding box debug
setang
Set pitch yaw
showfps
Toggle framerate display
sv_bounce
Set bounce multiplier
sv_friction
Set friction
sv_gravity
Set gravity
sv_maxvelocity
Set maximum velocity
sv_stopspeed
Set minimum stopping speed
sv_waterdist
Set vertical view

Map names (Half-Life 2)

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 and item names (Half-Life 2)

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_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

Commane line parameters (Half-Life 2)

Start the game with the following command line parameters..
Code Effect
-fullscreen
Full screen mode
-heapsize
Set heap size
-width -height
Set width and height of window

Cheat mode (Half-Life 2: Episode Two)

Start the game with the -console command line parameter. Press ~ during game play to display the console window. Enter sv_cheats 1 at the console to enable cheat modes.
Code Effect
ai_disable
Toggle disabled NPCs
ch_createairboat
Spawn airboat
ch_createjeep
Spawn scout car
give
Spawn indicated weapon or item
god
Toggle God mode
Impulse 101
All guns and extra ammo
impulse 200
Invisible weapon model
impulse 83
Spawn airboat
kill
Suicide
mat_normalmaps <0 or 1>
Toggle draw normal maps
mat_normals <0 or 1>
Toggle draw surface materials
mat_wireframe<0 or 1>
Toggle wire frame models
noclip
Toggle No Clipping mode
notarget
Enemies cannot see you
npc_create
Spawn NPC
npc_kill
Kills all NPCs in area
showtriggers_toggle
Draw game triggers
vcollide_wireframe <0 or 1>
Toggle only wirefame objects affected by physics

Cheat mode (Portal)

Enter the options menu, select ‘Controls’, then ‘Advanced’. Turn on the option for the console. Then press ~ during game play to display the console window. Type sv_cheats 1 to enable cheat mode.
Code Effect
change_portalgun_linkage_id <0-3>
Allow separate sets of portals to be created
ent_create_portal_weight_box
Spawn Weighted Storage Cube
fire_energy_ball
Fire an energy ball
sv_portal_placement_never_bump 1
Portal placement cannot be bumped
sv_portal_placement_never_fail 1
Portals can be placed on almost any surface
upgrade_portalgun
Allow use of second portal placement

Alternate title screen (Portal)

Successfully complete the game to see the cake title screen.

Hidden Left 4 Dead trailer

Remain idle at the game selection screen. After a few minutes, a demo video of one of the games will begin. After the video ends, wait for the next video to begin, which will be a Left 4 Dead trailer.