Запустите игру с параметром -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
Загрузить карты:
Загрузка осуществляется командой "map [название_карты]"
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
Дополнительные параметры командной строки:
-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 - ??????
In order to enter the following cheats you will have to activate
the console by modifying game shortcut. Right-click on the Half-Life
2 icon on your desktop, select Properties and a new screen should
pop up. Add the " -console" parameter (without the quotes) at the
end of the target field so it looks similar to this:
"C:\Program Files\Half-Life 2\hl2.exe" -console
Click Apply to save the changes and run the game using that shortcut.
Bring DOWN the console[~] and enter "sv_cheats 1".
Enter one of the following codes to activate the corresponding
cheat function. Also, any code can be used as a command line
parameter by prefixing it with the "-" character.
god - God mode (server side only)
give - Gives a weapon or an item (see the list below)
buddha - Reduces your health
budda - Reduces your health
hurtme # - Hurts the player (# is damage amount)
impulse 101 - All weapons
impulse 82 - Spawns a jeep
notarget - Player becomes hidden to NPCs
noclip - Walk through walls (server side only)
maps - Displays map list
map - Load a specified map (see the list below)
developer # - Sets developer mode to on/off/verbose
(0-off, 1-on, 2-verbose)
+mlook - Enables mouse look
hud_quickhelp/text? 1 - Shows crosshair
viewmodel_fov # - Sets the size of the weapon you're carrying
(54 is default)
exec - Execute a script file
cl_drawhud 1 - Turns hud display on
cl_enablehud 1 - Turns hud display on
cl_showfps 1 - Shows frames per second in game
npc_create - Creates an NPC
(works in worlds that have an NPC entity)
npc_create_aimed - Creates an NPC aiming away from the player.
picker - Toggles 'picker' mode.
setpos - Move player to specified origin
(must have sv_cheats 1 enabled).
setang - Snap player eyes to specified pitch yaw
(musthave sv_cheats).
sv_gravity # - Set gravity to #
sv_stopspeed # - Set min. stopping speed when on ground to #
sv_friction # - Sets world friction to #
sv_bounce # - Sets bounce multiplier for physically
simulated objects collision
sv_maxvelocity # - Sets the maximum velocity of any
moving object to #
sv_waterdist # - Sets vertical view fixup when eyes
are near water plane to #
air_density # - Changes the density of air to #
dsp_explosion_effect_duration # - Sets length of confusion/ear-ringing
effect to #
prop_debug - Toggle bounding-boxes debug mode on/off
(red - ignore damage, white - respond
to damage, green - health)
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
Command-line parameters:
Here's the list of other command-line parameters.
Note that you can use any of the codes listed above as command-line parameter.
just put " -" in front of it:
-fullscreen - Full screen mode
-heapsize 80000 - Set heap size
-width 1024 -height 768 - Set window size
-r_anamorphic 0 - Unknown
-netgraph 3 - Unknown
-mat_preloadshaders - Unknown
-preload - Unknown
-dx9 - Unknown
-dxlevel 90 - Unknown
-shaderdll shader_nvfx_ps20.dll - Unknown
-mouselook - Unknown
-dx8 - Unknown
-condebug - Unknown
-sw - Unknown
-startwindowed - Unknown
-window - Unknown
-windowed - Unknown