Console commands


About

This section describes all console commands.

All the settings described below are stored in the file "user".ltx. (You can read more about important files here)

Game

СommandCommand descriptionCommand's argumentNote
helpOutputs a list of console commands--
g_dead_body_collisionEnables collisionfull
actor_only
off
-
g_game_difficultySelects the game difficultygd_novice
gd_stalker
gd_veteran
gd_master
g_godEnables God Mode'on/off' or '1/0'-
g_hit_pwr_modifBone damage modifier0.500 - 3.000-
g_ironsights_zoom_factorZoom factor of the mechanical sight1.000 - 2.000-
g_unlimitedammoEnables Infinite Ammo Mode'on/off' or '1/0'-
g_use_tracers'on/off' or '1/0'-
g_important_saveSaving at key points'on/off' or '1/0'-
g_autopickupEnables the ability to pick up items automatically'on/off' or '1/0'Not working
g_always_activeThe game will continue to work if the focus is not on it'on/off' or '1/0'-
demo_playPlays the selected demo_record"name" of demo-
demo_recordEnables recording of camera overflights"name" of demoSpace bar sets key points when the camera flies

The Enter key exits record mode and takes the player to the exit point from demo_record mode
demo_set_cam_position-
keypress_on_startWhether to wait after loading a level to press the key to go into the game'on/off' or '1/0'-
loadLoad specified savesave_name-
load_last_saveLoad last save--
main_menuExit to the main menu--
quitExit to the desktop--
cl_cod_pickup_modeSelecting items from the radius around the scope'on/off' or '1/0'-
disconnectEnds the game--
time_factorAbility to change the game time0.001 - 1000.0-
jump_to_levelMoving to the selected levelk00_marsh
l01_escape
l02_garbage
l03_agroprom
k01_darkscape
l04_darkvalley
l05_bar
l06_rostok
l07_military
l08_yantar
l09_deadcity
l10_limansk
l10_radar
l10_red_forest
l11_hospital
l11_pripyat
l12_stancia
l12_stancia_2
l13_generators
l03u_agr_underground
l04u_labx18
l08u_brainlab
l10u_bunker
l12u_sarcofag
l12u_control_monolith
l13u_warlab
zaton
jupiter
jupiter_underground
pripyat
labx8
k02_truck_cemetery
fake_start
y04_pole
-

Multiplayer

СommandCommand descriptionCommand's argumentNote

Actor

СommandCommand descriptionCommand's argument
head_bob_factorBasic head bobbing factor0 - 2

HUD

СommandCommand descriptionCommand's argument
g_simple_pda'on/off' or '1/0'
g_3d_pdaSwitching between 2D and 3D PDA modes'on/off' or '1/0'
hud_weaponShows weapons and hands'on/off' or '1/0'
hud_drawShows UI'on/off' or '1/0'
hud_fovFOV for HUD0.100 - 1.000

UI

СommandCommand descriptionCommand's argumentNote
cl_dynamiccrosshairDynamic Sight'on/off' or '1/0'Not working because of the dot sight
g_crosshair_colorChanges the color of the crosshair(0 - 255, 0 - 255, 0 - 255, 0 - 255)Argument is taken in RGBA format

First value (0 - 255) - Red
Second value (0 - 255) - Green
Third value (0 - 255) - Blue
Fourth value (0 - 255) - Alpha
g_feel_grenade"Sensitivity" grenade'on/off' or '1/0'-
hud_crosshairShow crosshair'on/off' or '1/0'-
hud_crosshair_distShow distance to target under crosshair'on/off' or '1/0'-

Debug

СommandCommand descriptionCommand's argument
rs_statsDisplay engine statistics on the screen'on/off' or '1/0'
rs_cam_posDisplay camera coordinates'on/off' or '1/0'
list_actionsDisplay a list of active console commands-
bind_listDisplay a list of commands assigned to the keys-
hud_info-
render_memory_statsOutput information about memory usage-
stat_memory-

