CS2 Demos and GOTV Commands

Browse all CS2 console commands and variables related to demos, GOTV, spectating, and match playback. This group includes commands for demo recording, playback controls, observer settings, GOTV broadcasts, and other tools used to review or spectate matches.

If you need to identify players from a recorded match, use my CS2 SteamID Extractor to get player SteamIDs directly from CS2 demo files.

CS2 Demos and GOTV Command List

Use the filter below to find a specific demo or GOTV command. The table includes each entry's description, default value, type, and flags, making it easier to find commands for recording, playback, spectating, and broadcast settings.

Filter this group
- of 195
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
_record Records a demo incrementally. — cmd sv_cheats
benchframe Takes a snapshot of a specified frame during a timed demo. — cmd
camera_path_add Adds a point to the current camera path. — cmd sv_cheats
camera_path_clear_all Clears all points from the current camera path. — cmd sv_cheats
camera_path_delete Deletes a point from the current camera path. — cmd sv_cheats
camera_path_demo Plays or previews the current camera path. — cmd sv_cheats
camera_path_edit_mode Enables or disables camera path editing mode. false cvar sv_cheats
camera_path_load Loads a saved camera path. — cmd sv_cheats
camera_path_save Saves the current camera path. — cmd sv_cheats
cl_demo_predict Controls TrueView prediction during demo playback (0 = Disabled, 1 = Matching demo version only, 2 = Always). 1 cvar
cl_force_spec_hud_color_to_team Forces spectator HUD colors to use team or teammate colors. true cvar saved to config
cl_obs_interp_enable Enables smooth interpolation when switching between spectator targets. true cvar saved to config
cl_obs_interp_speed Sets spectator camera interpolation speed. 1 cvar saved to config
cl_server_graphic1_enable Enables the 360×60 server graphic shown to on-server spectators. true cvar
cl_server_graphic2_enable Enables the 220×45 server graphic shown to on-server spectators. true cvar
cl_spec_show_bindings Shows or hides spectator control bindings. true cvar
cl_spec_stats Controls spectator statistics display. true cvar
cl_spec_use_tournament_content_standards Applies tournament content standards while spectating. false cvar
cl_trueview_show_doa_predictions Makes TrueView reproduce client-predicted commands that never reached server execution because the player had already died. true cvar
cl_trueview_show_status Controls TrueView status display (0 = Never, 1 = Only on problems, 2 = Always). 2 cvar
connect_hltv Connects to a remote HLTV server. — cmd
csgo_download_match Downloads a match using its serial code and starts demo playback. — cmd
csgo_fatdemo_enable No description yet false cvar
csgo_fatdemo_output No description yet test.fatdem cvar
demo_flush Flushes demo data to disk on every network update when enabled. false cvar saved to config
demo_goto Jumps to a specified position in the currently playing demo. — cmd
demo_gotomark Jumps demo playback to the previously marked tick. — cmd
demo_gototick Jumps demo playback to a specified tick. — cmd
demo_highlight_fade_duration Sets the duration of highlight fade-in and fade-out transitions. 0.25 cvar
demo_highlight_seconds_after Sets how many seconds after a highlight event are included during highlight playback. 2 cvar
demo_highlight_seconds_before Sets how many seconds before a highlight event are included during highlight playback. 6 cvar
demo_info Prints information about the currently playing demo. — cmd
demo_marktick Marks the current demo tick for later navigation. — cmd
demo_mouse_enable_binding Sets the binding used to enable mouse control in the demo playback UI. drop cvar saved to config
demo_pause Pauses demo playback. — cmd
demo_pause_at_end Pauses when a demo reaches the end instead of returning to the main menu. true cvar
demo_pauseatservertick Pauses demo playback when render time reaches the specified server tick. — cmd
demo_quitafterplayback Quits the game after demo playback finishes. false cvar
demo_recordcommands Records console commands entered during recording into the demo file. true cvar sv_cheats
demo_resume Resumes paused demo playback. — cmd
demo_skip_to_shot_seconds_before Sets how many seconds before a selected shot the demo skips to. 2 cvar
demo_step_tick Advances demo playback by the specified number of ticks and then pauses. — cmd
demo_timescale Sets demo playback speed. — cmd
demo_togglepause Toggles demo playback between paused and running. — cmd
demo_ui_mode Sets the demo playback UI mode (0 = Disabled, 1 = Minimal, 2 = Full). 2 cvar
demolist Prints the demo sequence list. — cmd
demoui Shows or hides the demo playback interface. — cmd
gotv_theater_container Enables GOTV theater mode for the specified container; live plays top live matches. 0 cvar
listdemo Lists the contents of a demo file. — cmd
mp_forcecamera Restricts spectator camera modes available to dead players. 1 cvar
mp_spectators_max Sets the maximum number of spectators allowed. 2 cvar
mp_teamflag_1 Sets the country flag shown beside team 1 using a two-letter country code. 0 cvar
mp_teamflag_2 Sets the country flag shown beside team 2 using a two-letter country code. 0 cvar
mp_teamlogo_1 Sets the spectator-scoreboard logo for team 1. 0 cvar
mp_teamlogo_2 Sets the spectator-scoreboard logo for team 2. 0 cvar
mp_teammatchstat_1 Sets the displayed match statistic for team 1. 0 cvar
mp_teammatchstat_2 Sets the displayed match statistic for team 2. 0 cvar
mp_teammatchstat_cycletime Sets how often displayed team match statistics cycle. 45 cvar
mp_teammatchstat_holdtime Sets the minimum time a selected team match statistic remains displayed. 5 cvar
mp_teammatchstat_txt Sets the description shown for team match statistics. 0 cvar
mp_teamname_1 Overrides the name of team 1. 0 cvar
mp_teamname_2 Overrides the name of team 2. 0 cvar
mp_teamprediction_pct Sets a 1-99 prediction percentage favoring the CT team. 0 cvar
mp_teamprediction_txt Sets the text used for team prediction display. #SFUIHUD_Spectate_Predictions cvar
mp_teamscore_1 Sets the displayed series/map score for team 1. 0 cvar
mp_teamscore_2 Sets the displayed series/map score for team 2. 0 cvar
mp_teamscore_max Sets the number of map wins required to win the series. 0 cvar
nav_recorder_enabled Enables the navigation recorder. true cvar sv_cheats
nextdemo Plays the next demo in the sequence. — cmd
playcast Plays a broadcast. — cmd
playdemo Plays a recorded .dem demo file. — cmd
r_replay_post_effect Controls the replay post-processing effect. -1 cvar sv_cheats
r_spectator_flashbang_opacity Sets flashbang opacity for spectators. 0.6 cvar saved to config
record Starts recording a demo. — cmd sv_cheats
replay_death Starts an HLTV replay of the most recent death. — cmd sv_cheats
replay_debug Controls replay debugging output. 0 cvar
replay_start Starts a Source 2 TV replay using a delay or stored replay segment. — cmd sv_cheats
replay_stop Stops the active HLTV replay. — cmd
spec_autodirector Lets the spectator auto-director choose the best camera views. false cvar
spec_centerchasecam Makes chase camera mode look at the target player's center instead of eye position. false cvar saved to config
spec_freeze_deathanim_time Sets how long the death camera watches the ragdoll before entering freeze-cam. 0.8 cvar
spec_freeze_time Sets how long the observer freeze-cam remains frozen. 2 cvar
spec_freeze_time_lock Sets how long players are prevented from skipping freeze-cam. 1 cvar
spec_freeze_traveltime Sets how long freeze-cam takes to travel toward and frame its target. 0.3 cvar
spec_glow_decay_time Sets how long spectator X-ray glow takes to fade from full brightness to the silent-player level. 2 cvar
spec_glow_full_time Sets how long a noisy player remains at full X-ray glow brightness. 1 cvar
spec_glow_silent_factor Sets the X-ray glow brightness multiplier for quiet/lurking players. 0.4 cvar
spec_glow_spike_factor Sets the temporary X-ray glow brightness multiplier when a player makes noise. 1.2 cvar
spec_glow_spike_time Sets how long the noise-triggered spectator glow spike remains visible. 0 cvar
spec_goto Moves the spectator camera to specified coordinates and view angles. — cmd
spec_mode Sets the spectator camera mode. — cmd
spec_next Switches spectator view to the next player. — cmd
spec_player Spectates a player by name or player slot. — cmd
spec_pos Prints the spectator camera position and angles to the console. — cmd sv_cheats
spec_prev Switches spectator view to the previous player. — cmd
spec_replay_autostart Automatically starts Killer Replay when available. true cvar saved to config
spec_replay_bot Enables spectator HLTV replay when the killer is a bot. false cvar
spec_replay_enable Controls Killer Replay (0 = Off, 1 = Default, 2 = Force); requires an HLTV server. 0 cvar
spec_replay_leadup_time Sets how many seconds before the highlighted event are included in Killer Replay. 5.3438 cvar
spec_replay_message_time Sets how long the Killer Replay notification remains visible after death. 9.5 cvar
spec_replay_on_death Enables delayed death replay and separates replay viewers from living-player chat and voice. false cvar
spec_replay_rate_base Sets the base playback timescale for Killer Replay. 1 cvar
spec_replay_rate_limit Sets the minimum interval between replay requests. 3 cvar
spec_replay_round_delay Sets the maximum amount a round may be delayed while a player finishes watching a replay. 0 cvar
spec_replay_winddown_time Sets how many seconds after the highlighted event are included in Killer Replay. 2 cvar
spec_show_xray Enables spectator X-ray player outlines and name IDs through walls. 1 cvar saved to config
spec_usenumberkeys_nobinds Makes spectator controls and map voting use raw number keys instead of slot bindings. true cvar saved to config
startdemos Starts playing demos from the demo sequence. — cmd
stop Finishes the current demo recording. — cmd
stopdemos Stops looping the demo sequence after the current demo finishes. — cmd
sv_freeze_camera_angles Sets the fixed angles used by the freeze camera. 0 0 0 cvar
sv_freeze_camera_enabled Enables the server-defined freeze camera. false cvar
sv_freeze_camera_min_remaining Sets the minimum remaining time required for the freeze camera to activate. 3 cvar
sv_freeze_camera_position Sets the fixed position used by the freeze camera. 0 0 0 cvar
sv_grenade_trajectory_time_spectator Sets how long grenade trajectories remain visible to spectators. 4 cvar
sv_highlight_distance Sets the distance used by the server highlight system. 500 cvar
sv_highlight_duration Sets highlight duration. 3.5 cvar
sv_replay_group_id Sets the replay group to which the server uploads replay files. 0 cvar
sv_spec_hear Controls what spectators can hear (0 = Spectators only, 1 = Everyone, 2 = Spectated team, 3 = Self only, 4 = Nobody). 3 cvar
sv_spec_use_tournament_content_standards Applies tournament content standards to spectators. false cvar
sv_specaccelerate Sets spectator free-camera acceleration. 5 cvar saved to config
sv_specnoclip Enables noclip-style movement for spectators. true cvar saved to config
sv_specspeed Sets spectator free-camera movement speed. 1200 cvar saved to config
sv_vote_issue_loadbackup_spec_safe Restricts admin backup restoration to safe points in a round. true cvar
sv_vote_issue_pause_match_spec_only Restricts technical-pause initiation to admins. false cvar
timedemo Plays a demo and reports performance statistics. — cmd
timedemo_end Sets the tick at which timedemo testing ends. -1 cvar
timedemo_start Sets the tick at which timedemo testing begins. -1 cvar
timedemoquit Plays a timed demo, reports performance, and then exits. — cmd
tv_advertise_watchable Advertises GOTV as watchable through the game UI so viewers do not need to enter a password manually. false cvar
tv_allow_autorecording_index Restricts GOTV automatic recording to the specified TV index when set to 0 or higher. -1 cvar
tv_allow_camera_man_steamid Allows the specified SteamID to act as a tournament production cameraman. 0 cvar
tv_allow_camera_man_steamid2 Allows the specified SteamID to act as a second/tv tournament production cameraman. 0 cvar
tv_allow_static_shots Allows the GOTV auto-director to use fixed map cameras. true cvar
tv_autorecord Automatically records games as SourceTV/GOTV demos. false cvar
tv_autoretry Makes GOTV relay proxies retry their connection after a network timeout. true cvar
tv_broadcast Automatically broadcasts all games as GOTV demos through Steam. false cvar
tv_broadcast_keyframe_interval Sets how often keyframes and delta fragments are sent to the broadcast relay server. 3 cvar
tv_broadcast_keyframe_interval1 Sets the keyframe interval for the second broadcast relay. 3 cvar
tv_broadcast_max_requests Sets the maximum number of simultaneous HTTP requests to the broadcast relay. 20 cvar
tv_broadcast_max_requests1 Sets the maximum simultaneous HTTP requests for the second broadcast relay. 20 cvar
tv_broadcast_spew_threshold Sets the snapshot-timing threshold that triggers broadcast debug output. 0.1 cvar
tv_broadcast_startup_resend_interval Sets how often startup data is resent to the broadcast relay. 10 cvar
tv_broadcast_status Prints the current GOTV broadcast status. — cmd
tv_broadcast_url Sets the URL of the primary broadcast relay. http://localhost:8080 cvar
tv_broadcast_url1 Sets the URL of the second broadcast relay. http://localhost:8080 cvar
tv_broadcast1 Automatically broadcasts all games through the second GOTV instance. false cvar
tv_chatgroupsize Sets the default SourceTV spectator chat-group size. 0 cvar
tv_chattimelimit Sets the minimum interval between spectator chat messages. 0.2 cvar
tv_clients Lists connected SourceTV clients. — cmd
tv_debug Controls SourceTV debugging output. 0 cvar
tv_delay Sets the primary SourceTV broadcast delay in seconds. 105 cvar
tv_delay1 Sets the second SourceTV instance broadcast delay in seconds. 15 cvar
tv_delaymapchange Delays map changes until the SourceTV broadcast has completed. true cvar
tv_deltacache Controls caching of delta-encoded entity bit streams. 2 cvar
tv_dispatchmode Controls dispatching viewers to relay proxies (0 = Never, 1 = When appropriate, 2 = Always). 1 cvar
tv_enable Enables the primary SourceTV server. false cvar
tv_enable_delta_frames Uses delta frames for intermediate SourceTV storage, reducing memory usage at increased CPU cost. true cvar
tv_enable_dynamic Makes changes to tv_enable variables start or stop HLTV immediately. false cvar
tv_enable1 Enables the second SourceTV server. false cvar
tv_include_usercommands Includes player user commands in HLTV streams each tick. true cvar
tv_listen_voice_indices Sets the low 32 bits of the player-slot bitmask whose voice messages are heard through SourceTV. 0 cvar
tv_listen_voice_indices_h Sets the high 32 bits of the SourceTV voice-listening player-slot bitmask. 0 cvar
tv_maxclients Sets the maximum number of SourceTV clients. 128 cvar
tv_maxclients_relayreserved Reserves the specified number of SourceTV client slots for relay servers. 0 cvar
tv_maxrate Sets the maximum SourceTV spectator bandwidth rate; 0 means unlimited. 0 cvar
tv_mem Displays HLTV memory statistics and supports entity, top-user, and class memory queries. — cmd
tv_name Sets the SourceTV server name. SourceTV cvar
tv_nochat Prevents receiving chat messages from other SourceTV spectators. false cvar saved to config
tv_overridemaster Overrides the SourceTV master root address. false cvar
tv_password Sets the password required for clients to connect to SourceTV instance 0. 0 cvar
tv_password1 Sets the password for SourceTV instance 1; an empty value uses tv_password. 0 cvar
tv_playcast_delay_prediction Enables playcast delay prediction. true cvar
tv_playcast_delay_resync Sets how long playcast waits after a stream failure before resynchronizing. 0 cvar
tv_playcast_fragment_cache_history_length Sets how many seconds of past playcast fragments are retained. 120 cvar
tv_playcast_retry_timeout Sets how long playcast retries fragment downloads before resynchronizing. 25 cvar
tv_port Sets the network port used by SourceTV instance 0. 27020 cvar
tv_port1 Sets the network port used by SourceTV instance 1. 27021 cvar
tv_record Starts SourceTV demo recording. — cmd
tv_record_immediate Makes tv_record begin at the current moment rather than from tv_delay seconds earlier. 0 cvar
tv_relay Connects to another SourceTV server and relays its broadcast. — cmd
tv_relaypassword Sets the password used by SourceTV relay proxies. 0 cvar
tv_relayradio Controls forwarding team radio commands through SourceTV. false cvar
tv_relayvoice Controls forwarding voice data through SourceTV. true cvar
tv_retry Reconnects the SourceTV relay proxy. — cmd
tv_secure_bypass Bypasses the secure challenge on the SourceTV port. false cvar
tv_show_allchat Controls whether SourceTV receives/shows all chat. true cvar
tv_spectator_port_offset Sets the spectator port offset. 0 cvar
tv_status Displays SourceTV server status. — cmd
tv_stop Stops the SourceTV broadcast. — cmd
tv_stoprecord Stops SourceTV demo recording. — cmd
tv_timeout Sets the SourceTV connection timeout in seconds. 20 cvar
tv_title Sets the title displayed in the SourceTV spectator interface. SourceTV cvar
tv_transmitall Sends all entities to SourceTV spectators instead of only entities relevant to the director view. false cvar
tv_window_size Sets how many seconds of replay frames SourceTV keeps in memory. 16 cvar