Show Cart
Your Cart is currently empty.
Home arrow Resources arrow Help! arrow Server Commands arrow CSS Server
CSS Server Commands PDF Print E-mail
Wednesday, 27 February 2008

CS Source Server Commands 

 

This is a complete list of all of the server side, client side, and console commands in Counter-Strike: Source. The things these commands control range from changing the weather effects to displaying frame rate information in real time. The first few tables list the most commonly used Client Side and Server Side Values.  The last table lists all other variables.

Client Side Commands Description
fps_max Frame rate limiter.
cl_allowdownload <0/1> Client downloads customization files. Default: 1
cl_allowupload <0/1> Client uploads customization files. Default: 1
cl_autowepswitch <0/1> Automatically switch to picked up weapons (if more powerful) Default: 1
cl_c4dynamiclight <0/1> Draw dynamic light when planted c4 flashes. Default: 0
cl_c4progressbar <0/1> Draw progress bar when defusing the C4. Default: 1
cl_cmdrate Max number of command packets sent to server per second. Default: 0
cl_updaterate Number of packets per second of updates you are requesting from the server. Default: 20
cl_crosshaircolor Color of crosshair. 0=green, 1=red, 2=blue, 3=yellow, 4=skyblue Default: 0
cl_crosshairscale Size of the crosshair. Lower value=Larger, Higher value=smaller Default: 768
cl_crosshairusealpha <0/1> Make crosshair translucent against similar colors. Default: 0
cl_customsounds <0/1> Enable customized player sound playback. Default: 0
cl_demoviewoverride <0/1> Override view during demo playback. Default: 0
cl_drawhud <0/1> Enable the rendering of the hud. sv_cheats must be enabled to disable hud. Default: 1
cl_showtextmsg <0/1> Enable/disable text messages printing on the screen. Default: 1

 

Server Side Commands Description
hostname The name of the server.
sv_password Set server password. Leave blank to disable.
mp_friendlyfire <0/1> Turn on/off friendlyfire. Default: off
mp_footsteps <0/1> Turn on/off footsteps. Default: on
mp_autoteambalance <0/1> Force clients to auto-join the opposite team if they are not balanced. Default: on
mp_autokick <0/1> Kick idle/team-killing players. Default: off
mp_flashlight <0/1> Turn on/off the ability for clients to use flashlight. Default: off
mp_tkpunish <0/1> Punish TK'ers on next round? Default: on
mp_forcecamera <0/1> Force dead players to first person mode, effectively disabling freelook. Default: off
sv_alltalk <0/1> Players can hear all other players, no team restrictions. Default: off
sv_pausable <0/1> Can the server be paused Default: 0
sv_consistency <0/1> Force cleints to pass consistency check for critical files before joining server? Default: 0
sv_cheats <0/1> Allow cheats on server. Default: 0
sv_gravity <0/1> World Gravity Default: 800
sv_maxvelocity Maximum speed any ballistically moving object is allowed to attain per axis. Default: 3500
sv_unlag <0/1> Enables player lag compensation. Default: 1
sv_voicecodec Specifies which voice codec DLL to use in a game. Set to the name of the DLL without the extension.. Default: vaudio_miles
sv_allowupload <0/1> Allow clients to upload their custom decals to the server. Default: 1
sv_allowdownload <0/1> Allow clients to downnload files. Default: 1
sv_maxspeed Maximum speed a player can move. Default: 320
mp_limitteams <0-20> Max # of players 1 team can have over another. Default: 2
mp_hostagepenalty <##> How many hostages a Terrorist can kill before being kicked, 0 to disable. Default: 5
sv_voiceenable <0/1> Allow clients to use mic. Default: 1
mp_allowspectators <0/1> Allow spectators on the server. Default: 1
mp_chattime <0-120> amount of time in seconds players can chat after the game is over. Lower value = faster map load change. Default: 10
sv_timeout <##> After this many seconds without a message from a client, the client is dropped. Default: 65

Rcon Cvars
rcon_password Set rcon passsword. Leave blank to disable rcon
sv_rcon_banpenalty <mins> Number of minutes to ban users who fail rcon authentication. Default: 0
sv_rcon_maxfailures <0-20> Max number of times a user can fail rcon authentication before being banned. Default: 10
sv_rcon_minfailures <0-20> Number of times a user can fail rcon authentication in sv_rcon_minfailuretime before being banned. Default: 5
sv_rcon_minfailuretime <1-seconds> Number of seconds to track failed rcon authentications. Default: 30

Round Cvars
mp_freezetime <0-60> Time in seconds to keep players frozen when the round starts. Default: 6
mp_roundtime <1-9> How much time in minutes does a round last. Default: 5
mp_startmoney <800-16000> Amount of money each player gets when they reset (16000 max) Default: 800
mp_c4timer <10-90> The amount of time in seconds before bomb explodes after planted. Default: 45
mp_fraglimit <##> Amount of frags a player can exceed before changing maps. Default: 0
mp_maxrounds <##> Amount of round to play before server changes maps. Default: 0
mp_winlimit <0-20> Max number of rounds one team can win before server changes maps. Default: 0
mp_playerid <0/1/2> Controls what information player see in the status bar: 0 all names; 1 team names; 2 no names. Default: 0
mp_spawnprotectiontime Time in seconds to Kick players who team-kill after round restart. Default: 5

