Alternate title screen (Portal)
Successfully complete the game to see the cake title screen.
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
impulse 101
All weapons
prop_debug
Bounding box debug
budda
Cannot die due to damage
hud_quickhelp/text? 1
Crosshairs on
hurtme < number >
Damage player by indicated amount
developer < 0-2 >
Developer mode
notarget
Enemies do not target you
god
God mode (Server only)
mat_numtexttureunits < number >
Limit texture units
map < map name >
Load indicated map
maps
Map list
noclip
No clipping mode
picker
Picker mode
exec < filename >
Run script file
air_density < number >
Set air density
sv_bounce < number >
Set bounce multiplier
dsp_explosion_effect_duration < number >
Set explosion length
sv_friction < number >
Set friction
sv_gravity < number >
Set gravity
sv_maxvelocity < number >
Set maximum velocity
sv_stopspeed < number >
Set minimum stopping speed
setang < number >
Set pitch yaw
sv_waterdist < number >
Set vertical view
give < weapon or item name >
Spawn indicated weapon or item
impulse 82
Spawn Jeep
npc_create_aimed
Spawn NPC
npc_create
Spawn NPC
showfps
Toggle framerate display
cl_drawhud < 0 or 1 >
Toggle HUD
cl_enablehud < 0 or 1 >
Toggle HUD
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
upgrade_portalgun
Allow use of second portal placement
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
ent_create_portal_weight_box
Spawn Weighted Storage Cube
Commane line parameters (Half-Life 2)
Start the game with the following command line parameters..
Code Effect
-fullscreen
Full screen mode
-heapsize < number >
Set heap size
-width < number > -height < number >
Set width and height of window
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