Team Fortress 2 exposes over two thousand console variables. The tf_ family covers everything specific to TF2, from random crits to bot behaviour, while mp_ and sv_ handle the round rules and server settings shared with other Source games.
Search the full list below, then add what you need to your Team Fortress 2 server. Each entry shows the default value, what it does and whether it runs on the server or the client.
2,027 commands in total
| Command | Default | Description |
|---|---|---|
| — | Erases current game stats and writes out a blank stats fileCommandServer | |
| — | Shutdown and restart the engine.CommandServer | |
Default: 0 | Turn on achievement debug msgs.ServerCheatReplicated | |
| — | Add an IP address to the ban list.CommandServer | |
Default: 1 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | Debug the NPC dynamic interaction system.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | Show random expression decisions for NPCs.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | NPC Line-Of-Sight debug mode. If 1, solid entities that block NPC LOC will be highlighted with white bounding boxes. If 2, it'll show non-solid entities that would do it if they were solid.ServerCheat | |
Default: 0 | No description is published for this one.Server | |
| — | Debug the attempted connection between two nodesCommandServer | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.ServerCheatReplicated | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.ServerCheat | |
| — | Drop an ai_hint at the player's current eye position.CommandServer | |
| — | No description is published for this one.CommandServer | |
Default: 0 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 0 | Maximum frametime to still play background expressions.Server | |
Default: 0 | Disable npc background expressions when you can't see them.Server | |
Default: 720 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 50 | frametime limit for min efficiency AIE_NORMAL (in sec's).Server | |
Default: 0 | No description is published for this one.ServerCheat | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.ServerReplicated | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 8 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 512 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.ServerArchived | |
Default: 0 | No description is published for this one.Server | |
| — | Set how high AI bumps up ground walkers when checking stepsCommandServer | |
Default: 0 | Shows that bones that are setup every thinkServer | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.ServerReplicated | |
Default: -1 | No description is published for this one.ServerReplicated | |
Default: 0 | No description is published for this one.Server | |
Default: 1000 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 3 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.Server | |
Default: 0 | No description is published for this one.ServerArchived | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.ServerCheat | |
| — | Changes the density of air for drag computations.CommandServer | |
| — | Alias a command.CommandServer | |
Default: 5000 | No description is published for this one.ServerReplicated | |
Default: 1 | Toggle the 3-way animation blending code.ServerReplicated | |
Default: 1 | Allow AsyncBegin/EndRead()Server | |
Default: 0 | Set the async filesystem mode (0 = async, 1 = synchronous)Server | |
| — | No description is published for this one.CommandServer | |
Default: 0 | Force async reads to serialize for profilingServer | |
Default: 0 | Simulate a delay of up to a set msec per file operationServer | |
| — | No description is published for this one.CommandServer | |
Default: 0 | No description is published for this one.Server | |
Default: 2160 | No description is published for this one.Server | |
| — | Add a user ID to the ban list.CommandServer | |
| — | Add an IP address to the ban list.CommandServer | |
| — | Ends gathering of info.CommandServer | |
| — | Starts gathering of info. Arguments: filename to write results intoCommandServer | |
| — | Bind a key.CommandServer | |
| — | Bind this key but only on Mac, not win32CommandServer | |
| — | Performs a bind <key> 'increment var <cvar> 0 1 1'CommandServer | |
| — | bloodCommandServer | |
| — | Add a bot.CommandServer | |
| — | Forces the specified bot to change class (e.g. bot_changeclass bot01 soldier).CommandServer | |
| — | Make all bots change teamsCommandServer | |
Default: 80 | Distance to a target that a melee bot wants to be within to attack.ServerCheat | |
Default: 2000 | Distance within which bots looking for any enemies will find them.ServerCheat | |
Default: 400 | Distance to a target that a ranged bot wants to be within to attack.ServerCheat | |
| — | <bot id> <command string...>. Sends specified command on behalf of specified botCommandServer | |
Default: 0 | Force all bots to crouch.ServerCheat | |
Default: 0 | For internal testing purposes.ServerCheat | |
Default: 0 | No description is published for this one.ServerCheat | |
| — | Force the specified bot to drop his active weapon. Usage: bot_drop <bot name>CommandServer | |
Default: 0 | When on, all bots fire their guns.Server | |
Default: 1 | When firing, don't tap fire, hold it down.Server | |
Default: 0 | When firing, use attack2.Server | |
Default: 0 | Force bots with the specified weapon to fire.Server | |
| — | Hurt a bot by team, or all bots ('all').CommandServer | |
Default: 0 | Force all bots to repeatedly jump.ServerCheat | |
| — | bot_kick <all> <t|ct> <type> <difficulty> <name> - Kicks a specific bot, or all bots, matching the given criteria.CommandServer | |
| — | bot_kill <all> <t|ct> <type> <difficulty> <name> - Kills a specific bot, or all bots, matching the given criteria.CommandServer | |
Default: 0 | Bot uses usercmd of player by index.Server | |
Default: 0 | Bot uses usercmd of player by index.Server | |
Default: 180 | Offsets the bot yaw.Server | |
| — | Forces the specified bot to be the same class, and use the same items, as you.CommandServer | |
| — | Force the specified bot to move to the point under your crosshair. Usage: bot_moveto <bot name>CommandServer | |
Default: 20 | Distance into an area that waypoints should be generated when pathfinding through portals.ServerCheat | |
Default: 0 | Delay before bots recompute their path to targets that have moved when moving to them.ServerCheat | |
Default: 1 | If set, bots will skip waypoints if they already see the waypoint post.ServerCheat | |
Default: 5 | Rate at which bots turn to face their targets.ServerCheat | |
Default: 1 | If set, bots will extend feelers to their sides to find & avoid upcoming collisions.ServerCheat | |
Default: 1 | If set, bots will generate waypoints on both sides of portals between waypoints when building paths.ServerCheat | |
Default: 128 | Distance to a waypoint to which a bot starts to decelerate to reach it.ServerCheat | |
Default: 16 | Distance to a waypoint within which a bot considers as having reached it.ServerCheat | |
Default: 0 | No description is published for this one.ServerCheat | |
| — | Refill all bot ammo countsCommandServer | |
Default: 0 | No description is published for this one.ServerCheat | |
Default: -1 | set to weapon slot that bot should switch to.ServerCheat | |
| — | Teleport the specified bot to the specified position & angles. Format: bot_teleport <bot name> <X> <Y> <Z> <Pitch> <Yaw>...CommandServer | |
| — | Deliver lethal damage from player to specified bot. Usage: bot_whack <bot name>CommandServer | |
Default: 0 | No description is published for this one.Server | |
Default: 1 | No description is published for this one.Server | |
| — | Toggle. Player takes damage but won't die. (Shows red cross when health is zero)CommandServer |
Or search above to jump straight to the one you need.
Values marked Server belong in your tf/cfg/server.cfg. Values marked Clientare typed into each player’s own console.
How to Use TF2 Server Commands
TF2 reads tf/cfg/server.cfg when the server starts and again on every map change.
- 1Log in to Bropanel and select your TF2 server.
- 2In the sidebar, open
Files. - 3Open
tf/cfg/server.cfg. - 4Add one command per line, such as
mp_timelimit 30. - 5Save the file and restart your server.
Some maps also load their own config from tf/cfg/, named after the map prefix such as ctf.cfg or pl.cfg. Those run after server.cfg, so a value set there wins. The config files guide breaks down each file.
Most Used TF2 Server Commands
| Command | Default | What it does |
|---|---|---|
hostname | empty | Sets the server name shown in the browser. |
sv_password | empty | Locks the server behind a password. |
rcon_password | empty | Sets the admin password for rcon. |
sv_downloadurl | empty | Points clients at your FastDL host. |
mp_timelimit | 0 | Minutes of game time per map. |
mp_maxrounds | 0 | Rounds before the server changes map. |
mp_winlimit | 0 | Score one team can reach before the map changes. |
mp_friendlyfire | 0 | Set to 1 to let teammates damage each other. |
mp_autoteambalance | 1 | 0 off, 1 forced switch, 2 ask for volunteers. |
mp_teams_unbalance_limit | 1 | Player difference that counts as unbalanced. 0 disables. |
mp_respawnwavetime | 10 | Seconds between respawn waves. |
mp_disable_respawn_times | 0 | Set to 1 for instant respawn. |
mp_stalemate_enable | 0 | Set to 1 to allow sudden death. |
mp_forcecamera | 1 | Restricts what dead players can spectate. |
mp_tournament | 0 | Set to 1 for tournament mode. |
mp_scrambleteams | command | Scrambles the teams and restarts the game. |
sv_alltalk | 0 | Set to 1 so both teams hear each other. |
sv_cheats | 0 | Set to 1 to unlock cheat commands. |
sv_gravity | 800 | World gravity. |
TF2 Gameplay and Bot Commands
These are the settings that change how TF2 itself feels.
| Command | Default | What it does |
|---|---|---|
tf_weapon_criticals | 1 | Set to 0 to turn off random crits. |
tf_weapon_criticals_melee | 1 | Controls melee crits separately. 0 off, 1 normal, 2 always. |
tf_damage_disablespread | 1 | Removes random damage spread. Set to 0 to bring it back. |
tf_use_fixed_weaponspreads | 0 | Set to 1 for fixed shotgun and pistol patterns. |
tf_bot_quota | 0 | How many TF bots the server keeps in the game. |
tf_bot_difficulty | 1 | Bot skill. 0 easy, 1 normal, 2 hard, 3 expert. |
tf_bot_quota_mode | normal | Whether the quota counts bots only, fills seats, or matches humans. |
tf_forced_holiday | 0 | Forces an event. 1 birthday, 2 Halloween. |
tf_allow_taunt_switch | 0 | Controls weapon switching during a taunt. |
tf_spawn_glows_duration | 10 | Seconds teammates glow after a respawn. |
Competitive servers usually run tf_weapon_criticals 0 and tf_use_fixed_weaponspreads 1, and leave tf_damage_disablespread at its default of 1. Together those remove most of the randomness from a match.
How to Open the Console in TF2
- 1Open Team Fortress 2 and go to
Options. - 2Select the
Keyboardtab and clickAdvanced. - 3Tick
Enable developer console (~). - 4Click
OK, then press the~key in game.