Control

СommandCommand descriptionCommand's argumentNote
bindAssign a command to the buttonAction, key prefixed with k (kLeft, etc.)-
mouse_invertInverts the mouse'on/off' or '1/0'-
mouse_sensMouse sensitivity0.001 - 0.600-
mouse_sens_aimMouse sensitivity when aiming0.500 - 2.000-
default_controlsResets key settings to defaults--
wpn_aim_toggleAiming Mode'on/off' or '1/0'-
g_backrunBackward running mode'on/off' or '1/0'Not working
g_crouch_toggleSit/stand mode'on/off' or '1/0'-
g_sprint_toggleSprint mode'on/off' or '1/0'-
g_walk_toggle'on/off' or '1/0'-

Discord

СommandCommand descriptionCommand's argument
discord_statusDisplays status in Discord'on/off' or '1/0'
discord_update_rateDiscord update rate0.500 - 5.000

Sound

General settings

СommandCommand descriptionCommand's argument
snd_restartRestart the sound engine
snd_cache_sizeCache size8 - 256
snd_accelerationAPU resource utilization'on/off' or '1/0'
snd_targetsMaximum number of channels32 - 1024
snd_deviceOpenAL Soft

Music

СommandCommand descriptionCommand's argumentNote
snd_volume_effVolume of sounds0.000 - 1.000-
snd_volume_musicMusic volume0.000 - 1.000-
g_dynamic_musicTurns on dynamic music (during firefights)'on/off' or '1/0'In the game the script xrs_dyn_music.script responsible for playing music is corrupted. An addon restoring this script can help to fix it (Example: COMBAT MUSIC RESTORED + EXTENDED)

Effects

СommandCommand descriptionCommand's argument
snd_efxEAX sound effects'on/off' or '1/0'

Physics

СommandCommand descriptionCommand's argument
ph_gravityGravity0.000 - 1000.000
ph_frequencyThe more, the better the collision calculations50.0000 - 200.0000
ph_iterationsNumber of iterations to calculate the dynamics15 - 50

Camera

СommandCommand descriptionCommand's argument
cam_inertCamera inertia0.000 - 1.000
cam_slide_inert0.000 - 1.000
fovFOV for camera5.000 - 180.000

Graphics

Graphics General settings

СommandCommand descriptionCommand's argument
_presetSelecting a set of quality settingsMinimum
Low
Default
High/Extreme
rs_screenmodeResolution selection modeWindowed
Fullscreen
Borderless
Windowed
rs_v_syncVertical Sync'on/off' or '1/0'
rs_refresh_60hzScreen refresh rate 60 Hz'on/off' or '1/0'

Renders