Bandwidth Rates
sv_minrate <0-25000> Min bandwidth rate allowed on server. Default: 0 (unlimited)
sv_maxrate <0-25000> Max bandwidth rate allowed on server. Default: 0 (unlimited)
decalfrequency Amount of time in seconds a player can spray their decal. Default: 10
sv_maxupdaterate Maximum updates per second that the server will allow. Default: 60
sv_minupdaterate Minimum updates per second that the server will allow. Default: 10


Server logging
log <on/off> Enable server logging? Default: off
sv_logbans <0/1> Log server bans in the server logs. Default: 0
sv_logecho <0/1> Echo log information to the console. Default: 1
sv_logfile <0/1> Log server information in the log file. Default: 1
sv_log_onefile <0/1> Log server information to only one file. Default: 0
sv_logsdir Folder in the game directory where server logs will be stored.

SourceTV
tv_enable <0|1> Activates SourceTV on local game server, SourceTV bot will appear as spectator client after next changelevel (master only).
tv_name <name> Sets SourceTV name as it appears in server browser and scoreboard (master only).
tv_title <text> Sets a SourceTV broadcast title shown in the spectator GUI
tv_maxclients <0..255> Sets maximum client number for local SourceTV server/proxy (default 128).
tv_stop Stops broadcasting the game via SourceTV.
tv_status Shows SourceTV specific information.
tv_clients Shows a list of all spectator clients connect to local SourceTV server
tv_msg <text> Send a HUD message to all connected SourceTV spectator clients
tv_retry Reconnects the SourceTV relay proxy to last known address (relay only).
tv_autoretry <0|1> If enabled, SourceTV relay proxies try to reconnect to last known server after connection was lost.
tv_timeout <seconds> Sets SourceTV relay proxy connection timeout in seconds. If a connection times out, the relay proxy tries to reconnect automatically.
tv_delay <seconds> Source TV broadcast delay in seconds (master only).
tv_delaymapchange <0|1> Delays the map change on game server until rest of buffered game has been broadcasted
tv_port <port> Set the SourceTV host port (default 27020). Must be set as srcds start parameter.
tv_maxrate <bytes> Sets the maximum bandwidth spend per client in bytes/second (default 5000)
tv_snapshotrate <n> Sets world snapshots broadcasted per second by SourceTV (master only).
tv_password <password> Sets required password for connecting spectators.
tv_relaypassword <password> Sets required password for connecting relay proxies.
tv_record <filename> Starts a SourceTV demo recording that records all entities & events (master only)
tv_stoprecord Stops SourceTV demo recording (master only)
tv_autorecord <0|1> Automatically records every game, demo file name format is auto-YYYYMMDD-hhmm-map.dem
tv_debug <0|1> Shows additional debugging messages
tv_dispatchmode <0|1|2> Sets Source client dispatch mode for connecting clients: 0=never, 1=if appropriate, 2=always
tv_overrideroot <0|1> Overrides the master IP broadcast to spectators with a local IP.
tv_relayvoice <0|1> If enabled, allow player voice chat if broadcasted (master only)
tv_transmitall <0|1> By default entities and events outside of the auto-director view are removed from SourceTV broadcasts to save bandwidth. If tv_transmitall is enabled, the whole game is transmitted and spectators can switch their view to any player they want. This option increases bandwidth requirement per spectator client by factor 2 to 3.
tv_chattimelimit <seconds> Limits spectators to chat only every n seconds
tv_chatgroupsize <n> Set chat group size to n spectators. Only spectators in the same chat group can speak to each other. Chat groups are turned off with "tv_chatgroupsize 0" and everybody can speak to everybody. Setting chat groups helps reducing chatter noise and saves some bandwidth.
tv_chatgroup <name> Allows spectators to choose their chat group. If no name if given the current chat group is shown (client only)
tv_nochat <0|1> Disables other spectators chat lines (client only)
tv_allow_static_shots <0|1> Allows auto-director to choose fixed camera shots (master only)
tv_allow_camera_man <0|1> Allows spectator clients on game server to become SourceTV camera men (master only)
-nohltv (Command Line Variable)
-tvdisable Disables all SourceTV features on this game server. (Command Line Variable)
-tvmasteronly SourceTV can only serve one client and can't be used as relay proxy. (Command Line Variable)

Operation
sv_lan <0/1> 0=Public/LAN, 1=LAN Default: 0
sv_region Geographic location of the server.
-1 World
 0 US East coast
 1 US West coast
 2 South America
 3 Europe
 4 Asia
 5 Australia
 6 Middle East
 7 Africa
sv_contact Contact email for server sysop


Other Variables Description
_fov
 
Automates fov command to server.
_restart
 
