|
|
Line 1: |
Line 1: |
| == Display, sound and input commands ==
| | quit smoking |
| <code>fov_desired ''(75-90)''</code>
| |
| :Changes the player's field of view.
| |
| <code>viewmodel_fov ''<number>''</code>
| |
| :Changes the field of view of viewmodels.
| |
| <code>viewmodel_fov_demo ''<number>''</code>
| |
| :Changes the field of view of viewmodels in recorded demos.
| |
| <code>r_drawviewmodel ''(0/1)''</code>
| |
| :Toggles the visibility of the viewmodel.
| |
| <code>cl_drawhud ''(0/1)''</code>
| |
| :Shows/hides the [[HUD]] (sv_cheats must be set to 1).
| |
| <code>hud_reloadscheme</code>
| |
| :Reloads the HUD.
| |
| <code>snd_restart</code>
| |
| :Resets the sound (useful for fixing sound bugs).
| |
| <code>tf_dingalingaling ''(0/1)''</code>
| |
| :Enables/disables the hitsound.
| |
| <code>tf_dingaling_pitchmaxdmg ''<number>''</code>
| |
| :Sets the pitch of the hitsound when doing maximum damage (Default 100).
| |
| <code>tf_dingaling_pitchmindmg ''<number>''</code>
| |
| :Sets the pitch of the hitsound when doing minimum damage (Default 100).
| |
| <code>hud_combattext ''(0/1)''</code>
| |
| :Turns off/on damage text.
| |
| <code>hud_combattext_batching ''(0/1)''</code>
| |
| :Turns off/on adding-up damage text.
| |
| <code>hud_combattext_batching_window ''(0-2)''</code>
| |
| :Allows more or less time to pass before resetting combat text numbers.
| |
| | |
| == Net-related commands ==
| |
| <code>cl_interp</code>
| |
| :Changes the interpolation modifier that the game reads to calculate player-side ping.
| |
| <code>cl_showfps ''(0/1/2)''</code>
| |
| :Displays your current framerate. ''(0 - disabled, 1 - real-time, 2 - rounded)''
| |
| <code>net_graph ''(0-6)''</code>
| |
| :Displays various net information, such as FPS, ping, lerp, choke etc.
| |
| | |
| == Gameplay commands ==
| |
| <code>+attack</code>
| |
| :Activates the weapon's primary attack (Mouse 1).
| |
| <code>-attack</code>
| |
| :Halts the weapon's primary attack.
| |
| <code>cl_autoreload ''(0/1)''</code>
| |
| :Enables or disables auto-reloading.
| |
| <code>tf_medigun_autoheal ''(0/1)''</code>
| |
| :Enables/disables the Medi Gun auto-heal.
| |
| <code>kill</code>
| |
| :Kills the player.
| |
| <code>explode</code>
| |
| :Kills the player and causes them to gib.
| |
| | |
| == Spectator commands ==
| |
| <code>spec_next</code>
| |
| :Spectates next player.
| |
| <code>spec_prev</code>
| |
| :Spectates previous player.
| |
| <code>spec_mode</code>
| |
| :Changes spectating mode (free-roam, first-person, third-person)
| |
| | |
| == Binds and aliases ==
| |
| <code>alias ''alias_name'' "''command''"</code>
| |
| :Creates an alias executing certain commands.
| |
| <code>bind "''key''" "''command''" "''message (optional)''"</code>
| |
| :Binds a key to a command or message.
| |
| <code>unbind "''key''"</code>
| |
| :Unbinds a key.
| |
| <code>bindtoggle "KEY" "COMMAND"</code>
| |
| :Toggles a command, such as r_drawviewmodel.
| |
| | |
| == Server operator commands ==
| |
| | |
| '''Note:''' Most of these commands will require also using the following:<br/>
| |
| <code>rcon ''command''</code>
| |
| :Executes a command as a server operator.
| |
| <code>rcon_password ''password''</code>
| |
| :Stores the rcon password. Required to match the server's rcon password for rcon commands to work.
| |
| | |
| === Gameplay commands ===
| |
| <code>tf_use_fixed_weaponspreads ''(0/1)''</code>
| |
| :Enables/disabled fixed bullet spread (for hitscan weapons like the Scattergun or the Shotgun)
| |
| <code>tf_weapon_criticals ''(0/1)''</code>
| |
| :Turns random critical hits off/on.
| |
| <code>sv_pure ''(0/1/2)''</code>
| |
| :Turns user-side custom content off/on. ''(0 - custom content on, 1 - uses server whitelist, 2 - custom content off)''
| |
| <code>mp_tournament ''(0/1)''</code>
| |
| :Turns tournament mode off/on.
| |
| <code>mp_tournament_restart</code>
| |
| :Restarts the game in tournament mode.
| |
| <code>changelevel ''map_name''</code>
| |
| :Changes the map.
| |
| <code> exec ''config''</code>
| |
| :executes a gameplay config for the server or for the user. Common examples include <code>etf2l_6v6.cfg</code> and <code>ugc_HL_standard.cfg</code>
| |
| | |
| === Cheat commands ===
| |
| <code>sv_cheats ''(0/1)''</code>
| |
| :Turns cheats on.
| |
| <code>noclip</code>
| |
| :Causes the player to free-roam across the map, ignoring walls, floors and other obstacles.
| |
| <code>impulse 101</code>
| |
| :Replenishes the player's ammo and health.
| |
| <code>hurtme ''<number>''</code>
| |
| :Damages the player. If a negative number is used, overheals the player by the given amount.
| |
| <code>addcond 57</code>
| |
| :Gives the player an infinite ÜberCharge.
| |
| <code>addcond 56</code> or <code>addcond 33</code>
| |
| :Gives the player infinite Crits.
| |
| ==External Links==
| |
| The [https://wiki.teamfortress.com/ official Team Fortress 2 Wiki] has a [https://wiki.teamfortress.com/wiki/List_of_useful_console_commands page about this] topic.
| |
| {{Popular topics navbox}}
| |