Common commands for all renders
СommandCommand descriptionCommand's argument
rendererRender type (old)
rs_vis_distanceVisibility range0.400 - 1.500
r__actor_shadowPlayer shadow'on/off' or '1/0'
r__bloom_threshBrightness threshold for 3rd party bloom shader0.0 - 1.0
r__bloom_weightBloom weights for 3rd party bloom shader0.0 - 1.0
r__clear_models_on_unload'on/off' or '1/0'
r__color_grading0.000000e+00, 0.000000e+00, 0.000000e+00 - 1.000000e+00, 1.000000e+00, 1.000000e+00
r__detail_densityGrass density0.040 - 1.000
r__detail_heightGrass height0.5 - 2.0
r__detail_radiusGrass rendering radius50.0 - 250.0
r__dtex_range5.000 - 175.000
r__enable_grass_shadowEnables grass shadows'on/off' or '1/0'
r__exposureScene exposure0.500 - 4.000
r__framelimitFPS limiter0 - 500
r__gammaScene gamma0.500 - 2.200
r__geometry_lodGeometry level of detail0.100 - 1.500
r__lens_flaresThe "lens flare" effect'on/off' or '1/0'
r__nightvisionControls nightvision shader0 - 3
r__no_ram_textures'on/off' or '1/0'
r__no_scale_on_fade'on/off' or '1/0'
r__optimize_dynamic_geom0 - 4
r__optimize_shadow_geom'on/off' or '1/0'
r__optimize_static_geom0 - 4
r__saturationColor saturation0.0 - 2.0
r__supersampleSupersampling (DX8)1 - 8
r__tf_anisoAnisotropic filtering0
4
8
16
r__tf_mipbiasbias for initial texture mip level-3.0 - 3.0
r__use_precompiled_shaders'on/off' or '1/0'
r__wallmark_ttlWallmark Lifetime1.000 - 600.000
r_screenshot_modeScreenshot in the selected formatjpg
png
tga
R1 - SM2.0 (DX9.0)
СommandCommand descriptionCommand's argument
r1_detail_texturesDetailed textures on static lighting'on/off' or '1/0'
r1_dlightsDynamic light sources on static lighting'on/off' or '1/0'
r1_dlights_clipSets the display radius (visibility range) of dynamic light sources10.000 - 150.000
r1_fog_luminanceFog brightness0.2 - 5.0
r1_glows_per_frameControls the maximum number of light sources2 - 32
r1_lmodel_lerpControls Linear Lighting Interpolation0.000 - 0.333
r1_pps_uControls Per Pixel Shader value-1.000 - 1.000
r1_pps_vControls Per Pixel Shader value-1.000 - 1.000
r1_software_skinning0 - 2
r1_ssa_lod_aControls the level of detail (LOD) in the game world16.000 - 96.000
r1_ssa_lod_bControls the level of detail (LOD) in the game world16.000 - 64.000
R2 - SM3.0 (DX9.0c)
СommandCommand descriptionCommand's argument
r2_aa"Pseudo-smoothing" on dynamic lighting'on/off' or '1/0'
r2_aa_breakDistance at which the "Pseudo-smoothing" effect works0.000000e+00, 0.000000e+00, 0.000000e+00 - 1.000000e+00, 1.000000e+00, 1.000000e+00
r2_aa_kernelThe basic value of the "Pseudo-smoothing" effect0.300 - 0.700
r2_aa_weightControls the blurring of the fake AA more accurately0.000000e+00, 0.000000e+00, 0.000000e+00 - 1.000000e+00, 1.000000e+00, 1.000000e+00
r2_allow_r1_lights'on/off' or '1/0'
r2_detail_bumpDetail textures'on/off' or '1/0'
r2_dof
r2_dof_enableEnables depth of field'on/off' or '1/0'
r2_dof_radiusDoesn't work. In vanilla game that command controls blur radius0.05 - 1.0
r2_dof_skySky depth-10000.0 - 10000.0
r2_drops_controlControls rain drops shader0.000000e+00, 0.000000e+00, 0.000000e+00 - 1.000000e+00, 2.000000e+00, 1.000000e+00
r2_exp_donttest_shad'on/off' or '1/0'
r2_giGlobal illumination'on/off' or '1/0'
r2_gi_clipGlobal illumination effect range0.000 - 0.100
r2_gi_depthShadow depth of the global illumination effect1 - 5
r2_gi_photonsNumber of rays to trace the global illumination effect8 - 256
r2_gi_reflReflectivity of global illumination effect surfaces0.001 - 0.990
r2_gloss_factorSurface gloss level0.001 - 10.000
r2_gloss_minMinimal gloss level0.001 - 1.0
r2_ls_bloom_fastIn theory, this should enable faster bloom implementation, yet it doesn't work correctly'on/off' or '1/0'
r2_ls_bloom_kernel_bDetermines the level of shading (haze) from the HDR and Bloom0.010 - 1.000
r2_ls_bloom_kernel_gBloom 'radius'. Higher values results in softer bloom1.0 - 7.0
r2_ls_bloom_kernel_scaleBloom scale0.05 - 2.0
r2_ls_bloom_speed0.000 - 100.000
r2_ls_bloom_thresholdBrightness threshold0.0 - 1.0
r2_ls_depth_biasControls the range of light sources-0.500 - 0.500
r2_ls_depth_scaleControls the effect of lighting on shadows0.500 - 1.500
r2_ls_dsm_kernel0.100 - 3.000
r2_ls_psm_kernel0.100 - 3.000
r2_ls_squality0.500 - 1.000
r2_ls_ssm_kernel0.100 - 3.000
r2_mask_controlControls gasmask shader0.000000e+00, 0.000000e+00, 0.000000e+00, 0.000000e+00 - 1.000000e+01, 3.000000e+00, 1.000000e+00, 1.000000e+00
r2_mblurMotion blur intensity0.0 - 1.0
r2_mblur_enabledEnables motion blur effect'on/off' or '1/0'
r2_parallax_hParallax strength0.0 - 0.5
r2_qsync0 - 1
r2_shadow_cascede_oldEnables 'SoC-like' shadow mapping'on/off' or '1/0'
r2_slight_fade0.200 - 1.000
r2_smaaSubpixel Morphological Anti-aliasingoff
low
medium
high
ultra
r2_soft_particlesSoft particles'on/off' or '1/0'
r2_soft_waterSoft Water'on/off' or '1/0'
r2_ss_sunshafts_lengthLength of screen-space sun rays0.2 - 1.5
r2_ss_sunshafts_radius0.500 - 2.000
r2_ssa_lod_aLevel of detail of dynamic objects16.0 - 96.0
r2_ssa_lod_bLevel of detail of static objects32.0 - 96.0
r2_ssaoScreen space ambient occlusion effect qualityst_opt_off
st_opt_low
st_opt_medium
st_opt_high
st_opt_ultra
r2_ssao_blurDoesn't work.'on/off' or '1/0'
r2_ssao_half_dataEnables half-resolution depth buffer for AO'on/off' or '1/0'
r2_ssao_hbaoHorizon-Based Ambient Occlusion'on/off' or '1/0'
r2_ssao_hdaoHigh-definition Ambient Occlusion'on/off' or '1/0'
r2_ssao_modeAmbient occlusion typedisabled
default
hdao
hbao
r2_ssao_opt_data'on/off' or '1/0'
r2_steep_parallaxSteep parallax occlusion mapping'on/off' or '1/0'
r2_sunShadows from the sun'on/off' or '1/0'
r2_sun_depth_far_bias-0.500 - 0.500
r2_sun_depth_far_scale0.500 - 1.500
r2_sun_depth_near_bias-0.500 - 0.500
r2_sun_depth_near_scale0.500 - 1.500
r2_sun_detailsShadows of grass and other detailed objects'on/off' or '1/0'
r2_sun_far51.000 - 180.000
r2_sun_focusFocus of sun shadows'on/off' or '1/0'
r2_sun_lumscaleSun light brightness0.0 - 3.0
r2_sun_lumscale_ambAmbient light brightness0.0 - 3.0
r2_sun_lumscale_hemiSky light brightness0.0 - 3.0
r2_sun_nearThe location of the sun from the earth1.000 - 150.000
r2_sun_near_border0.500 - 1.000
r2_sun_qualityShadow filter qualityst_opt_low
st_opt_medium
st_opt_high
st_opt_ultra
st_opt_extreme
r2_sun_tsmClarity of sun shadows'on/off' or '1/0'
r2_sun_tsm_bias-0.500 - 0.500
r2_sun_tsm_proj0.001 - 0.800
r2_sunshafts_minMin. sun rays intensity0.0 - 0.5
r2_sunshafts_modeSun rays modeoff
volumetric
screen_space
combined
r2_sunshafts_qualityQuality of the sun raysst_opt_low
st_opt_medium
st_opt_high
r2_sunshafts_valueSun rays intensity0.0 - 2.0
r2_terrain_z_prepass'on/off' or '1/0'
r2_tnmp_a0.0 - 20.0
r2_tnmp_b0.0 - 20.0
r2_tnmp_c0.0 - 20.0
r2_tnmp_d0.0 - 20.0
r2_tnmp_e0.0 - 20.0
r2_tnmp_exposureTonemap exposure0.0 - 20.0
r2_tnmp_f0.0 - 20.0
r2_tnmp_gammaTonemap gamma0.0 - 20.0
r2_tnmp_onoffEnables custom tonemapping (based on Uncharted 2 curve)0.0 - 1.0
r2_tnmp_wWhite point0.0 - 20.0
r2_tonemapEnables eye-adaptation'on/off' or '1/0'
r2_tonemap_adaptationEye-adaptation speed0.0 - 10.0
r2_tonemap_amount0.000 - 1.000
r2_tonemap_lowlumControls the tone mapping effect on dark locations0.000 - 1.000
r2_tonemap_middlegrayControls the overall appearance of the HDR effect0.000 - 2.000
r2_volumetric_lightsVolumetric light'on/off' or '1/0'
r2_wait_sleep0 - 1
r2_water_reflections'on/off' or '1/0'
r2_zfill'on/off' or '1/0'
r2_zfill_depth0.001 - 0.500
r2em0.000 - 4.000
R3 - SM4.0 (DX10) or SM4.1 (DX10.1)
СommandCommand descriptionCommand's argument
r3_dynamic_wet_surfacesWet surfaces'on/off' or '1/0'
r3_dynamic_wet_surfaces_farMax. rendering distance of the effect30 - 100
r3_dynamic_wet_surfaces_nearMin. rendering distance of the effect10 - 70
r3_dynamic_wet_surfaces_sm_resResolution of rain 'shadowmap'64 - 2048
r3_minmax_smon
off
auto
autodetect
r3_msaaMultisample Anti-aliasingst_opt_off
2x
4x
8x
r3_msaa_alphatestAlpha-test used with MSAAst_opt_off
st_opt_atest_msaa_dx10_0
st_opt_atest_msaa_dx10_1
r3_use_dx10_1Enables use of DX10.1'on/off' or '1/0'
r3_volumetric_smokeVolumetric smoke'on/off' or '1/0'
R4 - SM5.0 (DX11)
СommandCommand descriptionCommand's argument
r4_enable_tessellationTessellation'on/off' or '1/0'
r4_wireframeDisplays the wireframe of dynamic models (not working)'on/off' or '1/0'

