Difference between revisions of "Useful console commands"
(5 intermediate revisions by 5 users not shown) | |||
Line 17: | Line 17: | ||
:Enables/disables the hitsound. | :Enables/disables the hitsound. | ||
<code>tf_dingaling_pitchmaxdmg ''<number>''</code> | <code>tf_dingaling_pitchmaxdmg ''<number>''</code> | ||
− | :Sets the pitch of the hitsound when doing maximum damage. | + | :Sets the pitch of the hitsound when doing maximum damage (Default 100). |
<code>tf_dingaling_pitchmindmg ''<number>''</code> | <code>tf_dingaling_pitchmindmg ''<number>''</code> | ||
− | :Sets the pitch of the hitsound when doing minimum damage. | + | :Sets the pitch of the hitsound when doing minimum damage (Default 100). |
<code>hud_combattext ''(0/1)''</code> | <code>hud_combattext ''(0/1)''</code> | ||
:Turns off/on damage text. | :Turns off/on damage text. | ||
Line 47: | Line 47: | ||
:Kills the player. | :Kills the player. | ||
<code>explode</code> | <code>explode</code> | ||
− | :Kills the player and causes | + | :Kills the player and causes them to gib. |
== Spectator commands == | == Spectator commands == | ||
Line 100: | Line 100: | ||
<code>hurtme ''<number>''</code> | <code>hurtme ''<number>''</code> | ||
:Damages the player. If a negative number is used, overheals the player by the given amount. | :Damages the player. If a negative number is used, overheals the player by the given amount. | ||
− | <code>addcond | + | <code>addcond 57</code> |
:Gives the player an infinite ÜberCharge. | :Gives the player an infinite ÜberCharge. | ||
− | <code>addcond | + | <code>addcond 56</code> or <code>addcond 33</code> |
− | :Gives the player | + | :Gives the player infinite Crits. |
− | |||
− | |||
==External Links== | ==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. | 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}} | {{Popular topics navbox}} |
Latest revision as of 03:22, 9 June 2022
Contents
Display, sound and input commands[edit]
fov_desired (75-90)
- Changes the player's field of view.
viewmodel_fov <number>
- Changes the field of view of viewmodels.
viewmodel_fov_demo <number>
- Changes the field of view of viewmodels in recorded demos.
r_drawviewmodel (0/1)
- Toggles the visibility of the viewmodel.
cl_drawhud (0/1)
- Shows/hides the HUD (sv_cheats must be set to 1).
hud_reloadscheme
- Reloads the HUD.
snd_restart
- Resets the sound (useful for fixing sound bugs).
tf_dingalingaling (0/1)
- Enables/disables the hitsound.
tf_dingaling_pitchmaxdmg <number>
- Sets the pitch of the hitsound when doing maximum damage (Default 100).
tf_dingaling_pitchmindmg <number>
- Sets the pitch of the hitsound when doing minimum damage (Default 100).
hud_combattext (0/1)
- Turns off/on damage text.
hud_combattext_batching (0/1)
- Turns off/on adding-up damage text.
hud_combattext_batching_window (0-2)
- Allows more or less time to pass before resetting combat text numbers.
[edit]
cl_interp
- Changes the interpolation modifier that the game reads to calculate player-side ping.
cl_showfps (0/1/2)
- Displays your current framerate. (0 - disabled, 1 - real-time, 2 - rounded)
net_graph (0-6)
- Displays various net information, such as FPS, ping, lerp, choke etc.
Gameplay commands[edit]
+attack
- Activates the weapon's primary attack (Mouse 1).
-attack
- Halts the weapon's primary attack.
cl_autoreload (0/1)
- Enables or disables auto-reloading.
tf_medigun_autoheal (0/1)
- Enables/disables the Medi Gun auto-heal.
kill
- Kills the player.
explode
- Kills the player and causes them to gib.
Spectator commands[edit]
spec_next
- Spectates next player.
spec_prev
- Spectates previous player.
spec_mode
- Changes spectating mode (free-roam, first-person, third-person)
Binds and aliases[edit]
alias alias_name "command"
- Creates an alias executing certain commands.
bind "key" "command" "message (optional)"
- Binds a key to a command or message.
unbind "key"
- Unbinds a key.
bindtoggle "KEY" "COMMAND"
- Toggles a command, such as r_drawviewmodel.
Server operator commands[edit]
Note: Most of these commands will require also using the following:
rcon command
- Executes a command as a server operator.
rcon_password password
- Stores the rcon password. Required to match the server's rcon password for rcon commands to work.
Gameplay commands[edit]
tf_use_fixed_weaponspreads (0/1)
- Enables/disabled fixed bullet spread (for hitscan weapons like the Scattergun or the Shotgun)
tf_weapon_criticals (0/1)
- Turns random critical hits off/on.
sv_pure (0/1/2)
- Turns user-side custom content off/on. (0 - custom content on, 1 - uses server whitelist, 2 - custom content off)
mp_tournament (0/1)
- Turns tournament mode off/on.
mp_tournament_restart
- Restarts the game in tournament mode.
changelevel map_name
- Changes the map.
exec config
- executes a gameplay config for the server or for the user. Common examples include
etf2l_6v6.cfg
andugc_HL_standard.cfg
Cheat commands[edit]
sv_cheats (0/1)
- Turns cheats on.
noclip
- Causes the player to free-roam across the map, ignoring walls, floors and other obstacles.
impulse 101
- Replenishes the player's ammo and health.
hurtme <number>
- Damages the player. If a negative number is used, overheals the player by the given amount.
addcond 57
- Gives the player an infinite ÜberCharge.
addcond 56
or addcond 33
- Gives the player infinite Crits.
External Links[edit]
The official Team Fortress 2 Wiki has a page about this topic.
Popular topics | |
General | Getting started · Glossary of terms |
Formats | 6v6 · Highlander · Prolander · 4v4 · Ultiduo · BBall · MGE |
Customization | Configs · Custom HUDs · Third-party programs |
Mechanics | Movement · Rollouts · ÜberCharge · Calling · Pushes |
Settings | Useful console commands · Servers |
Active Competitions | ETF2L · RGL · ozfortress · UGC · FBTF · Vanilla Fortress · AsiaFortress · ATF2L · Insomnia Gaming Festival · LAN events |
Past Competitions | Respawn League · Brasil Fortress · TFCL · ESEA · TFCups · CEVO · Wireplay · The Round Robin · IGL · ESA · NZFortress |
Organizations | BlackOut TV · CappingTV · EssentialsTF · EVL TV · eXtv · Just Play! · MyGamingEdge · TeamFortressTV · TFLIVE · VanillaTV |