CS2 Viewmodel and Weapons Commands

Browse all CS2 console commands and variables related to viewmodel and weapon behavior. This group includes commands for weapon position, viewmodel offsets, field of view, hand placement, animations, and other weapon display settings.

If you want to change which side your weapon appears on, see my How to Switch Weapon Hand in Counter-Strike 2 guide. It covers hand switching, console commands, binds, and related viewmodel settings.

CS2 Viewmodel and Weapons Command List

Use the filter below to find a specific viewmodel or weapon command. The table includes each entry's description, default value, type, and flags, making it easier to compare related settings and find the command you need.

Filter this group
- of 90
sv_cheats Works only with sv_cheats 1, so on your own server or in offline practice. On a matchmaking server it does nothing.
saved to config The game writes the value to your config, so it survives a restart. Everything without this mark goes back to its default when you close the game.
Command Description Default Type Flags
-lookatweapon Starts and stops the weapon inspect action. — cmd
+lookatweapon Starts and stops the weapon inspect action. — cmd
ammo_338mag_max Sets the maximum reserve ammo for the .338 Magnum ammo type. 30 cvar
ammo_357sig_max Sets the maximum reserve ammo for the .357 SIG ammo type. 52 cvar
ammo_357sig_min_max Sets the maximum reserve ammo for the .357 SIG Min ammo type. 12 cvar
ammo_357sig_p250_max Sets the maximum reserve ammo for the P250 .357 SIG ammo type. 26 cvar
ammo_357sig_small_max Sets the maximum reserve ammo for the .357 SIG Small ammo type. 24 cvar
ammo_45acp_max Sets the maximum reserve ammo for the .45 ACP ammo type. 100 cvar
ammo_50AE_max Sets the maximum reserve ammo for the .50 AE ammo type. 35 cvar
ammo_556mm_box_max Sets the maximum reserve ammo for the 5.56 mm Box ammo type. 200 cvar
ammo_556mm_max Sets the maximum reserve ammo for the 5.56 mm ammo type. 90 cvar
ammo_556mm_small_max Sets the maximum reserve ammo for the 5.56 mm Small ammo type. 40 cvar
ammo_57mm_max Sets the maximum reserve ammo for the 5.7 mm ammo type. 100 cvar
ammo_762mm_max Sets the maximum reserve ammo for the 7.62 mm ammo type. 90 cvar
ammo_9mm_max Sets the maximum reserve ammo for the 9 mm ammo type. 120 cvar
ammo_buckshot_max Sets the maximum reserve ammo for buckshot. 32 cvar
ammo_grenade_limit_default Sets the default carry limit for an individual grenade type. 1 cvar
ammo_grenade_limit_flashbang Sets the maximum number of flashbangs a player can carry. 2 cvar
ammo_grenade_limit_total Sets the maximum total number of grenades a player can carry. 4 cvar
ammo_item_limit_adrenaline Sets the carry limit for adrenaline items. 5 cvar
ammo_item_limit_healthshot Sets the maximum number of healthshots a player can carry. 4 cvar
autobuy Attempts to buy items in the order defined by cl_autobuy. — cmd
buymenu Shows or hides the main buy menu. — cmd
buyrandom Buys a random primary and secondary weapon, mainly for Deathmatch. — cmd
cl_autobuy Defines the item purchase order used by the autobuy command. vesthelm vest m4a1 ak47 famas galilar mp7 nova defuser cvar
cl_buymenu_ct_nextround_high Sets the high-money threshold used by the CT next-round buy-menu estimate. 5000 cvar saved to config
cl_buymenu_ct_nextround_low Sets the low-money threshold used by the CT next-round buy-menu estimate. 1400 cvar saved to config
cl_buymenu_t_nextround_high Sets the high-money threshold used by the T next-round buy-menu estimate. 5000 cvar saved to config
cl_buymenu_t_nextround_low Sets the low-money threshold used by the T next-round buy-menu estimate. 1400 cvar saved to config
cl_buywheel_donate_key Sets the donation key in the buy menu (0 = Left Ctrl, 1 = Left Alt, 2 = Left Shift). 0 cvar saved to config
cl_buywheel_nonumberpurchasing Prevents number keys from purchasing items through the buy wheel when enabled. false cvar saved to config
cl_debounce_zoom Prevents held secondary fire from repeatedly cycling zoom levels when enabled. true cvar saved to config
cl_dm_buyrandomweapons Gives the player a random weapon on each Deathmatch spawn when enabled. true cvar saved to config
cl_inventory_debug_tooltip Enables inventory tooltip debugging. false cvar
cl_inventory_radial_immediate_select Selects a weapon immediately when the cursor highlights it in a radial inventory menu. true cvar saved to config
cl_inventory_radial_tap_to_cycle Controls tap-to-cycle behavior in radial inventory menus. true cvar saved to config
cl_inventory_saved_filter2 Stores the currently selected inventory filter. all cvar saved to config
cl_inventory_saved_sort2 Stores the currently selected inventory sorting method. inv_sort_age cvar saved to config
cl_loadout_saved_sort Stores the selected loadout sorting method. inv_sort_age cvar saved to config
cl_paintkit_override Overrides the displayed weapon paint kit. 0 cvar sv_cheats
cl_prefer_lefthanded Sets left-handed weapon view as the player's preference. false cvar saved to config
cl_rebuy Defines the order in which the rebuy command attempts to repurchase equipment. Armor PrimaryWeapon Flashbang SmokeGrenade Defuser HEGrenade Flashbang SecondaryWeapon Mol... cvar
cl_silencer_mode Controls detachable silencers (0 = Cannot detach, 1 = Secondary fire detaches). 0 cvar saved to config
cl_sniper_auto_rezoom Automatically zooms a sniper rifle back in after firing. true cvar saved to config
cl_sniper_delay_unscope Delays automatic unscoping after a sniper shot. false cvar saved to config
cl_use_last_selected_weapon_slot_position Returns to the last selected position within a weapon slot when switching back to that slot. false cvar saved to config
cl_use_opens_buy_menu Allows the +use key to open the buy menu while the player is inside a buy zone. false cvar saved to config
cl_wallbang_heavy_threshold Sets the penetration threshold for switching from a light to a heavy wallbang tracer. 22 cvar sv_cheats
cl_weapon_debug_show_accuracy Draws a circle representing effective weapon accuracy for each shot. 0 cvar sv_cheats
cl_weapon_debug_show_accuracy_duration Sets how long the weapon accuracy debug visualization remains visible. 10 cvar sv_cheats
cl_weapon_selection_rarity_color Uses item rarity colors in the weapon-selection interface. false cvar saved to config
csm_viewmodel_max_shadow_dist Sets the maximum shadow distance for the viewmodel. 21 cvar sv_cheats
csm_viewmodel_max_visible_dist Sets the maximum visible distance used for viewmodel shadows. 1000 cvar sv_cheats
csm_viewmodel_nearz Sets the near clipping distance used for viewmodel shadows. 0.5 cvar sv_cheats
debug_purchase_defidx Purchases an item using its definition index. — cmd
dm_togglerandomweapons Toggles random weapons in Deathmatch. — cmd
invnext Switches to the next weapon or inventory item. — cmd
invnextselect Selects the next inventory item without immediately activating it. — cmd
invprev Switches to the previous weapon or inventory item. — cmd
invprevselect Selects the previous inventory item without immediately activating it. — cmd
lastinv Switches back to the previously selected weapon. — cmd
r_csgo_depth_prepass_viewmodel Includes the viewmodel in the depth pre-pass. true cvar sv_cheats
r_drawviewmodel Enables or disables rendering of the player's viewmodel. true cvar sv_cheats
rebuy Repurchases equipment using the order defined by cl_rebuy. — cmd
regenerate_weapon_skins Regenerates weapon-skin resources. — cmd sv_cheats
remove_weapon Removes the specified weapon from the player. — cmd sv_cheats
sellbackall Attempts to refund all purchased equipment. — cmd
sv_extract_ammo_from_dropped_weapons Controls extraction of ammunition from dropped weapons. false cvar
sv_strafing_inaccuracy_bias Sets the bias applied by strafing-related weapon inaccuracy. 0.5 cvar sv_cheats
sv_strafing_inaccuracy_enabled Enables strafing-related weapon inaccuracy. false cvar sv_cheats
sv_strafing_inaccuracy_scale Sets the scale of strafing-related weapon inaccuracy. 0.1 cvar sv_cheats
sv_turning_inaccuracy_angle_min Sets the minimum turning angle used by turning-related weapon inaccuracy. 4 cvar sv_cheats
sv_turning_inaccuracy_decay Sets the decay rate of turning-related weapon inaccuracy. 0.8 cvar sv_cheats
sv_turning_inaccuracy_enabled Enables turning-related weapon inaccuracy. false cvar sv_cheats
switchhands Toggles the weapon viewmodel between left and right hands. — cmd
switchhandsleft Switches the weapon viewmodel to the left hand. — cmd
switchhandsright Switches the weapon viewmodel to the right hand. — cmd
viewmodel_fov Sets the viewmodel field of view. 60 cvar saved to config
viewmodel_offset_x Sets the viewmodel horizontal X offset. 1 cvar saved to config
viewmodel_offset_y Sets the viewmodel Y offset. 1 cvar saved to config
viewmodel_offset_z Sets the viewmodel vertical Z offset. -1 cvar saved to config
viewmodel_presetpos Selects a predefined viewmodel position (1 = Desktop, 2 = Classic). 1 cvar saved to config
weapon_accuracy_forcespread Forces weapon spread to the specified value. 0 cvar
weapon_accuracy_nospread Disables weapon inaccuracy/spread. false cvar
weapon_accuracy_reset_on_deploy Resets weapon accuracy state when the weapon is deployed. false cvar sv_cheats
weapon_accuracy_shotgun_spread_patterns Enables fixed/pattern-based shotgun pellet spread. true cvar
weapon_accuracy_stack_boost_limit Applies ladder-style inaccuracy when a player is boosted by at least the specified number of stacked players. 2 cvar
weapon_air_spread_scale Multiplies airborne weapon inaccuracy; 0 makes jumping accuracy match standing accuracy. 1 cvar
weapon_debug_spread_gap Sets the gap used by weapon spread debugging visualization. 0.67 cvar sv_cheats
weapon_debug_spread_show Displays weapon accuracy debugging (1 = Accuracy box, 3 = Accuracy with dynamic crosshair). 0 cvar sv_cheats