Brightness-Contrast-Gamma

СommandCommand descriptionCommand's argumentNote
rs_c_brightnessBrightness0.500 - 1.500-
rs_c_contrastContrast0.500 - 1.500-
rs_c_gammaGamma0.500 - 1.500Not working

Video

СommandCommand descriptionCommand's argument
vid_modeScreen resolution800x600
1024x768
1280x720
1280x1024
1366x768
1600x900
1680x1050
1920x1080
vid_restartReboot the video engine-

Textures

СommandCommand descriptionCommand's argument
texture_lodTexture detailing0 - 4

AI

СommandCommand descriptionCommand's argument
ai_aim_max_angleThe maximum angle at which the angular velocity of the character when aiming is calculated by the formula0.000 - 31.416
ai_aim_min_angleThe minimum angle at which the angular velocity of the character when aiming is calculated by the formula0.000 - 31.416
ai_aim_min_speedMinimum angular velocity of the character when aiming at a target0.000 - 31.416
ai_aim_predict_timeTime of the character's prediction of a change in target position0.000 - 10.000
ai_aim_use_smooth_aim'on/off' or '1/0'
ai_die_in_anomalyEnables NPCs to die in anomalies'on/off' or '1/0'
ai_use_old_visionIncludes the old model of virtual character vision, in which random points on the surface of an ellipsoid inscribed into an axially oriented rectangular parallelepiped described around the object were taken to determine the visibility of the object.'on/off' or '1/0'
ai_use_torch_dynamic_lightsEnables the use of flashlights by non-player characters (NPCs)'on/off' or '1/0'