Difference between revisions of "List of useful console commands"
m |
m (Cvars, so many cvars!) |
||
Line 11: | Line 11: | ||
== List of useful console commands == | == List of useful console commands == | ||
=== cl_ commands === | === cl_ commands === | ||
− | * cl_ask_blacklist_opt_out 0/1 - turns question whether to blacklist a server after leaving after a short amount of time off/on | + | * {{cvar|cl_ask_blacklist_opt_out}} 0/1 - turns question whether to blacklist a server after leaving after a short amount of time off/on |
− | * cl_ask_favorite_opt_out 0/1 - turns question whether to favorite a server after leaving after a longer amount of time off/on | + | * {{cvar|cl_ask_favorite_opt_out}} 0/1 - turns question whether to favorite a server after leaving after a longer amount of time off/on |
− | * cl_autoreload 0/1 - turns automatic reloading off/on | + | * {{cvar|cl_autoreload}} 0/1 - turns automatic reloading off/on |
− | * cl_autorezoom 0/1 - turns Sniper Rifle re-zoom off/on | + | * {{cvar|cl_autorezoom}} 0/1 - turns Sniper Rifle re-zoom off/on |
− | * cl_burninggibs 0/1 - burning gibs off/on | + | * {{cvar|cl_burninggibs}} 0/1 - burning gibs off/on |
− | * cl_crosshair_file - sets crosshair picture. "" is standard-crosshairs. example: "crosshair1" | + | * {{cvar|cl_crosshair_file}} - sets crosshair picture. "" is standard-crosshairs. example: "crosshair1" |
− | * cl_first_person_uses_world_model 0/1 - sets full-body awareness mode on (for use with Oculus Rift) | + | * {{cvar|cl_first_person_uses_world_model}} 0/1 - sets full-body awareness mode on (for use with Oculus Rift) |
− | * cl_drawhud 0/1 - hides/shows the HUD - ''sv_cheats 1 required'' | + | * {{cvar|cl_drawhud}} 0/1 - hides/shows the HUD - ''sv_cheats 1 required'' |
− | * cl_flipviewmodels 0/1 - sets viewmodels normal/inverted(left-handed) - ''does not work while connected to a server'' | + | * {{cvar|cl_flipviewmodels}} 0/1 - sets viewmodels normal/inverted(left-handed) - ''does not work while connected to a server'' |
− | * cl_interp - sets how far character models are interpolated (drawn away from their actual position) in the world, a good standard value for hitscan weapons is 0.034 | + | * {{cvar|cl_interp}} - sets how far character models are interpolated (drawn away from their actual position) in the world, a good standard value for hitscan weapons is 0.034 |
− | * cl_new_impact_effects 0/1 - turns new, better looking impact effects off/on, most noticeable on glass | + | * {{cvar|cl_new_impact_effects}} 0/1 - turns new, better looking impact effects off/on, most noticeable on glass |
− | * cl_ragdoll_collide 0/1 - turns ragdoll collisions on/off (client-side only) | + | * {{cvar|cl_ragdoll_collide}} 0/1 - turns ragdoll collisions on/off (client-side only) |
− | * cl_ragdoll_fade_time - sets time until ragdolls disappear (client-side only) | + | * {{cvar|cl_ragdoll_fade_time}} - sets time until ragdolls disappear (client-side only) |
− | * cl_showbackpackrarities 0/1 - turns color-coded items in trade off/on | + | * {{cvar|cl_showbackpackrarities}} 0/1 - turns color-coded items in trade off/on |
− | * cl_showfps 0/1/2 - shows framerate (off/real-time/rounded) | + | * {{cvar|cl_showfps}} 0/1/2 - shows framerate (off/real-time/rounded) |
− | * cl_showpos 0/1 - shows the map coordinates and movement speed of the player | + | * {{cvar|cl_showpos}} 0/1 - shows the map coordinates and movement speed of the player |
− | * cl_yawspeed - sets the speed at which your character turns when using the +left and +right commands | + | * {{cvar|cl_yawspeed}} - sets the speed at which your character turns when using the +left and +right commands |
− | * cl_spec_carrieditems - Shows non-standard items being carried by player you're spectating | + | * {{cvar|cl_spec_carrieditems}} - Shows non-standard items being carried by player you're spectating |
=== tf_ commands === | === tf_ commands === | ||
− | * tf_allow_player_use 0/1 - disallows/allows the +use command on a server, useful for some custom maps, standard is 0. - ''server operator only'' | + | * {{cvar|tf_allow_player_use}} 0/1 - disallows/allows the +use command on a server, useful for some custom maps, standard is 0. - ''server operator only'' |
− | * tf_allow_taunt_switch 0/1/2 - disallows/allows switching weapons during [[taunts]]. (1 = start of taunt only; 2 = at any time during the taunt) - ''server operator only'' | + | * {{cvar|tf_allow_taunt_switch}} 0/1/2 - disallows/allows switching weapons during [[taunts]]. (1 = start of taunt only; 2 = at any time during the taunt) - ''server operator only'' |
− | * tf_damage_disablespread 0/1 - turns random damage-spread (+-10%) for weapons off/on - ''server operator only'' | + | * {{cvar|tf_damage_disablespread}} 0/1 - turns random damage-spread (+-10%) for weapons off/on - ''server operator only'' |
− | * tf_dingaling_pitchmaxdmg - sets the pitch when doing maximum damage with your weapon, a lower pitch is recommended in most cases, standard is 100 | + | * {{cvar|tf_dingaling_pitchmaxdmg}} - sets the pitch when doing maximum damage with your weapon, a lower pitch is recommended in most cases, standard is 100 |
− | * tf_dingaling_pitchmindmg - sets the pitch when doing minimum damage with your weapon, a higher pitch is recommended in most cases, standard is 100 | + | * {{cvar|tf_dingaling_pitchmindmg}} - sets the pitch when doing minimum damage with your weapon, a higher pitch is recommended in most cases, standard is 100 |
− | * tf_dingaling_volume - sets the volume for hit sounds, standard is 1.00 | + | * {{cvar|tf_dingaling_volume}} - sets the volume for hit sounds, standard is 1.00 |
− | * tf_dingaling_wav_override - allows using a custom hit sound. '''Note:''' No longer used. To use a custom hit sound, rename your sound file "hitsound.wav", and place it in the "tf/custom/my_custom_stuff/sound/ui/" folder (The folder name "my_custom_stuff" is of your choosing) | + | * {{cvar|tf_dingaling_wav_override}} - allows using a custom hit sound. '''Note:''' No longer used. To use a custom hit sound, rename your sound file "hitsound.wav", and place it in the "tf/custom/my_custom_stuff/sound/ui/" folder (The folder name "my_custom_stuff" is of your choosing) |
− | * tf_dingalingaling_repeat_delay - Limits how often the dingalingaling sound can play (default 0) | + | * {{cvar|tf_dingalingaling_repeat_delay}} - Limits how often the dingalingaling sound can play (default 0) |
− | * tf_dingalingaling 0/1 - turns weapon hit sound off/on | + | * {{cvar|tf_dingalingaling}} 0/1 - turns weapon hit sound off/on |
− | * tf_forced_holiday 0/1/2/3 - enables holiday mode (0 = default; 1 = birthday; 2 = halloween; 3 = Christmas) - ''server operator only'' | + | * {{cvar|tf_forced_holiday}} 0/1/2/3 - enables holiday mode (0 = default; 1 = birthday; 2 = halloween; 3 = Christmas) - ''server operator only'' |
− | * tf_medieval 0/1 - enables [[Medieval mode]] on the server, requires map change to take effect - ''server operator only'' | + | * {{cvar|tf_medieval}} 0/1 - enables [[Medieval mode]] on the server, requires map change to take effect - ''server operator only'' |
− | * tf_medigun_autoheal 0/1 - turns automatic healing without holding the left mouse button off/on | + | * {{cvar|tf_medigun_autoheal}} 0/1 - turns automatic healing without holding the left mouse button off/on |
− | * tf_medieval_autorp 0/1 - enables/disables automatic medieval-style text modification in the chat box | + | * {{cvar|tf_medieval_autorp}} 0/1 - enables/disables automatic medieval-style text modification in the chat box |
− | * tf_medieval_thirdperson 0/1 - toggles third person view during Medieval mode | + | * {{cvar|tf_medieval_thirdperson}} 0/1 - toggles third person view during Medieval mode |
− | * tf_overtime_nag 0/1 - turns [[Administrator responses|endless shouting]] of "OVERTIME!" in Overtime off/on - ''server operator only'' | + | * {{cvar|tf_overtime_nag}} 0/1 - turns [[Administrator responses|endless shouting]] of "OVERTIME!" in Overtime off/on - ''server operator only'' |
− | * tf_playergib 0/1/2 - handles the frequency of [[Gibs|gibbing]]. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) - ''server operator only'' | + | * {{cvar|tf_playergib}} 0/1/2 - handles the frequency of [[Gibs|gibbing]]. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) - ''server operator only'' |
− | *tf_romevision_opt_in 1 | + | * {{cvar|tf_romevision_opt_in}} 1 |
− | *tf_romevision_skip_prompt 1 | + | * {{cvar|tf_romevision_skip_prompt}} 1 |
− | * tf_taunt_first_person 0/1 - taunts are in first person for full-body awareness mode (for use with Oculus Rift) | + | * {{cvar|tf_taunt_first_person 0/1 - taunts are in first person for full-body awareness mode (for use with Oculus Rift) |
− | * tf_use_fixed_weaponspreads 0/1 - turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop on/off - ''server operator only'' | + | * {{cvar|tf_use_fixed_weaponspreads}} 0/1 - turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop on/off - ''server operator only'' |
− | * tf_weapon_criticals 0/1 - turns random criticals off/on - ''server operator only'' | + | * {{cvar|tf_weapon_criticals}} 0/1 - turns random criticals off/on - ''server operator only'' |
=== sv_ commands === | === sv_ commands === | ||
− | * sv_cheats 0/1 - turns [[cheats]] off/on - ''server operator only'' | + | * {{cvar|sv_cheats}} 0/1 - turns [[cheats]] off/on - ''server operator only'' |
− | * sv_lan 0/1- cvar for local area network - ''server operator only'' | + | * {{cvar|sv_lan}} 0/1- cvar for local area network - ''server operator only'' |
− | * sv_password - cvar for password protecting a server - ''server operator only'' | + | * {{cvar|sv_password}} - cvar for password protecting a server - ''server operator only'' |
− | * sv_pure 0/1/2 - cvar for managing custom content - ''server operator only'' | + | * {{cvar|sv_pure}} 0/1/2 - cvar for managing custom content - ''server operator only'' |
=== mp_ commands === | === mp_ commands === | ||
− | * mp_autoteambalance - cvar for automatic team balancing. - ''server operator only'' | + | * {{cvar|mp_autoteambalance}} - cvar for automatic team balancing. - ''server operator only'' |
− | * mp_disable_respawn_times - cvar for respawn times. - ''server operator only'' | + | * {{cvar|mp_disable_respawn_times}} - cvar for respawn times. - ''server operator only'' |
− | * mp_idledealmethod - cvar for managing idle players. - ''server operator only'' | + | * {{cvar|mp_idledealmethod}} - cvar for managing idle players. - ''server operator only'' |
* mp_restartgame - restarts the round and resets the round time. - ''server operator only'' | * mp_restartgame - restarts the round and resets the round time. - ''server operator only'' | ||
− | * mp_teams_unbalance_limit - cvar for team force balance. - ''server operator only'' | + | * {{cvar|mp_teams_unbalance_limit}} - cvar for team force balance. - ''server operator only'' |
− | * mp_timelimit - cvar for map timelimit. - ''server operator only'' | + | * {{cvar|mp_timelimit}} - cvar for map timelimit. - ''server operator only'' |
− | * mp_usehwmmodels 1 & mp_usehwmvcds 1 - makes use of the hardware morph class heads used in the 'Meet the Team' videos. | + | * {{cvar|mp_usehwmmodels}} 1 & {{cvar|mp_usehwmvcds}} 1 - makes use of the hardware morph class heads used in the 'Meet the Team' videos. |
− | * mp_waitingforplayerscancel 1 - cancels "waiting for players..." time - ''server operator only'' | + | * {{cvar|mp_waitingforplayerscancel}} 1 - cancels "waiting for players..." time - ''server operator only'' |
− | * mp_friendlyfire 0/1 - Toggles friendly fire. | + | * {{cvar|mp_friendlyfire}} 0/1 - Toggles friendly fire. |
=== hud_ commands === | === hud_ commands === | ||
− | * hud_combattext 0/1 - turns the damage text above enemies off/on | + | * {{cvar|hud_combattext}} 0/1 - turns the damage text above enemies off/on |
− | * hud_combattext_batching 0/1 - turns the damage text above players adding together within a 0.10s interval off/on | + | * {{cvar|hud_combattext_batching}} 0/1 - turns the damage text above players adding together within a 0.10s interval off/on |
− | * hud_combattext_healing 0/1 - turns the healed text above teammates off/on | + | * {{cvar|hud_combattext_healing}} 0/1 - turns the healed text above teammates off/on |
− | * hud_combattext_doesnt_block_overhead_text 0/1 - turns overwriting the particle effects used for critical hits and mini-crits off/on | + | * {{cvar|hud_combattext_doesnt_block_overhead_text}} 0/1 - turns overwriting the particle effects used for critical hits and mini-crits off/on |
* hud_reloadscheme - use this to fix various HUD-color errors or lingering Crit-effects | * hud_reloadscheme - use this to fix various HUD-color errors or lingering Crit-effects | ||
Line 86: | Line 86: | ||
* explode - Commit suicide. (by exploding into gibs) | * explode - Commit suicide. (by exploding into gibs) | ||
* kill - Commit suicide. | * kill - Commit suicide. | ||
− | * fov_desired 75-90 - Set desired field of view. (higher values show more of the battlefield at the cost of fps) | + | * {{cvar|fov_desired}} 75-90 - Set desired field of view. (higher values show more of the battlefield at the cost of fps) |
* jointeam red/blue/auto/spectator - Force team. (use this if you are stuck in "dead spectator" mode when too many people attempt to join a team at the same time) | * jointeam red/blue/auto/spectator - Force team. (use this if you are stuck in "dead spectator" mode when too many people attempt to join a team at the same time) | ||
* jpeg - Take a jpeg screenshot. | * jpeg - Take a jpeg screenshot. | ||
Line 92: | Line 92: | ||
* retry - Retry connection to last server. | * retry - Retry connection to last server. | ||
* status - Display map and connection status. | * status - Display map and connection status. | ||
− | * viewmodel_fov <number> - Sets distance in which your weapons are drawn, higher values show more of the weapon and arms but may show missing parts. | + | * {{cvar|viewmodel_fov}} <number> - Sets distance in which your weapons are drawn, higher values show more of the weapon and arms but may show missing parts. |
− | * r_drawviewmodel 0/1 - Turns viewmodels on and off. | + | * {{cvar|r_drawviewmodel}} 0/1 - Turns viewmodels on and off. |
* restart - Restarts the current server. | * restart - Restarts the current server. | ||
* find <command> - A search function that displays all commands with a searched term. | * find <command> - A search function that displays all commands with a searched term. | ||
* hurtme <number> - Deals a given amount of damage (can be negative for extra health) - ''sv_cheats 1 only'' | * hurtme <number> - Deals a given amount of damage (can be negative for extra health) - ''sv_cheats 1 only'' | ||
− | * zoom_sensitivity_ratio <number> - Sets the ratio of sensitivity while zoomed in with the [[Sniper Rifle]] with accordance to actual sensitivity. | + | * {{cvar|zoom_sensitivity_ratio}} <number> - Sets the ratio of sensitivity while zoomed in with the [[Sniper Rifle]] with accordance to actual sensitivity. |
− | * net_graph <1-6> | + | * {{cvar|net_graph}} <1-6> |
** Depending on the input value, different amounts of information will be shown such as ping, fps, lerp, packet loss, etc. | ** Depending on the input value, different amounts of information will be shown such as ping, fps, lerp, packet loss, etc. | ||
− | * thirdperson - Places your view in a camera behind your character - ''sv_cheats 1 only'' | + | * thirdperson - Places your view in a camera behind your character - ''{{cvar|sv_cheats 1 only'' |
− | * thirdperson_mayamode - If active, turning in third person does not move the camera - ''sv_cheats 1 only'' | + | * {{cvar|thirdperson_mayamode}} - If active, turning in third person does not move the camera - ''{{cvar|sv_cheats}} 1 only'' |
− | * thirdperson_platformer 0/1 - If active, the mouse controls the camera while movement is controlled relative to it. | + | * {{cvar|thirdperson_platformer}} 0/1 - If active, the mouse controls the camera while movement is controlled relative to it. |
− | ** If thirdperson_mayamode isn't active, walking towards the camera will 'push' your view away. | + | ** If {{cvar|thirdperson_mayamode}} isn't active, walking towards the camera will 'push' your view away. |
* firstperson - Return to first person perspective. | * firstperson - Return to first person perspective. | ||
− | ** If thirdperson_platformer is still set to 1, you will not be able to move the camera during [[taunts]]. | + | ** If {{cvar|thirdperson_platformer}} is still set to 1, you will not be able to move the camera during [[taunts]]. |
− | * currency_give <amount> - Gives a specified amount credits in [[Mann vs. Machine (game mode)|Mann vs. Machine]] - ''sv_cheats 1 only'' | + | * currency_give <amount> - Gives a specified amount credits in [[Mann vs. Machine (game mode)|Mann vs. Machine]] - ''{{cvar|sv_cheats}} 1 only'' |
* snd_reset - used to reset sound in any game mode. In Mann vs Machine, it can be used if you can hear the sound of a [[Sentry Buster]] when there isn't one spawned. Another use is if the [[Medi Gun]] Übercharge 100% crackle sound stays with you after dying. | * snd_reset - used to reset sound in any game mode. In Mann vs Machine, it can be used if you can hear the sound of a [[Sentry Buster]] when there isn't one spawned. Another use is if the [[Medi Gun]] Übercharge 100% crackle sound stays with you after dying. | ||
Line 118: | Line 118: | ||
** Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu | ** Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu | ||
* maps - Display list of maps. | * maps - Display list of maps. | ||
− | * rcon_password <password> - gives player access to rcon commands. | + | * {{cvar|rcon_password}} <password> - gives player access to rcon commands. |
* nextlevel <mapname> - Sets the next map to be played. | * nextlevel <mapname> - Sets the next map to be played. | ||
* rcon <command> - Executes an rcon command. | * rcon <command> - Executes an rcon command. | ||
− | * rcon_address <ip address> - Sets the server address to send rcon commands to (if not set, console sends the command to the server that the player is currently in instead) | + | * {{cvar|rcon_address}} <ip address> - Sets the server address to send rcon commands to (if not set, console sends the command to the server that the player is currently in instead) |
'''For recording''' | '''For recording''' | ||
Line 129: | Line 129: | ||
* startmovie <moviename> - opens up the source recorder during demo play back and allows for high quality avi format recording | * startmovie <moviename> - opens up the source recorder during demo play back and allows for high quality avi format recording | ||
* endmovie - stops source recorder | * endmovie - stops source recorder | ||
− | * host_framerate <number> - tells the source recorder to record at a constant framerate | + | * {{cvar|host_framerate}} <number> - tells the source recorder to record at a constant framerate |
− | * host_timescale <number> - use in conjunction with | + | * {{cvar|host_timescale}} <number> - use in conjunction with {{cvar|host_framerat}}e to produce a smooth video output |
* demoui - brings up a toolbox for replays (shift+F2 will also bring up the tool box) | * demoui - brings up a toolbox for replays (shift+F2 will also bring up the tool box) | ||
Line 140: | Line 140: | ||
**<weapon_name> | **<weapon_name> | ||
***Scout | ***Scout | ||
− | **:tf_weapon_scattergun | + | **:<code>tf_weapon_scattergun</code> |
− | **:tf_weapon_handgun_scout_primary | + | **:<code>tf_weapon_handgun_scout_primary</code> |
− | **:tf_weapon_soda_popper | + | **:<code>tf_weapon_soda_popper</code> |
− | **:tf_weapon_pistol_scout | + | **:<code>tf_weapon_pistol_scout</code> |
− | **:tf_weapon_lunchbox_drink | + | **:<code>tf_weapon_lunchbox_drink</code> |
− | **:tf_weapon_jar_milk | + | **:<code>tf_weapon_jar_milk</code> |
− | **:tf_weapon_handgun_scout_secondary | + | **:<code>tf_weapon_handgun_scout_secondary</code> |
− | **:tf_weapon_bat | + | **:<code>tf_weapon_bat</code> |
− | **:tf_weapon_bat_wood | + | **:<code>tf_weapon_bat_wood</code> |
− | **:tf_weapon_bat_fish | + | **:<code>tf_weapon_bat_fish</code> |
***Soldier | ***Soldier | ||
− | **:tf_weapon_rocketlauncher | + | **:<code>tf_weapon_rocketlauncher</code> |
− | **:tf_weapon_rocketlauncher_directhit | + | **:<code>tf_weapon_rocketlauncher_directhit</code> |
− | **:tf_weapon_particle_cannon | + | **:<code>tf_weapon_particle_cannon</code> |
− | **:tf_weapon_shotgun_soldier | + | **:<code>tf_weapon_shotgun_soldier</code> |
− | **:tf_weapon_buff_item | + | **:<code>tf_weapon_buff_item</code> |
− | **:tf_weapon_raygun | + | **:<code>tf_weapon_raygun</code> |
− | **:tf_weapon_shovel | + | **:<code>tf_weapon_shovel</code> |
− | **:tf_weapon_katana | + | **:<code>tf_weapon_katana</code> |
***Pyro | ***Pyro | ||
− | **:tf_weapon_flamethrower | + | **:<code>tf_weapon_flamethrower</code> |
− | **:tf_weapon_shotgun_pyro | + | **:<code>tf_weapon_shotgun_pyro</code> |
− | **:tf_weapon_flaregun | + | **:<code>tf_weapon_flaregun</code> |
− | **:tf_weapon_fireaxe | + | **:<code>tf_weapon_fireaxe</code> |
***Demoman | ***Demoman | ||
− | **:tf_weapon_grenadelauncher | + | **:<code>tf_weapon_grenadelauncher</code> |
− | **:tf_weapon_pipebomblauncher | + | **:<code>tf_weapon_pipebomblauncher</code> |
− | **:tf_weapon_bottle | + | **:<code>tf_weapon_bottle</code> |
− | **:tf_weapon_sword | + | **:<code>tf_weapon_sword</code> |
− | **:tf_weapon_stickbomb | + | **:<code>tf_weapon_stickbomb</code> |
− | **:tf_weapon_katana | + | **:<code>tf_weapon_katana</code> |
***Heavy Weapons Guy | ***Heavy Weapons Guy | ||
− | **:tf_weapon_minigun | + | **:<code>tf_weapon_minigun</code> |
− | **:tf_weapon_shotgun_hwg | + | **:<code>tf_weapon_shotgun_hwg</code> |
− | **:tf_weapon_lunchbox | + | **:<code>tf_weapon_lunchbox</code> |
− | **:tf_weapon_fists | + | **:<code>tf_weapon_fists</code> |
***Engineer | ***Engineer | ||
− | **:tf_weapon_shotgun_primary | + | **:<code>tf_weapon_shotgun_primary</code> |
− | **:tf_weapon_sentry_revenge | + | **:<code>tf_weapon_sentry_revenge</code> |
− | **:tf_weapon_pistol | + | **:<code>tf_weapon_pistol</code> |
− | **:tf_weapon_laser_pointer | + | **:<code>tf_weapon_laser_pointer</code> |
− | **:tf_weapon_mechanical_arm | + | **:<code>tf_weapon_mechanical_arm</code> |
− | **:tf_weapon_wrench | + | **:<code>tf_weapon_wrench</code> |
− | **:tf_weapon_robot_arm | + | **:<code>tf_weapon_robot_arm</code> |
− | **:tf_weapon_pda_engineer_destroy | + | **:<code>tf_weapon_pda_engineer_destroy</code> |
− | **:tf_weapon_pda_engineer_build | + | **:<code>tf_weapon_pda_engineer_build</code> |
***Medic | ***Medic | ||
− | **:tf_weapon_syringegun_medic | + | **:<code>tf_weapon_syringegun_medic</code> |
− | **:tf_weapon_crossbow | + | **:<code>tf_weapon_crossbow</code> |
− | **:tf_weapon_medigun | + | **:<code>tf_weapon_medigun</code> |
− | **:tf_weapon_bonesaw | + | **:<code>tf_weapon_bonesaw</code> |
***Sniper | ***Sniper | ||
− | **:tf_weapon_sniperrifle | + | **:<code>tf_weapon_sniperrifle</code> |
− | **:tf_weapon_compound_bow | + | **:<code>tf_weapon_compound_bow</code> |
− | **:tf_weapon_sniperrifle_decap | + | **:<code>tf_weapon_sniperrifle_decap</code> |
− | **:tf_weapon_smg | + | **:<code>tf_weapon_smg</code> |
− | **:tf_weapon_jar | + | **:<code>tf_weapon_jar</code> |
− | **:tf_weapon_club | + | **:<code>tf_weapon_club</code> |
***Spy | ***Spy | ||
− | **:tf_weapon_revolver | + | **:<code>tf_weapon_revolver</code> |
− | **:tf_weapon_knife | + | **:<code>tf_weapon_knife</code> |
− | **:tf_weapon_pda_spy | + | **:<code>tf_weapon_pda_spy</code> |
− | **:To equip Sapper, use: "build 3 0" | + | **:To equip Sapper, use: "<code>build 3 0</code>" |
***Other | ***Other | ||
− | **:invnext, Will equip the next weapon | + | **:<code>invnext</code>, Will equip the next weapon |
− | **:invprev, Will equip previous weapon | + | **:<code>invprev</code>, Will equip previous weapon |
== See also == | == See also == |
Revision as of 19:21, 18 September 2013
“You are so small! Is funny to me!” This article is a stub. As such, it is not complete. You can help Team Fortress Wiki by expanding it. |
This article has a list of useful console commands below. Using the Developer Console, you can turn specific gameplay and graphic settings on or off, or modify their values. The console can be enabled from the advanced menu in options or via Set launch options. Any command put in the autoexec.cfg file will automatically be loaded on game launch. [citation needed]
These settings can also be put into the class-specific .cfg files in your Team Fortress 2 folder in order to create class-specific configurations.
For a complete list of Team Fortress 2 console commands and variables, see the Valve Developer Wiki.
Contents
List of useful console commands
cl_ commands
cl_ask_blacklist_opt_out
0/1 - turns question whether to blacklist a server after leaving after a short amount of time off/oncl_ask_favorite_opt_out
0/1 - turns question whether to favorite a server after leaving after a longer amount of time off/oncl_autoreload
0/1 - turns automatic reloading off/oncl_autorezoom
0/1 - turns Sniper Rifle re-zoom off/oncl_burninggibs
0/1 - burning gibs off/oncl_crosshair_file
- sets crosshair picture. "" is standard-crosshairs. example: "crosshair1"cl_first_person_uses_world_model
0/1 - sets full-body awareness mode on (for use with Oculus Rift)cl_drawhud
0/1 - hides/shows the HUD - sv_cheats 1 requiredcl_flipviewmodels
0/1 - sets viewmodels normal/inverted(left-handed) - does not work while connected to a servercl_interp
- sets how far character models are interpolated (drawn away from their actual position) in the world, a good standard value for hitscan weapons is 0.034cl_new_impact_effects
0/1 - turns new, better looking impact effects off/on, most noticeable on glasscl_ragdoll_collide
0/1 - turns ragdoll collisions on/off (client-side only)cl_ragdoll_fade_time
- sets time until ragdolls disappear (client-side only)cl_showbackpackrarities
0/1 - turns color-coded items in trade off/oncl_showfps
0/1/2 - shows framerate (off/real-time/rounded)cl_showpos
0/1 - shows the map coordinates and movement speed of the playercl_yawspeed
- sets the speed at which your character turns when using the +left and +right commandscl_spec_carrieditems
- Shows non-standard items being carried by player you're spectating
tf_ commands
tf_allow_player_use
0/1 - disallows/allows the +use command on a server, useful for some custom maps, standard is 0. - server operator onlytf_allow_taunt_switch
0/1/2 - disallows/allows switching weapons during taunts. (1 = start of taunt only; 2 = at any time during the taunt) - server operator onlytf_damage_disablespread
0/1 - turns random damage-spread (+-10%) for weapons off/on - server operator onlytf_dingaling_pitchmaxdmg
- sets the pitch when doing maximum damage with your weapon, a lower pitch is recommended in most cases, standard is 100tf_dingaling_pitchmindmg
- sets the pitch when doing minimum damage with your weapon, a higher pitch is recommended in most cases, standard is 100tf_dingaling_volume
- sets the volume for hit sounds, standard is 1.00tf_dingaling_wav_override
- allows using a custom hit sound. Note: No longer used. To use a custom hit sound, rename your sound file "hitsound.wav", and place it in the "tf/custom/my_custom_stuff/sound/ui/" folder (The folder name "my_custom_stuff" is of your choosing)tf_dingalingaling_repeat_delay
- Limits how often the dingalingaling sound can play (default 0)tf_dingalingaling
0/1 - turns weapon hit sound off/ontf_forced_holiday
0/1/2/3 - enables holiday mode (0 = default; 1 = birthday; 2 = halloween; 3 = Christmas) - server operator onlytf_medieval
0/1 - enables Medieval mode on the server, requires map change to take effect - server operator onlytf_medigun_autoheal
0/1 - turns automatic healing without holding the left mouse button off/ontf_medieval_autorp
0/1 - enables/disables automatic medieval-style text modification in the chat boxtf_medieval_thirdperson
0/1 - toggles third person view during Medieval modetf_overtime_nag
0/1 - turns endless shouting of "OVERTIME!" in Overtime off/on - server operator onlytf_playergib
0/1/2 - handles the frequency of gibbing. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) - server operator onlytf_romevision_opt_in
1tf_romevision_skip_prompt
1- {{cvar|tf_taunt_first_person 0/1 - taunts are in first person for full-body awareness mode (for use with Oculus Rift)
tf_use_fixed_weaponspreads
0/1 - turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop on/off - server operator onlytf_weapon_criticals
0/1 - turns random criticals off/on - server operator only
sv_ commands
sv_cheats
0/1 - turns cheats off/on - server operator onlysv_lan
0/1- cvar for local area network - server operator onlysv_password
- cvar for password protecting a server - server operator onlysv_pure
0/1/2 - cvar for managing custom content - server operator only
mp_ commands
mp_autoteambalance
- cvar for automatic team balancing. - server operator onlymp_disable_respawn_times
- cvar for respawn times. - server operator onlymp_idledealmethod
- cvar for managing idle players. - server operator only- mp_restartgame - restarts the round and resets the round time. - server operator only
mp_teams_unbalance_limit
- cvar for team force balance. - server operator onlymp_timelimit
- cvar for map timelimit. - server operator onlymp_usehwmmodels
1 &mp_usehwmvcds
1 - makes use of the hardware morph class heads used in the 'Meet the Team' videos.mp_waitingforplayerscancel
1 - cancels "waiting for players..." time - server operator onlymp_friendlyfire
0/1 - Toggles friendly fire.
hud_ commands
hud_combattext
0/1 - turns the damage text above enemies off/onhud_combattext_batching
0/1 - turns the damage text above players adding together within a 0.10s interval off/onhud_combattext_healing
0/1 - turns the healed text above teammates off/onhud_combattext_doesnt_block_overhead_text
0/1 - turns overwriting the particle effects used for critical hits and mini-crits off/on- hud_reloadscheme - use this to fix various HUD-color errors or lingering Crit-effects
miscellaneous commands
For players
- bind <key> <command> - Binds a key with a command.
- bind <key> - Replies with the command the key is bound to.
- unbind <key> - Unbinds a key.
- dropitem - Drop the flag or intelligence.
- explode - Commit suicide. (by exploding into gibs)
- kill - Commit suicide.
fov_desired
75-90 - Set desired field of view. (higher values show more of the battlefield at the cost of fps)- jointeam red/blue/auto/spectator - Force team. (use this if you are stuck in "dead spectator" mode when too many people attempt to join a team at the same time)
- jpeg - Take a jpeg screenshot.
- retry - Retry connection to last server.
- status - Display map and connection status.
viewmodel_fov
<number> - Sets distance in which your weapons are drawn, higher values show more of the weapon and arms but may show missing parts.r_drawviewmodel
0/1 - Turns viewmodels on and off.- restart - Restarts the current server.
- find <command> - A search function that displays all commands with a searched term.
- hurtme <number> - Deals a given amount of damage (can be negative for extra health) - sv_cheats 1 only
zoom_sensitivity_ratio
<number> - Sets the ratio of sensitivity while zoomed in with the Sniper Rifle with accordance to actual sensitivity.net_graph
<1-6>- Depending on the input value, different amounts of information will be shown such as ping, fps, lerp, packet loss, etc.
- thirdperson - Places your view in a camera behind your character - {{cvar|sv_cheats 1 only
thirdperson_mayamode
- If active, turning in third person does not move the camera -sv_cheats
1 onlythirdperson_platformer
0/1 - If active, the mouse controls the camera while movement is controlled relative to it.- If
thirdperson_mayamode
isn't active, walking towards the camera will 'push' your view away.
- If
- firstperson - Return to first person perspective.
- If
thirdperson_platformer
is still set to 1, you will not be able to move the camera during taunts.
- If
- currency_give <amount> - Gives a specified amount credits in Mann vs. Machine -
sv_cheats
1 only - snd_reset - used to reset sound in any game mode. In Mann vs Machine, it can be used if you can hear the sound of a Sentry Buster when there isn't one spawned. Another use is if the Medi Gun Übercharge 100% crackle sound stays with you after dying.
For moderators/admins
- changelevel <mapname> - Changes the map.
- cvarlist - View complete cvar list.
- exec - Execute config file.
- map <mapname> - Changes the map and restarts the server.
- Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu
- maps - Display list of maps.
rcon_password
<password> - gives player access to rcon commands.- nextlevel <mapname> - Sets the next map to be played.
- rcon <command> - Executes an rcon command.
rcon_address
<ip address> - Sets the server address to send rcon commands to (if not set, console sends the command to the server that the player is currently in instead)
For recording
Main article: Help:Recording demos
- record <demo name> - records a demo
- stop - stops the recording of a demo
- startmovie <moviename> - opens up the source recorder during demo play back and allows for high quality avi format recording
- endmovie - stops source recorder
host_framerate
<number> - tells the source recorder to record at a constant frameratehost_timescale
<number> - use in conjunction withhost_framerat
e to produce a smooth video output- demoui - brings up a toolbox for replays (shift+F2 will also bring up the tool box)
weapon commands
The "use" command is used to equip the specified weapon.
- Syntax
- use <weapon_name>
- Arguments
- <weapon_name>
- Scout
tf_weapon_scattergun
tf_weapon_handgun_scout_primary
tf_weapon_soda_popper
tf_weapon_pistol_scout
tf_weapon_lunchbox_drink
tf_weapon_jar_milk
tf_weapon_handgun_scout_secondary
tf_weapon_bat
tf_weapon_bat_wood
tf_weapon_bat_fish
- Soldier
tf_weapon_rocketlauncher
tf_weapon_rocketlauncher_directhit
tf_weapon_particle_cannon
tf_weapon_shotgun_soldier
tf_weapon_buff_item
tf_weapon_raygun
tf_weapon_shovel
tf_weapon_katana
- Pyro
tf_weapon_flamethrower
tf_weapon_shotgun_pyro
tf_weapon_flaregun
tf_weapon_fireaxe
- Demoman
tf_weapon_grenadelauncher
tf_weapon_pipebomblauncher
tf_weapon_bottle
tf_weapon_sword
tf_weapon_stickbomb
tf_weapon_katana
- Heavy Weapons Guy
tf_weapon_minigun
tf_weapon_shotgun_hwg
tf_weapon_lunchbox
tf_weapon_fists
- Engineer
tf_weapon_shotgun_primary
tf_weapon_sentry_revenge
tf_weapon_pistol
tf_weapon_laser_pointer
tf_weapon_mechanical_arm
tf_weapon_wrench
tf_weapon_robot_arm
tf_weapon_pda_engineer_destroy
tf_weapon_pda_engineer_build
- Medic
tf_weapon_syringegun_medic
tf_weapon_crossbow
tf_weapon_medigun
tf_weapon_bonesaw
- Sniper
tf_weapon_sniperrifle
tf_weapon_compound_bow
tf_weapon_sniperrifle_decap
tf_weapon_smg
tf_weapon_jar
tf_weapon_club
- Spy
tf_weapon_revolver
tf_weapon_knife
tf_weapon_pda_spy
- To equip Sapper, use: "
build 3 0
"
- Other
invnext
, Will equip the next weaponinvprev
, Will equip previous weapon
- <weapon_name>