-
Notifications
You must be signed in to change notification settings - Fork 32
Client command reference
tmp64 edited this page Feb 22, 2021
·
10 revisions
Command | Values | Comment |
---|---|---|
m_input | -1/0/1/2 | Mouse input method: -1 - autodetect 0 - engine 1 - DirectInput (Windows-only) 2 - SDL2 Raw Input (SteamPipe-only) |
r_dynamic_ent_light | 0/1 | Enables/disables dynamic lighting (flashlight, explosions, RPG rockets). Helps on slow integrated graphics cards. |
customtimer | <interval in seconds> [timer number 1|2] | This command will start countdown of custom timer from specified second to zero and will emit sound "bell" when timer will reach 0. There are two undependent custom timers. If timer number isn't specified it is assumed 1. |
cl_messages_dump | - | Dumps currently registered user messages with their ids and lengths. Mostly needed for developers. |
update_check | - | Checks for new DLL updates. |
update_changelog | - | If an update was found, shows the changelog. |
cl_check_for_updates | 0/1 | Check for updates automatically on game launch. |
cl_enable_html_motd | 0/1 | Enables/disables support for HTML MOTDs |
cl_hidecorpses | 0/1 | Disables all player corpses. |
cl_killsound | 0/1 | Play a bell sound on kill |
default_fov | degrees (90) | Default horizontal field of view. Doesn't scale with monitor width, it's recommended to set it to 105-115 for wide screens (16:9, 16:10). |
about | - | Prints information about client library. |
Command | Values | Comment |
---|---|---|
+ljump | - | Issue long jump action to the server, that is +duck and +jump combination Needs to be bound to a key. |
+bhop | - | Issue +jump action when the floor is touched, it is issued at exact frame so you will not loose any speed if compared to other ways of doing bunny hop. Needs to be bound to a key. |
cl_bhopcap | 0/1/2 | Enables/disable bhop speed limit. Value 2 detects it automatically to match the server. |
cl_jumptype | 0/1 | Enables/disables decent jump. If 1, jump command will always be sent on exact frame the ground was hit, helps with manual bhopping. |
Command | Values | Comment |
---|---|---|
forcemodel | <slot number or player name> [model name] | Slot number (can be seen in status command output in first column, range is from 1 to 32. Model name, if specified, will be used for model replacement on given player. If empty, will reset model replacement. |
forcecolors | <slot number or player name> [top and bottom colors] | Slot number (can be seen in status command output in first column, range is from 1 to 32. Top and bottom colors, for example "90 30" (could be used without quotes too). If specified, will be used for colors replacement on given player. If empty, will reset colors replacement. |
cl_forceemenymodels | "model1; model2..." |
List of models for replacing enemy models. If you don't like various custom player models that servers likes to upload you can use cl_forceemenymodels "zombie;scientist;robo;recon;hgrunt;helmet;gordon;gman;gina;barney" to force using of default model. |
cl_forceemenycolors | "color1 color2" E.g. "90 30" |
Top and bottom colors for enemy colors replacing. |
cl_forceteammatesmodel | "model1; model2..." |
List of models for replacing teammates models. |
cl_forceteammatescolors | "color1 color2" | Top and bottom colors for teammates colors replacing. |
Command | Values | Comment |
---|---|---|
hud_centerid | 0/1 | Show other players' names in the middle of the screen |
hud_color "255 160 0" | "R G B" | Color of hud elements in RGB format. Used for all elements, but health, armor and ammo. |
hud_color1 "0 255 0" hud_color2 "255 160 0" hud_color3 "255 96 0" |
"R G B" | Colors of health and armor in RGB format. hud_color1 used for value >= 90, hud_color2 for 50 <= value < 90 and hud_color3 for 25 < value < 50. Also hud_color3 is used for armor value <= 25. Health for values <= 25 draws in red (can't be changed via cvars). |
hud_colortext | 0/1/2 | Configure color codes processing in hud, chat, death list, spectator panel, scoreboard, status bar. 0 turn off color codes processing. 1 (default) colorize text acording to color codes in chat, death list, status bar and remove color codes in hud, spectator panel, scoreboard. 2 remove color codes, but do not colorize text. |
hud_deathnotice_time | seconds (6) | How long should death notice (kill feed line) stay up for |
hud_dim | 0/1 | Enable (default)/disable dimming of health, armor, ammo and other elements when they are inactive (not changed recently). |
hud_draw | 0.0 - 1.0 | Opacity of the HUD, 0 disables it |
hud_drawhistory_time | seconds (5) | How long should ammo history stay up for in seconds |
hud_nextmap | 0/1/2 | Enable/disable nextmap show in the hud on the map end. 0 turn off nextmap show in hud. 1 show nextmap for about 30 seconds starting from 60 till the end. 2 show nextmap last 60 seconds of the map. |
hud_saytext | 0/1 | Enable/disable the chat. |
hud_scores | 0/number of lines | Maximum number of lines for on-screen HUD scoreboard, 0 to disable |
hud_scores_pos | X Y (30 50) | Position of on-screen scoreboard |
hud_speedometer | 0/1 | Enables/disables speedometer on the bottom of the screen |
hud_takesshots | 0/1 | Whether or not to automatically take screenshots at the end of a round |
hud_timer | 0/1/2/3 | Enable/disable show of timer in hud. Timer has three modes: 0 will turn timer off, 1 will show time left on current map, 2 will show time passed on current map, 3 will show your PC local time. Timer will get map time limit directly from server rules, so it will work on most servers. It will not work on some servers where paranoid admins removed server rules. Also it will not display left time if there is no time limit on server. |
hud_weapon | 0/1 | Enable/disable displaying sprite of currently selected weapon. Default off. |
Command | Values | Comment |
---|---|---|
hud_saytext_sound | 0/1 | Play a sound on new chat message |
hud_saytext_time | seconds (12) | How long for new messages should stay on the screen |
cl_mute_all_comms | 0/1 | If 1, then all communications from a player will be blocked when that player is muted, including chat messages. |
Command | Values | Comment |
---|---|---|
hud_scoreboard_mousebtn | 0/1/2 | Selects mouse button that shows the cursor. 0: none 1: MOUSE1 (default) 2: MOUSE2 |
hud_scoreboard_showavatars | 0/1 | Shows/hides avatars in the scoreboard. |
hud_scoreboard_showsteamid | 0/1 | Shows/hides SteamIDs in the scoreboard. |
hud_scoreboard_showeff | 0/1 | Shows/hides efficiency in the scoreboard. |
hud_scoreboard_effpercent | 0/1 | Sets whether or not efficiency will be displayed in percents |
hud_scoreboard_efftype | 0/1 | Selects efficiency calculation formula. 0: Kills / Deaths 1: Kills / (Deaths + 1) |
hud_scoreboard_showloss | 0/1 | Shows/hides loss value in the scoreboard. |
hud_scoreboard_size | 0/1/2 | Changes how tall should scoreboard rows be. 0: automatic based on whether or not all players can fit on the screen. (default). 1: always large. 2: always compact. |
hud_scoreboard_spacing_normal | 0/pixels | Height of rows for normal (large) mode. |
hud_scoreboard_spacing_compact | 0/pixels | Height of rows for compact mode. |
Command | Values | Comment |
---|---|---|
cl_cross_enable | 0/1 | Use custom crosshair insted of default sprite one. |
cl_cross_red | 0-255 | Red component of crosshair color. |
cl_cross_green | 0-255 | Green component of crosshair color. |
cl_cross_blue | 0-255 | Blue component of crosshair color. |
cl_cross_gap | pixels | Gap between lines. |
cl_cross_size | pixels | Length of the lines. |
cl_cross_thickness | pixels | Width of the lines. |
cl_cross_outline_thickness | pixels | Thickness of the outline. |
cl_cross_dot | 0/1 | Whether or not show a dot in the middle. |
cl_cross_t | 0/1 | If 1, changes crosshair from + to T. |
Command | Values | Comment |
---|---|---|
results_demo_autorecord | 0/1 | Enable/disable automatic recording of the demo after joining a server. Demo recording is automatically restarted after a map change. Default off. |
results_demo_keepdays | number (14) | Days to keep automatically recorded demos. They are listed in tempdemolist.txt file in the mod folder (valve or valve_language) and purged on game start. You can manually remove demos from the tempdemolist.txt file to prevent automatic deletion. Default: 14 |
results_log_chat | 0/1 | Enable/disable chat logging into a file. Default off. |
results_log_other | 0/1 | Enable/disable other messages (like kill messages and others in the console) logging into a file. Default off. |
- General
- Client
- Server