CS2 Server Commands

Commands to enhance cs2 server features of Counter-Strike game

sc_aggregate_indirect_draw_compaction

CS2 Only

Command

sc_aggregate_indirect_draw_compaction

<0 / 1>

Enables the use of multidrawindirect...count to combine multiple draw calls into one, improving rendering performance if supported by your hardware or driver.

Command Details

sc_aggregate_indirect_draw_compaction_threshold

CS2 Only

Command

sc_aggregate_indirect_draw_compaction_threshold

<Compaction Threshold>

Sets the number of indirect draw calls in a scene that triggers draw call compaction to help improve performance.

Command Details

sc_disable_spotlight_shadows

CS2 Only

Command

sc_disable_spotlight_shadows

<0 / 1>

Turn off shadows from spotlights to improve performance on systems that struggle with shadow rendering.

Command Details

sc_dumpworld

CS2 Only

Command

sc_dumpworld

Displays a list of all objects currently loaded in the scene world to the console, helping you to debug and see what entities are active.

Command Details

sc_extended_stats

CS2 Only

Command

sc_extended_stats

<0 / 1>

Toggle the display of detailed performance statistics in the console.

Command Details

script_attach_debugger

CS2 Only

Command

script_attach_debugger

Connect the VScript Virtual Machine to the script debugger to enable debugging of VScript scripts during development or testing.

Command Details

script_find

CS2 Only

Command

script_find

<Key name>

Search for a specific key within the server's scripting environment. Use this command to help debug and examine script values on the server side.

Command Details

script_reload

CS2 Only

Command

script_reload

Reload all scripts currently active in the game. Useful for developers or debugging to apply script changes without restarting.

Command Details

script_remove_debug_filter

CS2 Only

Command

script_remove_debug_filter

<Filter name>

Removes a filter from the game debug overlay used for development and troubleshooting.

Command Details

script_remove_watch

CS2 Only

Command

script_remove_watch

<Command>

Stops watching a specific variable in the game's debug overlay, helping you debug scripts more effectively.

Command Details