Difference between revisions of "List of useful console commands"

From Team Fortress Wiki
Jump to: navigation, search
m (Weapon commands: Fixed poor wording; invnext, et al. do not use 'use')
(Updated page to a higher standard of quality, noted the recommended format for cvars in a comment)
Line 8: Line 8:
  
 
For more console commands, see [[cheats]].
 
For more console commands, see [[cheats]].
 +
 +
<!--
 +
  Formating note:
 +
 +
  CVars should be added using the cvar template.
 +
> Add parameters in '<>'
 +
>> use slashes ("/") if there are 3 or less parameters or the parameters are non-numerical
 +
>> use dashes ("-") if there are more than 3 numerical values
 +
>> use tildes ("~") if parameters use decimals
 +
>> use <seconds>, <minutes>, <text>, and <number> where applicable
 +
> Describe the cvar
 +
> Give the default value, if known.
 +
-->
 +
  
 
== List of useful console commands ==
 
== List of useful console commands ==
 
=== cl_ commands ===
 
=== cl_ commands ===
* {{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
+
* {{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
* {{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
+
* {{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
* {{cvar|cl_autoreload}} 0/1 - Turns automatic reloading off/on (can also be changed from advanced [[Options]])
+
* {{cvar|cl_autoreload}} <0/1> - Turns automatic reloading off/on (can also be changed from advanced [[Options]])
* {{cvar|cl_autorezoom}} 0/1 - Turns [[Sniper Rifle]] re-zoom off/on (can also be changed from advanced Options)
+
* {{cvar|cl_autorezoom}} <0/1> - Turns [[Sniper Rifle]] re-zoom off/on (can also be changed from advanced Options)
* {{cvar|cl_burninggibs}} 0/1 - Burning [[gibs]] off/on
+
* {{cvar|cl_burninggibs}} <0/1> - Turns burning [[gibs]] off/on
* {{cvar|cl_crosshair_file}} - Sets crosshair picture. "" is standard-crosshairs. example: "crosshair1" (can also be changed from [[Multiplayer options]])
+
* {{cvar|cl_crosshair_file}} <filename> - Sets crosshair picture. "" is standard-crosshairs. example: "crosshair1" (can also be changed from [[Multiplayer options]])
* {{cvar|cl_first_person_uses_world_model}} 0/1 - Sets full-body awareness mode off/on (for use with Oculus Rift)  
+
* {{cvar|cl_first_person_uses_world_model}} <0/1> - Sets full-body awareness mode off/on (for use with VR headsets)  
* {{cvar|cl_drawhud}} 0/1 - Hides/shows the HUD - ''{{cvar|sv_cheats}} 1 required''
+
* {{cvar|cl_drawhud}} <0/1> - Hides/shows the HUD - ''{{cvar|sv_cheats 1}} required''
* {{cvar|cl_flipviewmodels}} 0/1 - Sets viewmodels normal/inverted(left-handed) - ''does not work while connected to a server'' (can also be changed from [[advanced options]])
+
* {{cvar|cl_flipviewmodels}} <0/1> - Sets viewmodels normal/inverted(left-handed) - ''does not work while connected to a server'' (can also be changed from [[advanced options]])
* {{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
+
* {{cvar|cl_interp}} <0~1> - 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_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
* {{cvar|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)
* {{cvar|cl_ragdoll_fade_time}} - Sets time until ragdolls disappear (client-side only)
+
* {{cvar|cl_ragdoll_fade_time}} <seconds> - Sets time until ragdolls disappear (client-side only)
* {{cvar|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
* {{cvar|cl_showfps}} 0/1/2 - Shows framerate (off/real-time/rounded)
+
* {{cvar|cl_showfps}} <0/1/2> - Shows framerate (off/real-time/rounded)
* {{cvar|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
* {{cvar|cl_yawspeed}} - Sets the speed at which your character turns when using the {{cvar|+left}} and {{cvar|+right}} commands
+
* {{cvar|cl_yawspeed}} <number> - Sets the speed at which your character turns when using the {{cvar|+left}} and {{cvar|+right}} commands
* {{cvar|cl_spec_carrieditems}} - Shows non-standard items being carried by player you're spectating
+
* {{cvar|cl_spec_carrieditems}} <0/1> - Shows non-standard items being carried by player you're spectating
* {{cvar|cl_mvm_wave_status_visible_during_wave}} 0/1 - Turns HUD display always showing the robots left in a [[Mann vs. Machine (game mode)|Mann vs Machine]] wave off/on.
+
* {{cvar|cl_mvm_wave_status_visible_during_wave}} <0/1> - Turns HUD display always showing the robots left in a [[Mann vs. Machine (game mode)|Mann vs Machine]] wave off/on.
  
 
=== addcond commands ===
 
=== addcond commands ===
 
{{main|Addcond}}
 
{{main|Addcond}}
 +
{{Note|{{cvar|sv_cheats 1}} required}}
 
* {{cvar|addcond 5}} - Gives the player the ubercharged effect that can be removed if healed by Dispenser, Medic or being killed
 
* {{cvar|addcond 5}} - Gives the player the ubercharged effect that can be removed if healed by Dispenser, Medic or being killed
 
* {{cvar|addcond 11}} - Gives the player a critical effect that can be removed if healed by Dispenser, Medic or being killed
 
* {{cvar|addcond 11}} - Gives the player a critical effect that can be removed if healed by Dispenser, Medic or being killed
Line 74: Line 89:
  
 
=== tf_ commands ===
 
=== tf_ commands ===
* {{cvar|tf_allow_player_use}} 0/1 - disallows/allows the {{cvar|+use}} command on a server, useful for some custom maps, standard is 0. - ''server operator only''
+
* {{cvar|tf_allow_player_use}} <0/1> - Toggles the {{cvar|+use}} command on a server, useful for some custom maps. (default: 0) - ''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''
+
* {{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''
* {{cvar|tf_bot_add}} <number> - Spawns a number of bots - ''server operator only''
+
* {{cvar|tf_bot_add}} <number> - Spawns a number of computer-controlled bots - ''server operator only''
* {{cvar|tf_always_deathanim}} 0/1 - Forces death animation - ''server operator only''
+
* {{cvar|tf_always_deathanim}} <0/1> - Forces death animation - ''server operator only''
* {{cvar|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''
* {{cvar|tf_damage_multiplier_(blue/red)}} <Amount> - the higher the multiplier will cause more fps - ''server operator only''
+
* {{cvar|tf_damage_multiplier_(blue/red)}} <number> - Increases or decreases the damage output of a given team - ''server operator only''
* {{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
+
* {{cvar|tf_dingalingaling}} <0/1> - Turns weapon hit sound off/on (can also be changed from advanced options)
* {{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
+
* {{cvar|tf_dingaling_pitchmaxdmg}} <0-255> - Sets the pitch of maximum damage with your weapon, a lower pitch is recommended in most cases, (default: 100)
* {{cvar|tf_dingaling_volume}} - sets the volume for hit sounds, standard is 1.00
+
* {{cvar|tf_dingaling_pitchmindmg}} <0-255> - Sets the pitch of minimum damage with your weapon, a higher pitch is recommended in most cases, (default: 100)
* {{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)
+
* {{cvar|tf_dingaling_volume}} <0~1> - Sets the volume for hit sounds, (default: 1.00)
* {{cvar|tf_dingalingaling_repeat_delay}} - Limits how often the dingalingaling sound can play (default 0)
+
* {{cvar|tf_dingalingaling_repeat_delay}} <seconds> - Limits how often the weapon hit sound can play (default: 0)
* {{cvar|tf_dingalingaling}} 0/1 - turns weapon hit sound off/on (can also be changed from advanced options)
+
* {{cvar|tf_flag_caps_per_round}} - Sets the number of times the intelligence must be captured in [[Capture the Flag]] for a team to win (default: 3) - ''server operator only''
* {{cvar|tf_flag_caps_per_round}} - Sets the number of times the intelligence must be captured in [[Capture the Flag]] for a team to win a round (default 3) - ''server operator only''
+
* {{cvar|tf_forced_holiday}} <0-6> - Enables holiday mode (0: default; 1: Birthday; 2: Halloween; 3: Christmas; 4 = Valentine's Day; 5 = Meet the Pyro(Unused); 6 = Full Moon) - ''server operator only''
* {{cvar|tf_forced_holiday}} 0-6 - enables holiday mode (0 = default; 1 = birthday; 2 = halloween; 3 = Christmas; 4 = Valentine's Day; 5 = Meet the Pyro(Unused); 6 = Full Moon) - ''server operator only''
+
* {{cvar|tf_medieval}} <0/1> - Turns [[Medieval mode]] on/off, 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''
+
* {{cvar|tf_medigun_autoheal}} <0/1> - Turns healing without holding attack off/on (can also be changed from advanced options)
* {{cvar|tf_medigun_autoheal}} 0/1 - turns automatic healing without holding the left mouse button off/on (can also be changed from advanced options)
+
* {{cvar|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
+
* {{cvar|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
+
* {{cvar|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''
+
* {{cvar|tf_playergib}} <0/1/2> - Handles the frequency of 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 gibbing. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) - ''server operator only''
+
* {{cvar|tf_romevision_opt_in}} <0/1> - Turns Romevision in Mann vs. Machine off/on
* {{cvar|tf_romevision_opt_in}} 1  - Enable Romevision in Mann vs. Machine
+
* {{cvar|tf_romevision_skip_prompt}} <0/1> - If nonzero, skip the prompt about sharing Romevision.
* {{cvar|tf_romevision_skip_prompt}} 1  - If nonzero, skip the prompt about sharing Romevision.
+
* {{cvar|tf_scoreboard_ping_as_text}} <0/1> - Toggles if players pings are represented by numbers (text) or as 'connection strength' bars
* {{cvar|tf_scoreboard_ping_as_text}} 0/1 - toggles if players pings are represented by numbers (text) or as wifi strength bars
+
* {{cvar|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)  
+
* {{cvar|tf_test_spellindex}} <0-11> - Set to index to always get a specific [[Magic spells|Magic spell]] (0 = Fireball; 1 = Ball O' Bats; 2 = Uber Heal; 3 = Pumpkin MIRV; 4 = Blast Jump; 5 = Stealth; 6 = Teleport; 7 = Ball O' Lightning; 8 = Minify; 9 = Summon MONOCULUS; 10 = Meteor Storm; 11 = Summon Skeletons) - ''server operator only''
* {{cvar|tf_test_spellindex}} - Set to index to always get a specific [[Magic spells|Magic spell]] (0 = Fireball; 1 = Ball O' Bats; 2 = Uber Heal; 3 = Pumpkin MIRV; 4 = Blast Jump; 5 = Stealth; 6 = Teleport; 7 = Ball O' Lightning; 8 = Minify; 9 = Summon MONOCULUS; 10 = Meteor Storm; 11 = Summon Skeletons) - ''server operator only''
+
* {{cvar|tf_use_fixed_weaponspreads}} <0/1> - Turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop off/on - ''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''
+
* {{cvar|tf_weapon_criticals}} <0/1> - Turns random criticals for primary or secondary weapons off/on - ''server operator only''
* {{cvar|tf_weapon_criticals}} 0/1 - turns random criticals for primary or secondary weapons off/on - ''server operator only''
+
* {{cvar|tf_weapon_criticals_melee}} <0/1> - Turns random criticals for melee weapons off/on - ''server operator only''
* {{cvar|tf_weapon_criticals_melee}} 0/1 - turns random criticals for melee weapons off/on - ''server operator only''
+
* {{cvar|tf_powerup_mode}} <0/1> - Enable [[Mannpower]] on the server off/on - ''server operator only''
* {{cvar|tf_powerup_mode}} 0/1 - enable [[Mannpower]] on the server off/on - ''server operator only''
+
* {{cvar|tf_use_min_viewmodels}} <0/1> - Turns minimal viewmodels off/on, which reduces the size of weapons on screen.
* {{cvar|tf_use_min_viewmodels}} 0/1 - Enables Viewmodel Minmode which reduces the overall size of weapons on your screen.
 
  
 
=== sv_ commands ===
 
=== sv_ commands ===
* {{cvar|sv_cheats}} 0/1 - turns [[cheats]] off/on - ''server operator only''
+
* {{cvar|sv_cheats}} <0/1> - Turns [[cheats]] off/on - ''server operator only''
* {{cvar|sv_lan}} 0/1- cvar for local area network  - ''server operator only''
+
* {{cvar|sv_lan}} <0/1> - Allows/Disallows people on non-local networks from joining. - ''server operator only''
* {{cvar|sv_password}} - cvar for password protecting a server - ''server operator only''
+
**{{Note|In order to host a listen (in-game) server that people can connect to over the Internet, your 27015 port must be forwarded}}
* {{cvar|sv_pure}} 0/1/2 - cvar for managing custom content - ''server operator only''
+
* {{cvar|sv_password}} <password> - Sets the password for a server - ''server operator only''
* {{cvar|sv_gravity}} - sets the gravity of the server - ''server operator only''
+
* {{cvar|sv_pure}} <0/1/2> - Determines how much custom content (HUDs, animations, sound mods) should be allowed on a server (0: Allow all; 1: Uses sv_pure.cfg; 2: Uses sv_pure_strict.cfg) - ''server operator only''
 +
* {{cvar|sv_gravity}} <number> - Sets serverwide gravity (default: 800)- ''server operator only''
  
 
=== mp_ commands ===
 
=== mp_ commands ===
* {{cvar|mp_autoteambalance}} - cvar for automatic team balancing. - ''server operator only''
+
* {{cvar|mp_autoteambalance}} <0/1> - Disables/Enables automatic team balancing - ''server operator only''
* {{cvar|mp_disable_respawn_times}} - cvar for respawn times. - ''server operator only''
+
** {{cvar|mp_teams_unbalance_limit}} <number> - The team size difference at which players are forced onto the opposite team. - ''server operator only''
* {{cvar|mp_idledealmethod}} - cvar for managing idle players. - ''server operator only''
+
* {{cvar|mp_disable_respawn_times}} <0/1> - Enables/Disables respawn times - ''server operator only''
* {{cvar|mp_restartgame}} - restarts the round and resets the round time. - ''server operator only''
+
* {{cvar|mp_idledealmethod}} <0/1/2> - Chooses how to deal with idle players (0: Don't kick; 1: Move to spectate, then kick; 2: Kick directly) - ''server operator only''
* {{cvar|mp_teams_unbalance_limit}} - cvar for team force balance. - ''server operator only''
+
* {{cvar|mp_restartgame}} <seconds until restart> - Restarts the round and resets the round time. - ''server operator only''
* {{cvar|mp_timelimit}} - cvar for map timelimit. - ''server operator only''
+
* {{cvar|mp_timelimit}} <minutes> - The length of time that a map should last before swapping. - ''server operator only''
* {{cvar|mp_usehwmmodels}} 1 & {{cvar|mp_usehwmvcds}} 1 - makes use of the hardware morph class heads used in the 'Meet the Team' videos.
+
* {{cvar|mp_usehwmmodels}} <-1/0/1> - Disables/Enables HWM models used in TF2 Source Filmmaker shorts (-1: Never, 0: GPU-Based; 1: Always)
* {{cvar|mp_waitingforplayers_cancel}} 1 - cancels "waiting for players..." time - ''server operator only''
+
* {{cvar|mp_usehwmvcds}} <-1/0/1> - Disables/Enables mouth movement on HWM models (-1: Never, 0: GPU-Based; 1: Always)
* {{cvar|mp_friendlyfire}} 0/1 - Toggles friendly fire.
+
* {{cvar|mp_waitingforplayers_cancel}} <0/1> - If nonzero, cancels "Waiting for players..." time - ''server operator only''
 +
* {{cvar|mp_friendlyfire}} <0/1> - Toggles friendly fire.
  
 
=== hud_ commands ===
 
=== hud_ commands ===
* {{cvar|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
* {{cvar|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 an interval off/on
* {{cvar|hud_combattext_batching_window}} - any number up to and including 2.0 are accepted, time in seconds for above. Only for above == 1.
+
** {{cvar|hud_combattext_batching_window}} <.1~2> - Time in seconds to combine damage text.
* {{cvar|hud_combattext_healing}} 0/1 - turns the healed text above teammates off/on
+
* {{cvar|hud_combattext_healing}} <0/1> - Turns healing text above teammates 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
+
* {{cvar|hud_combattext_doesnt_block_overhead_text}} <0/1> - Turns overwriting the particle effects used for critical hits and mini-crits off/on
* {{cvar|hud_reloadscheme}} - use this to fix various HUD-color errors or lingering Crit-effects
+
* {{cvar|hud_reloadscheme}} - Used to fix various HUD-color errors or lingering Crit-effects
* {{cvar|hud_saytext_time}} 0 - Amount of time (in seconds) to display chat comments before they fade out.
+
* {{cvar|hud_saytext_time}} <seconds> - How long to display chat comments before they fade out.
  
=== miscellaneous commands ===
+
=== Miscellaneous commands ===
 
'''For players'''
 
'''For players'''
  
 
* {{cvar|bind}} <key> <command> - Binds a key to a command.
 
* {{cvar|bind}} <key> <command> - Binds a key to a command.
* {{cvar|bind}} <key> - Replies with the command the key is bound to.
+
* {{cvar|bind}} <key> - Displays the command the given key is bound to.
 
* {{cvar|unbind}} <key> - Unbinds a key.
 
* {{cvar|unbind}} <key> - Unbinds a key.
 +
* {{cvar|unbindall}} - Unbinds all keys.
 
* {{cvar|dropitem}} - Drop the flag or intelligence.  
 
* {{cvar|dropitem}} - Drop the flag or intelligence.  
* {{cvar|explode}} - Commit suicide. (by exploding into gibs)
 
 
* {{cvar|kill}} - Commit suicide. (Useful if stuck)
 
* {{cvar|kill}} - Commit suicide. (Useful if stuck)
 +
* {{cvar|explode}} - Commit suicide by exploding into gibs.
 
* {{cvar|+attack}} - Mouse 1 auto attack enable. ({{cvar|-attack}} will disable)
 
* {{cvar|+attack}} - Mouse 1 auto attack enable. ({{cvar|-attack}} will disable)
 
* {{cvar|+attack2}} - Mouse 2 auto attack enable. ({{cvar|-attack2}} will disable)
 
* {{cvar|+attack2}} - Mouse 2 auto attack enable. ({{cvar|-attack2}} will disable)
* {{cvar|fov_desired}} 75-90 - Set desired field of view. (higher values show more of the battlefield at the cost of fps) (can also be changed from advanced video [[Options]])
+
* {{cvar|fov_desired}} <75-90> - Set desired field of view (Higher values show more of the battlefield at the cost of fps) (can also be changed from advanced video [[Options]])
* {{cvar|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)
+
* {{cvar|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)
 
* {{cvar|jpeg}} - Take a jpeg screenshot.
 
* {{cvar|jpeg}} - Take a jpeg screenshot.
* {{cvar|noclip}} - Allows the players on the server to fly through walls. - ''{{cvar|sv_cheats}} 1 only''.  
+
* {{cvar|noclip}} - Allows the players on the server to fly through walls. - ''{{cvar|sv_cheats 1}} only''.  
 
* {{cvar|retry}} - Retry connection to last server.
 
* {{cvar|retry}} - Retry connection to last server.
 
* {{cvar|status}} - Display map and connection status.  
 
* {{cvar|status}} - Display map and connection status.  
 
* {{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. (can also be changed from advanced Options)
 
* {{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. (can also be changed from advanced Options)
* {{cvar|r_drawviewmodel}} 0/1 - Turns viewmodels on and off. (can also be changed from advanced Options)
+
* {{cvar|r_drawviewmodel}} <0/1> - Turns viewmodels on and off. (can also be changed from advanced Options)
* {{cvar|restart}} - Restarts the current server.
+
* {{cvar|restart}} - Restarts the current server ''dedicated server only''
* {{cvar|find}} <command> - A search function that displays all commands with a searched term.
+
* {{cvar|find}} <text> - Displays all commands that match a string of text
* {{cvar|hurtme}} <number> - Deals a given amount of damage (can be negative for extra health) - ''{{cvar|sv_cheats}} 1 only''
+
* {{cvar|hurtme}} <number> - Deals a given amount of damage (can be negative for extra health) - ''{{cvar|sv_cheats 1}} only''
* {{cvar|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}} <0~1> - Sets the ratio of sensitivity while zoomed in with the Sniper Rifle with accordance to actual sensitivity.
* {{cvar|net_graph}} <1-4>
+
* {{cvar|net_graph}} <0-4> Shows different amounts of information such as ping, framerate, lerp, and packet loss depending on the input value,  
** Depending on the input value, different amounts of information will be shown such as ping, fps, lerp, packet loss, etc.
 
  
* {{cvar|thirdperson}} - Places your view in a camera behind your character - ''{{cvar|sv_cheats}} 1 only''
+
* {{cvar|thirdperson}} - Places your view in a camera behind your character - ''{{cvar|sv_cheats 1}} only''
* {{cvar|thirdperson_mayamode}} - If active, turning in third person does not move the camera - ''{{cvar|sv_cheats}} 1 only''
+
* {{cvar|thirdperson_mayamode}} - If active, turning in third person does not move the camera - ''{{cvar|sv_cheats 1}} only''
* {{cvar|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 {{cvar|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.
 
* {{cvar|firstperson}} - Return to first person perspective.  
 
* {{cvar|firstperson}} - Return to first person perspective.  
 
** If {{cvar|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]].
* {{cvar|currency_give}} <amount> - Gives a specified amount credits in Mann vs. Machine - ''{{cvar|sv_cheats}} 1 only''
+
* {{cvar|currency_give}} <amount> - Gives a specified amount credits in Mann vs. Machine - ''{{cvar|sv_cheats 1}} only''
* {{cvar|snd_restart}} - 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, or if a [[teleporter]] or ticking [[Payload cart]] can be heard when there isn't one near you.
+
* {{cvar|snd_restart}} - Used to restart all sounds in any game mode.  
* {{cvar|player_ready_toggle}} - readies/unreadies the player in Mann vs. Machine
+
* {{cvar|player_ready_toggle}} - Readies/unreadies the player in MVM and Competitive
* {{cvar|taunt_by_name}} (name) - Runs a specified taunt, given the exact name of a taunt in the player's current taunt loadout, without having to open the taunt menu.
+
* {{cvar|taunt_by_name}} <taunt name> - Runs a specified taunt, given the exact name of a taunt in the player's current taunt loadout, without having to open the taunt menu.
  
 
'''For moderators/admins'''
 
'''For moderators/admins'''
Line 173: Line 189:
 
* {{cvar|changelevel}} <mapname> - Changes the map.
 
* {{cvar|changelevel}} <mapname> - Changes the map.
 
* {{cvar|cvarlist}} - View complete cvar list.
 
* {{cvar|cvarlist}} - View complete cvar list.
* {{cvar|exec}} - Execute config file.
+
* {{cvar|exec}} - Execute config file from the tf/cfg folder.
 
* {{cvar|map}} <mapname> - Changes the map and restarts the server.
 
* {{cvar|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
 
** Starts a new server if entered on the main menu - useful for bypassing the "Create New Server" dialog and map drop-down menu
* {{cvar|maps}} - Display list of maps.
+
* {{cvar|maps}} <*/mapname> - Display list of maps.
 
* {{cvar|rcon_password}} <password> - gives player access to remote control commands of a server.
 
* {{cvar|rcon_password}} <password> - gives player access to remote control commands of a server.
 
* {{cvar|nextlevel}} <mapname> - Sets the next map to be played.
 
* {{cvar|nextlevel}} <mapname> - Sets the next map to be played.
Line 187: Line 203:
 
'''For recording'''
 
'''For recording'''
 
{{main|Help:Recording demos}}
 
{{main|Help:Recording demos}}
* {{cvar|record}} <demo name> - records a demo
+
* {{cvar|record}} <demo name> - Begins a demo recording
* {{cvar|stop}} - stops the recording of a demo
+
* {{cvar|stop}} - Stops a demo recording
* {{cvar|startmovie}} <moviename> - opens up the source recorder during demo play back and allows for high quality avi format recording
+
* {{cvar|startmovie}} <moviename> - Opens up the source recorder during demo play back and allows for high quality avi format recording
* {{cvar|endmovie}} - stops source recorder
+
* {{cvar|endmovie}} - Stops source recorder
* {{cvar|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
* {{cvar|host_timescale}} <number> - use in conjunction with {{cvar|host_framerate}} to produce a smooth video output
+
* {{cvar|host_timescale}} <number> - Use in conjunction with {{cvar|host_framerate}} to produce a smooth video output
* {{cvar|demoui}} - brings up a toolbox for replays (shift+F2 will also bring up the tool box)
+
* {{cvar|demoui}} - Brings up a toolbox for replays (shift+F2 will also bring up the tool box)
  
 
The following commands were introduced by the Demo Support feature (see {{Patch name|5|31|2016}}):
 
The following commands were introduced by the Demo Support feature (see {{Patch name|5|31|2016}}):
* {{cvar|ds_record}} - manually start a recording
+
* {{cvar|ds_record}} - Manually start a recording
* {{cvar|ds_stop}} - manually stop a recording
+
* {{cvar|ds_stop}} - Manually stop a recording
* {{cvar|ds_mark}} <comment> - bookmark the current demo tick count for future reference. The <comment> is an optional descriptor you may include.
+
* {{cvar|ds_mark}} <comment> - Bookmark the current demo tick count for future reference. The <comment> is an optional descriptor you may include.
* {{cvar|ds_status}} - report the current recording status
+
* {{cvar|ds_status}} - Report the current recording status
  
 
=== Weapon commands ===
 
=== Weapon commands ===
 
The "use" command is used to switch to the specified weapon.
 
The "use" command is used to switch to the specified weapon.
  
{{Template:Note|Use is similar to the 'slot' commands, but cannot be used for voice commands.}}
+
{{Template:Note|use is similar to the 'slot' commands, but cannot be used for voice commands.}}
 
*Syntax
 
*Syntax
 
*:{{cvar|use}} <weapon_name>
 
*:{{cvar|use}} <weapon_name>

Revision as of 22:28, 3 December 2016

A screen of the Developer Console found in Team Fortress 2

This article has a list of 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.

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.

For more console commands, see cheats.


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/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
  • cl_autoreload <0/1> - Turns automatic reloading off/on (can also be changed from advanced Options)
  • cl_autorezoom <0/1> - Turns Sniper Rifle re-zoom off/on (can also be changed from advanced Options)
  • cl_burninggibs <0/1> - Turns burning gibs off/on
  • cl_crosshair_file <filename> - Sets crosshair picture. "" is standard-crosshairs. example: "crosshair1" (can also be changed from Multiplayer options)
  • cl_first_person_uses_world_model <0/1> - Sets full-body awareness mode off/on (for use with VR headsets)
  • 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 (can also be changed from advanced options)
  • cl_interp <0~1> - 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
  • cl_ragdoll_collide <0/1> - Turns ragdoll collisions on/off (client-side only)
  • cl_ragdoll_fade_time <seconds> - Sets time until ragdolls disappear (client-side only)
  • cl_showbackpackrarities <0/1> - Turns color-coded items in trade off/on
  • 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
  • cl_yawspeed <number> - Sets the speed at which your character turns when using the +left and +right commands
  • cl_spec_carrieditems <0/1> - Shows non-standard items being carried by player you're spectating
  • cl_mvm_wave_status_visible_during_wave <0/1> - Turns HUD display always showing the robots left in a Mann vs Machine wave off/on.

addcond commands

Main article: Addcond

Pictogram comment.png sv_cheats 1 required

  • addcond 5 - Gives the player the ubercharged effect that can be removed if healed by Dispenser, Medic or being killed
  • addcond 11 - Gives the player a critical effect that can be removed if healed by Dispenser, Medic or being killed
  • addcond 19 - Gives the player the Mini-Crit effect
  • addcond 33 - Gives the player the Critical effect that will NOT be removed unless killed or removecond
  • addcond 64 - Player will Cloak immediately regardless of class. Used for the Invisibility Magic spell.
  • addcond 66 - Bots will ignore the player even if the player bumps into a bot when disguised or cloaked
  • addcond 72 - Gives the player an effect that enhance their reload speed, firing speed, movement speed and grants infinite double jumps
  • addcond 73 - Gives the player the Quick-Fix ubercharge effect
  • addcond 74 - Makes the player 10 times bigger and 10 times the health, also player will have infinite ammo but not clip size - player's melee range will remain the same
  • addcond 75 - Makes the player 10 times smaller - melee range and health will stay the same
  • addcond 92 - Player periodically regenerates ammo, health, and metal. Health regeneration rate is inversely proportional to maximum health. Used for the "Regen" powerup in Mannpower mode
  • addcond 114 - Enables glow outlines on friendly players and buildings

ent_ commands

Item pickups
  • ent_create item_healthkit_small - Spawns in a Small Health Kit where the player is aiming
  • ent_create item_healthkit_medium - Spawns in a Medium Health Kit where the player is aiming
  • ent_create item_healthkit_full - Spawns in a Full Health Kit where the player is aiming
  • ent_create item_ammopack_small - Spawns in a Small Ammo Pack where the player is aiming
  • ent_create item_ammopack_medium - Spawns in a Medium Ammo Pack where the player is aiming
  • ent_create item_ammopack_full - Spawns in a Full Ammo Pack where the player is aiming
  • ent_create item_teamflag - Spawns in a white Briefcase where the player is aiming. Note: Both teams can pick up the spawned Briefcase
  • ent_create item_currencypack_small - Spawns in a Small Credits Pickup where the player is aiming
  • ent_create item_currencypack_medium - Spawns in a Medium Credits Pickup where the player is aiming
  • ent_create item_currencypack_large - Spawns in a Large Credits Pickup where the player is aiming
Buildings
  • ent_create obj_sentrygun - Spawns in a level 1 Sentry Gun where the player is aiming
  • ent_create obj_dispenser - Spawns in a level 1 Dispenser where the player is aiming
  • ent_create obj_teleporter - Spawns in a level 1 Teleporter where the player is aiming
Neutral enemies and bosses
  • ent_create headless_hatman - Spawns the Horseless Headless Horsemann where the player is aiming
  • ent_create eyeball_boss - Spawns a variation of MONOCULUS where the player is aiming
    • ent_create eyeball_boss teamnum 1 - Spawns a ghostly BLU MONOCULUS where the player is aiming for 10 seconds
    • ent_create eyeball_boss teamnum 2 - Spawns a ghostly RED MONOCULUS where the player is aiming for 10 seconds
    • ent_create eyeball_boss teamnum 5 - Spawns the boss version of MONOCULUS where the player is aiming
  • ent_create merasmus - Spawns Merasmus where the player is aiming
  • ent_create tf_zombie - Spawns a Skeleton where the player is aiming
  • ent_create tank_boss - Spawns a Tank Robot where the player is aiming

tf_ commands

  • tf_allow_player_use <0/1> - Toggles the +use command on a server, useful for some custom maps. (default: 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
  • tf_bot_add <number> - Spawns a number of computer-controlled bots - server operator only
  • tf_always_deathanim <0/1> - Forces death animation - server operator only
  • tf_damage_disablespread <0/1> - Turns random damage-spread (+-10%) for weapons off/on - server operator only
  • tf_damage_multiplier_(blue/red) <number> - Increases or decreases the damage output of a given team - server operator only
  • tf_dingalingaling <0/1> - Turns weapon hit sound off/on (can also be changed from advanced options)
  • tf_dingaling_pitchmaxdmg <0-255> - Sets the pitch of maximum damage with your weapon, a lower pitch is recommended in most cases, (default: 100)
  • tf_dingaling_pitchmindmg <0-255> - Sets the pitch of minimum damage with your weapon, a higher pitch is recommended in most cases, (default: 100)
  • tf_dingaling_volume <0~1> - Sets the volume for hit sounds, (default: 1.00)
  • tf_dingalingaling_repeat_delay <seconds> - Limits how often the weapon hit sound can play (default: 0)
  • tf_flag_caps_per_round - Sets the number of times the intelligence must be captured in Capture the Flag for a team to win (default: 3) - server operator only
  • tf_forced_holiday <0-6> - Enables holiday mode (0: default; 1: Birthday; 2: Halloween; 3: Christmas; 4 = Valentine's Day; 5 = Meet the Pyro(Unused); 6 = Full Moon) - server operator only
  • tf_medieval <0/1> - Turns Medieval mode on/off, requires map change to take effect - server operator only
  • tf_medigun_autoheal <0/1> - Turns healing without holding attack off/on (can also be changed from advanced options)
  • 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
  • tf_overtime_nag <0/1> - Turns endless shouting of "OVERTIME!" in Overtime off/on - server operator only
  • tf_playergib <0/1/2> - Handles the frequency of gibbing. (0 = never; 1 = default; 2 = always, including attacks that normally don't gib) - server operator only
  • tf_romevision_opt_in <0/1> - Turns Romevision in Mann vs. Machine off/on
  • tf_romevision_skip_prompt <0/1> - If nonzero, skip the prompt about sharing Romevision.
  • tf_scoreboard_ping_as_text <0/1> - Toggles if players pings are represented by numbers (text) or as 'connection strength' bars
  • tf_taunt_first_person <0/1> - taunts are in first person for full-body awareness mode (for use with Oculus Rift)
  • tf_test_spellindex <0-11> - Set to index to always get a specific Magic spell (0 = Fireball; 1 = Ball O' Bats; 2 = Uber Heal; 3 = Pumpkin MIRV; 4 = Blast Jump; 5 = Stealth; 6 = Teleport; 7 = Ball O' Lightning; 8 = Minify; 9 = Summon MONOCULUS; 10 = Meteor Storm; 11 = Summon Skeletons) - server operator only
  • tf_use_fixed_weaponspreads <0/1> - Turns fixed, consistent spread for weapons like Shotgun, Scattergun and Shortstop off/on - server operator only
  • tf_weapon_criticals <0/1> - Turns random criticals for primary or secondary weapons off/on - server operator only
  • tf_weapon_criticals_melee <0/1> - Turns random criticals for melee weapons off/on - server operator only
  • tf_powerup_mode <0/1> - Enable Mannpower on the server off/on - server operator only
  • tf_use_min_viewmodels <0/1> - Turns minimal viewmodels off/on, which reduces the size of weapons on screen.

sv_ commands

  • sv_cheats <0/1> - Turns cheats off/on - server operator only
  • sv_lan <0/1> - Allows/Disallows people on non-local networks from joining. - server operator only
    • Pictogram comment.png In order to host a listen (in-game) server that people can connect to over the Internet, your 27015 port must be forwarded
  • sv_password <password> - Sets the password for a server - server operator only
  • sv_pure <0/1/2> - Determines how much custom content (HUDs, animations, sound mods) should be allowed on a server (0: Allow all; 1: Uses sv_pure.cfg; 2: Uses sv_pure_strict.cfg) - server operator only
  • sv_gravity <number> - Sets serverwide gravity (default: 800)- server operator only

mp_ commands

  • mp_autoteambalance <0/1> - Disables/Enables automatic team balancing - server operator only
    • mp_teams_unbalance_limit <number> - The team size difference at which players are forced onto the opposite team. - server operator only
  • mp_disable_respawn_times <0/1> - Enables/Disables respawn times - server operator only
  • mp_idledealmethod <0/1/2> - Chooses how to deal with idle players (0: Don't kick; 1: Move to spectate, then kick; 2: Kick directly) - server operator only
  • mp_restartgame <seconds until restart> - Restarts the round and resets the round time. - server operator only
  • mp_timelimit <minutes> - The length of time that a map should last before swapping. - server operator only
  • mp_usehwmmodels <-1/0/1> - Disables/Enables HWM models used in TF2 Source Filmmaker shorts (-1: Never, 0: GPU-Based; 1: Always)
  • mp_usehwmvcds <-1/0/1> - Disables/Enables mouth movement on HWM models (-1: Never, 0: GPU-Based; 1: Always)
  • mp_waitingforplayers_cancel <0/1> - If nonzero, cancels "Waiting for players..." time - server operator only
  • mp_friendlyfire <0/1> - Toggles friendly fire.

hud_ commands

  • 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 an interval off/on
    • hud_combattext_batching_window <.1~2> - Time in seconds to combine damage text.
  • hud_combattext_healing <0/1> - Turns healing 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
  • hud_reloadscheme - Used to fix various HUD-color errors or lingering Crit-effects
  • hud_saytext_time <seconds> - How long to display chat comments before they fade out.

Miscellaneous commands

For players

  • bind <key> <command> - Binds a key to a command.
  • bind <key> - Displays the command the given key is bound to.
  • unbind <key> - Unbinds a key.
  • unbindall - Unbinds all keys.
  • dropitem - Drop the flag or intelligence.
  • kill - Commit suicide. (Useful if stuck)
  • explode - Commit suicide by exploding into gibs.
  • +attack - Mouse 1 auto attack enable. (-attack will disable)
  • +attack2 - Mouse 2 auto attack enable. (-attack2 will disable)
  • fov_desired <75-90> - Set desired field of view (Higher values show more of the battlefield at the cost of fps) (can also be changed from advanced video Options)
  • 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.
  • noclip - Allows the players on the server to fly through walls. - sv_cheats 1 only.
  • 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. (can also be changed from advanced Options)
  • r_drawviewmodel <0/1> - Turns viewmodels on and off. (can also be changed from advanced Options)
  • restart - Restarts the current server dedicated server only
  • find <text> - Displays all commands that match a string of text
  • hurtme <number> - Deals a given amount of damage (can be negative for extra health) - sv_cheats 1 only
  • zoom_sensitivity_ratio <0~1> - Sets the ratio of sensitivity while zoomed in with the Sniper Rifle with accordance to actual sensitivity.
  • net_graph <0-4> Shows different amounts of information such as ping, framerate, lerp, and packet loss depending on the input value,
  • thirdperson - Places your view in a camera behind your character - sv_cheats 1 only
  • thirdperson_mayamode - If active, turning in third person does not move the camera - sv_cheats 1 only
  • 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.
  • 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.
  • currency_give <amount> - Gives a specified amount credits in Mann vs. Machine - sv_cheats 1 only
  • snd_restart - Used to restart all sounds in any game mode.
  • player_ready_toggle - Readies/unreadies the player in MVM and Competitive
  • taunt_by_name <taunt name> - Runs a specified taunt, given the exact name of a taunt in the player's current taunt loadout, without having to open the taunt menu.

For moderators/admins

  • changelevel <mapname> - Changes the map.
  • cvarlist - View complete cvar list.
  • exec - Execute config file from the tf/cfg folder.
  • 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 <*/mapname> - Display list of maps.
  • rcon_password <password> - gives player access to remote control commands of a server.
  • 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)
  • phys_pushscale <number> - Determines how far player corpses can be "pushed" when killed
  • tf_ctf_bonus_time <number> - Determines how long (in seconds) guaranteed critical hits are enabled when the intelligence is captured on a CTF map. 0 disables them entirely.


For recording

Main article: Help:Recording demos
  • record <demo name> - Begins a demo recording
  • stop - Stops a demo recording
  • 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 framerate
  • host_timescale <number> - Use in conjunction with host_framerate to produce a smooth video output
  • demoui - Brings up a toolbox for replays (shift+F2 will also bring up the tool box)

The following commands were introduced by the Demo Support feature (see May 31, 2016 Patch):

  • ds_record - Manually start a recording
  • ds_stop - Manually stop a recording
  • ds_mark <comment> - Bookmark the current demo tick count for future reference. The <comment> is an optional descriptor you may include.
  • ds_status - Report the current recording status

Weapon commands

The "use" command is used to switch to the specified weapon.

Pictogram comment.png use is similar to the 'slot' commands, but cannot be used for voice commands.

  • 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_cleaver
      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
      tf_weapon_rocketlauncher_airstrike
      • 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
      tf_weapon_sniperrifle_classic
      • Spy
      tf_weapon_revolver
      tf_weapon_knife
      tf_weapon_pda_spy
      To equip Sapper, use: "build 3 0"
  • Other Commands
    • invnext - switches to the next weapon
    • invprev - switches to the previous weapon
    • lastinv - switches to the last weapon used

See also