Shutdown and restart the engine.
addip
 
Add an IP address to the ban list.
adsp_alley_min
 
 
adsp_courtyard_min
 
 
adsp_debug
 
 
adsp_door_height
 
 
adsp_duct_min
 
 
adsp_hall_min
 
 
adsp_low_ceiling
 
 
adsp_opencourtyard_min
 
 
adsp_openspace_min
 
 
adsp_openstreet_min
 
 
adsp_openwall_min
 
 
adsp_room_min
 
 
adsp_street_min
 
 
adsp_tunnel_min
 
 
adsp_wall_height
 
 
ai_auto_contact_solver
 
 
ai_clear_bad_links
 
Clears bits set on nav links indicating link is unusable
ai_debug_assault
 
 
ai_debug_directnavprobe
 
 
ai_debug_doors
 
 
ai_debug_dyninteractions
 
Debug the NPC dynamic interaction system.
ai_debug_efficiency
 
 
ai_debug_enemies
 
 
ai_debug_expressions
 
Show random expression decisions for NPCs.
ai_debug_follow
 
 
ai_debug_loners
 
 
ai_debug_looktargets
 
 
ai_debug_los
 
NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'l
ai_debug_nav
 
 
ai_debug_node_connect
 
Debug the attempted connection between two nodes
ai_debug_ragdoll_magnets
 
 
ai_debug_shoot_positions
 
 
ai_debug_speech
 
 
ai_debug_squads
 
 
ai_debug_think_ticks
 
 
ai_debugscriptconditions
 
 
ai_disable
 
Bi-passes all AI logic routines and puts all NPCs into their idle animations. Can be used to get NPCs out of your way and to t
ai_drawbattlelines
 
 
ai_dump_hints
 
 
ai_efficiency_override
 
 
ai_follow_use_points
 
 
ai_follow_use_points_when_movi
ng
 
ai_lead_time
 
 
ai_LOS_mode
 
 
ai_moveprobe_debug
 
 
ai_moveprobe_jump_debug
 
 
ai_moveprobe_usetracelist
 
 
ai_next_hull
 
Cycles through the various hull sizes. Currently selected hull size is written to the screen. Controls which connections are
ai_no_local_paths
 
 
ai_no_node_cache
 
 
ai_no_select_box
 
 
ai_no_steer
 
 
ai_no_talk_delay
 
 
ai_nodes
 
Toggles node display. First call displays the nodes for the given network as green objects. Second call displays the nodes a
ai_norebuildgraph
 
 
ai_path_adjust_speed_on_immedi
ate_turns
 
ai_path_insert_pause_at_est_en
d
 
ai_path_insert_pause_at_obstru
ction
 
ai_reaction_delay_alert
 
 
ai_reaction_delay_idle
 
 
ai_rebalance_thinks
 
 
ai_reloadresponsesystems
 
Reload all response system scripts.
ai_report_task_timings_on_limi
t
 
ai_resume
 
If NPC is stepping through tasks (see ai_step ) will resume normal processing.
ai_sequence_debug
 
 
ai_set_move_height_epsilon
 
Set how high AI bumps up ground walkers when checking steps
ai_shot_bias
 
 
ai_shot_bias_max
 
 
ai_shot_bias_min
 
 
ai_shot_stats
 
 
ai_shot_stats_term
 
 
ai_show_connect
 
Displays the allowed connections between each node for the currently selected hull type. Hulls are color code as follows
ai_show_connect_fly
 
Displays the allowed connections between each node for the currently selected hull type. Hulls are color code as follows
ai_show_connect_jump
 
Displays the allowed connections between each node for the currently selected hull type. Hulls are color code as follows
ai_show_graph_connect
 
Toggles graph connection display for the node that the player is looking at. Nodes that are connected to the selected node by
ai_show_grid
 
Draw a grid on the floor where looking.
ai_show_hints
 
Displays all hints as small boxes Blue - hint is available for use Red - hint is currently being used by an NPC Orange -
ai_show_hull
 
Displays the allowed hulls between each node for the currently selected hull type. Hulls are color code as follows
ai_show_hull_attacks
 
 
ai_show_node
 
Highlight the specified node
ai_show_think_tolerance
 
 
ai_show_visibility
 
Toggles visibility display for the node that the player is looking at. Nodes that are visible from the selected node will be d
ai_simulate_task_overtime
 
 
ai_spread_cone_focus_time
 
 
ai_spread_defocused_cone_multi
plier
 
ai_spread_pattern_focus_time
 
 
ai_step
 
NPCs will freeze after completing their current task. To complete the next task, use 'ai_step' again. To resume processing no
ai_think_limit_label
 
 
ai_use_clipped_paths
 
 
ai_use_efficiency
 
 
ai_use_frame_think_limits
 
 
ai_use_think_optimizations
 
 
ainet_generate_report
 
Generate a report to the console.
ainet_generate_report_only
 
Generate a report to the console.
air_density
 
Changes the density of air for drag computations.
alias
 
Alias a command.