Cheat Mode (Half-Life 2 games)
All commands are done through the Console. Must be enabled through the -Console option on an shortcut to the game executable or enabled in the in game options under the Advanced section of Controls. It is then accessed by pressing the tilde key (next to numeric one on NTC keyboards, on the right side somewhere on the freak -- PAL --keyboards).
Most of these require sv_cheats to be set to 1.
upgrade_portalgun - Allows use of second portal placement. Must have obtained blue portal portion of the gun.
fire_energy_ball - Fires an energy ball that can be used in solving puzzles. Recommend that you bind this to a key for easy use. Example would be, bind q fire_energy_ball
ent_create_portal_weight_box - Creates a Weighted Storage Cube for your use in getting a little bit higher, holding down a button, or taking out a sentry.
change_portalgun_linkage_id # - Replace # with an integer from 0 to 3. Allows for creation of seperate sets of portals.
sv_portal_placement_never_bump 1 - No listed effect.
sv_portal_placement_never_fail 1 - Portals can be placed on almost any surface. They still cannot go through the dispersal fields and some curved surfaces/models.
Cheat Mode (Half Life 2 games, Portal)
Go to "Keyboard options", select "Advanced Options" and activate "Developers" mode. Then, while in game, press the [~] button and enter the following codes:
sv_cheats 1 - Activate cheats
God - God mode
notarget - No-target mode
noclip - Fly mode
Map codes (Half-Life 2 games)
Press [~] to activate the console, and enter:
map <map_name>
where map_name is one of the following:
d1_under_04 - The lab chapter near the end.
d1_trainstation_03 - The train station after the second load point.
d1_trainstation_05 - The train station after the third load point.
d1_canal_09 - The canals after the eighth load point.
d1_canals_12 - The canals after the eleventh load point.
d1_canals_06 - The canals after the fifth load point.
d1_canals_05 - The canals after the fourth load point.
d1_canal_10 - The canals after the ninth load point.
d1_canals_03 - The canals after the second load point.
d1_canal_08 - The canals after the seventh load point.
d1_canals_07 - The canals after the sixth load point.
d1_canals_11 - The canals after the tenth load point.
d1_canals_04 - The canals after the third load point.
d1_canals_13 - The canals close to the end.
d1_eli_01 - After the canal, outside of Eli's Lab.
d3_citadel_02 - After the first load point in the Citadel.
d3_citadel_03 - After the second load point in the Citadel.
d3_citadel_04 - After the third load point in the Citadel.
d1_breen_01 - At the beginning of Chapter 13.
d3_citadel_05 - At the end of the Citadel.
d1_canals_02 - Deeper in the canals.
d3_c17_09 - City 17 (after the eighth load point).
d3_c17_12 - City 17 (after the eleventh load point).
d3_c17_06 - City 17 (after the fifth load point).
d3_c17_02 - City 17 (after the first load point).
d3_c17_05 - City 17 (after the fourth load point).
d3_c17_10 - City 17 (after the ninth load point).
d3_c17_03 - City 17 (after the second load point).
d3_c17_08 - City 17 ((after the seventh load point).
d3_c17_07 - City 17 (after the sixth load point).
d3_c18_11 - City 17 (after the tenth load point).
d3_c17_04 - City 17 (after the third load point).
d1_eli_02 - Eli's Lab.
d1_under_01 - Lab.
d2_prison_01 - Nova Prospekt.
d2_prison_06 - Nova Prospekt (after the fifth load point).
d2_prison_02 - Nova Prospekt (after the first load point).
d2_prison_03 - Nova Prospekt (after the second load point).
d2_prison_07 - Nova Prospekt (after the sixth load point).
d2_prison_04 - Nova Prospekt (after the third load point).
d2_prison_05 - Nova Prospekt (near the end of the level).
d1_town_01 - Ravenholm.
d1_town_02 - Ravenholm (after the first load point area).
d1_town_03 - Ravenholm (after the second load point area).
d1_town_04 - Ravenholm (after the third load point area).
d1_canals_01 - The canals.
d3_c17_01 - City 17 rebellion.
d2_coast_09 - The coast area (after the eighth load point).
d2_coast_06 - The coast area (after the fifth load point).
d2_coast_02 - The coast area (after the first load point).
d2_coast_05 - The coast area (after the fourth load point).
d2_coast_10 - The coast area (after the ninth load point).
d2_coast_03 - The coast area (after the second load point).
d2_coast_07 - The coast area (after the sixth load point).
d2_coast_11 - The coast area (after the tenth load point).
d2_coast_04 - The coast area (after the third load point).
d2_coast_08 - The coast area (near the end of it).
d1_under_02 - The lab chapter (after the second load point).
d1_under_03 - The lab chapter (after the third load point).
d1_trainstation_01 - Train station.
d1_trainstation_02 - Train station (after the first load point).
d3_citadel_01 - Near the beginning of the Citadel.
d3_c17_13 - Near the end of City 17.
d2_prison_08 - Near the end of Nova Prospekt.
d1_town_05 - Near the end of Ravenholm.
d1_canals_end - Near the end of the canals.
d2_coast_12 - Near the end of the coast area.
d1_trainstation_06 - Near the end of the train station.
d2_coast_01 - The coast (Vehicle).
credits - The credits.
intro - Game intro.