Запустите игру с параметром -console
Пример:
"C:\Program Files\Half-Life 2\hl2.exe" -console
Во время игры нажмите клавишу [~] (тильда) после чего
введите "sv_cheats 1" для активации чит режима.
Теперь снова нажмите клавишу [~] (тильда) и
вводите следующие чит коды:
(любой из этих чит кодов также будет работать как параметр командной строки)
god - неуязвимость
buddha - неуязвимость
infinite_aux_power - бесконечная энергия для костюма
impulse 101 - все оружие и патроны
impulse 82 - получить Jeep
npc_kill - убить все NPC в районе
notarget - враги не нападают на вас
noclip - ходить сквозь стены
+mlook - активировать просмотр мышкой
ch_createjeep - создать джип
ch_createairboat - создать надувную лодку
maps - вывести список всех названий карт
impulse 102 - черепки
give <название_предмета> - получить предмет или оружие
Предметы: Оружие:
item_healthkit weapon_ar1
item_healthvial weapon_ar2
item_box_buckshot weapon_bugbait
item_box_mrounds weapon_cguard
item_box_sniper_rounds weapon_molotov
item_box_srounds weapon_manhack
item_battery weapon_immolator
item_suit weapon_irifle
item_ml_grenade weapon_crowbar
item_ar2_grenade weapon_extinguisher
weapon_flaregun
weapon_frag
weapon_gauss
weapon_alyxgun
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_slam
weapon_hmg1
weapon_cubemap
weapon_binoculars
weapon_ml
weapon_brickbat
Дополнительные параметры командной строки:
-fullscreen - полноэкранный режим
-heapsize 80000 - установить размер heap памяти
-width 1024 -height 768 - установить размер окна
-r_anamorphic 0 - ??????
-netgraph 3 - ??????
-mat_preloadshaders - ??????
-preload - ??????
-dx9 - ??????
-dxlevel 90 - ??????
-shaderdll shader_nvfx_ps20.dll - ??????
-mouselook - ??????
-dx8 - ??????
-condebug - ??????
-sw - ??????
-startwindowed - ??????
-window - ??????
-windowed - ??????
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.
Then, enter one of the following codes to activate the
corresponding cheat function.
> You can also modify your existing half-life 2 episode two\ep2\cfg\config.cfg
> and change con_enable to "1" to enable the console
god - God mode (Server only)
noclip - No clipping mode
impulse 101 - All weapons
notarget - Enemies do not target you
maps - Map list
budda - Cannot die due to damage
hurtme [number] - Damage player by indicated amount
impulse 82 - Spawn Jeep
hud_quickhelp/text? 1 - Crosshairs on
exec [filename] - Run script file
developer [0-2] - Developer mode
cl_drawhud [0 or 1] - Toggle HUD
cl_enablehud [0 or 1] - Toggle HUD
showfps - Toggle framerate display
npc_create_aimed - Spawn NPC
npc_create - Spawn NPC
picker - Picker mode
sv_gravity [number] - Set gravity
sv_waterdist [number] - Set vertical view
air_density [number] - Set air density
dsp_explosion_effect_duration [number] - Set explosion length
mat_numtexttureunits [number] - Limit texture units
prop_debug - Bounding box debug
sv_bounce [number] - Set bounce multiplier
speed sv_stopspeed [number] - Set minimum stopping
setang [number] - Set pitch yaw
sv_friction [number] - Set friction
sv_maxvelocity [number] - Set maximum velocity
map [map name] - Load indicated map
give [weapon or item name] - Spawn indicated weapon or item
Weapon and item names:
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
Portal: Cheat mode:
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.
Then, enter one of the following codes at the console window to activate
the corresponding cheat function:
change_portalgun_linkage_id [0-3] - Allow separate sets of portals 2 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