Difference between revisions of "User:WindPower/Wind's config"

From Team Fortress Wiki
Jump to: navigation, search
(Download: Redirect to GitHub instructions)
 
(37 intermediate revisions by 7 users not shown)
Line 1: Line 1:
[[File:Icon_TF2_scripts.png|right|46px]]
+
[[File:Icon TF2 scripts.png|right|46px]]
{{Quotation|'''[[User:Smashman|Smashman]]'''|[[User:WindPower|Windpower's]] config is credit to team!}}
+
{{Quotation|'''[[User:Smashman|Smashman]]'''|[[User:WindPower|Wind]]'s config is credit to team!}}
 +
 
 +
'''[[User:WindPower|Wind]]'s config''' is a script collection with a preference system that affects all nine classes of Team Fortress 2.
  
'''[[User:WindPower|WindPower]]'s configuration''' is a [[:Category:Collection scripts|script collection]] with a preference system that affects all nine classes of Team Fortress 2.
 
 
It also features a [[#Sound pack|sound pack]] which can be downloaded separately in order to be used in your own scripts.
 
It also features a [[#Sound pack|sound pack]] which can be downloaded separately in order to be used in your own scripts.
  
 
== Download ==
 
== Download ==
'''[http://upload.gaiatools.com/files/WindPowerConfig_v1.7_0.rar Download v1.7]'''
+
'''[https://github.com/EtiennePerot/tf2-config/archive/master.zip Download latest version]'''
 
 
To use these scripts, extract them to ''[SteamInstallDir]\steamapps\[User]\team fortress 2'', where ''[SteamInstallDir]'' is Steam's installation directory, and ''[User]'' is your Steam username.
 
  
I might make a tool that auto-updates scripts and stuff if there is demand. For now, it's just a simple rar file.
+
To install, [https://github.com/EtiennePerot/tf2-config/blob/master/README.txt follow the instructions on GitHub].
  
* Note that everything can be rebound by editing a single file. The following only lists the default key bindings.
 
* The videos below are semi-unrelated. They're just here to fill up space for the class images, really.
 
 
== All classes ==
 
== All classes ==
 
* ''Space'': duckjump (jump+duck at the same time)
 
* ''Space'': duckjump (jump+duck at the same time)
* ''Ctrl'': toggleduck (ctrl to duck, ctrl again to stand up). Can be changed to non-toggled in the [[#Preferences|preferences]].
+
* ''Ctrl'': toggleduck (Ctrl to duck, Ctrl again to stand up). Can be changed to non-toggled in the [[#Preferences|preferences]].
 
* ''V'': Toggles microphone on/off, and lowers volume while you are speaking. Can be changed to non-toggled in the [[#Preferences|preferences]].
 
* ''V'': Toggles microphone on/off, and lowers volume while you are speaking. Can be changed to non-toggled in the [[#Preferences|preferences]].
 +
* ''Alt''+''mouse2'': Zoom in slightly (for any weapon), remove distracting HUD elements
 
* ''End'': Makes your character explode (suicide with gibs is awesome)
 
* ''End'': Makes your character explode (suicide with gibs is awesome)
 
* ''='': Spray
 
* ''='': Spray
* ''['' / '']'': Decrease/increase cl_interp
+
* ''['': Decrease cl_interp
 +
* '']'': Increase cl_interp
 
* ''Shift''+''`'': Toggle demo recording on/off
 
* ''Shift''+''`'': Toggle demo recording on/off
 +
* ''P'': Inspect
 +
* ''Home'': Save replay
 +
* ''Insert'': Use action item
 +
* ''Delete'': Set yourself as "Ready" in Mann Vs. Machine mode (MvM)
 
* Function keys:
 
* Function keys:
 
** ''F1''-''F9'' / Keypad ''1''-''9'': Change classes at next respawn (or instantly if you are in spawn)
 
** ''F1''-''F9'' / Keypad ''1''-''9'': Change classes at next respawn (or instantly if you are in spawn)
Line 28: Line 31:
 
** Note that some ''Shift''+''Fn'' keys will not work because they are bound to some engine functions (demoui, etc.). Also remember that you can commit suicide manually (to change class instantly) by pressing "End".
 
** Note that some ''Shift''+''Fn'' keys will not work because they are bound to some engine functions (demoui, etc.). Also remember that you can commit suicide manually (to change class instantly) by pressing "End".
 
** ''F10'': Accept request to connect to another server
 
** ''F10'': Accept request to connect to another server
** ''F11'': Take JPEG screenshot
+
** ''F11''/Keypad ''0'': Take favorite format screenshot (default JPEG)
** ''Shift''+''F11'': Take TGA screenshot
+
** ''Shift''+''F11'': Take alternate format screenshot (default TGA)
 
** ''F12'': Hide/cycle between netgraph 1-4
 
** ''F12'': Hide/cycle between netgraph 1-4
 
** ''Shift''+''F12'': Hide/show netgraph without cycling
 
** ''Shift''+''F12'': Hide/show netgraph without cycling
Line 36: Line 39:
 
** tr_walkway:
 
** tr_walkway:
 
*** ''Shift''+''Ctrl'': Uber noclip (for free roaming)
 
*** ''Shift''+''Ctrl'': Uber noclip (for free roaming)
*** ''Home'': tr_teleport (teleports you to yellow panels)
 
 
** Voice commands:
 
** Voice commands:
 
*** ''E'': "Medic!"
 
*** ''E'': "Medic!"
Line 45: Line 47:
 
*** ''O'': "No"
 
*** ''O'': "No"
 
*** ''F'': "Spy!"
 
*** ''F'': "Spy!"
*** ''K'': "Sentry ahead!"
 
*** ''P'': "Move up!"
 
 
*** ''Up'': "Go! Go! Go!"
 
*** ''Up'': "Go! Go! Go!"
 
*** ''Down'': "Incoming!"
 
*** ''Down'': "Incoming!"
 
*** ''Left'': "Go left!"
 
*** ''Left'': "Go left!"
 
*** ''Right'': "Go right!"
 
*** ''Right'': "Go right!"
*** ''J'': "Help!" + Says "Behind you!" to your team via text chat.
 
 
** Silly things:
 
** Silly things:
 
*** ''N'': "NEED A DISPENSER HERE!"
 
*** ''N'': "NEED A DISPENSER HERE!"
 
*** ''Shift''+''N'': Toggles "obnoxious" mode: Makes you say random (potentially misleading and/or irritating) voice commands as you move/jump around.
 
*** ''Shift''+''N'': Toggles "obnoxious" mode: Makes you say random (potentially misleading and/or irritating) voice commands as you move/jump around.
*** ''G'': Taunt
+
*** ''G'': Taunt menu (press twice to taunt)
*** ''Alt''+''Number keys'': Perform the taunt of the weapon you are currently using, but holding the weapon corresponding to the number you pressed.
+
*** ''Alt''+''Number keys'': Perform the taunt of the weapon you are currently using, but holding the weapon in the slot corresponding to the number you pressed. Does not work with taunts where either weapon's taunt is an attack, for example using the Sandman for a Scattergun taunt or a Revolver with a Knife taunt.
  
 
== Class-specific control table ==
 
== Class-specific control table ==
Line 81: Line 80:
 
|-
 
|-
 
| style="text-align:center;"| [[File:Soldierava.jpg|64px|link=#Soldier]] <br/> [[#Soldier|Soldier]]'''
 
| style="text-align:center;"| [[File:Soldierava.jpg|64px|link=#Soldier]] <br/> [[#Soldier|Soldier]]'''
 +
| Secondary attack
 
| Rocket jump (see [[#Soldier|below]])
 
| Rocket jump (see [[#Soldier|below]])
| Attack with melee weapon, then go back to previous weapon
 
 
| "Activate charge!"
 
| "Activate charge!"
 
| Weapon selection
 
| Weapon selection
 
| No
 
| No
|
+
| Can switch secondary attack and rocket jump buttons.
 
|
 
|
 
|-
 
|-
Line 146: Line 145:
 
|-
 
|-
 
| style="text-align:center;"| [[File:Engineerava.jpg|64px|link=#Engineer]] <br/> [[#Engineer|Engineer]]'''
 
| style="text-align:center;"| [[File:Engineerava.jpg|64px|link=#Engineer]] <br/> [[#Engineer|Engineer]]'''
| Rotate buildings
 
| Attack with melee weapon, then go back to previous weapon (useful for upgrading buildings)
 
 
|
 
|
* ''R'': Auto-swings Wrench until pressed again, then go back to previous weapon (useful for upgrading buildings as well)
+
* ''mouse2'': Rotate/move buildings
* ''Shift''+''R'': "Activate charge!"
+
* ''Shift''+''mouse2'': Select Wrangler, and fire both Sentry bullets and rockets.
 +
|
 +
* ''Click'': Select Wrench if not selected; swing Wrench if Wrench selected
 +
* ''Hold'': Select Wrench if not selected, and keep swinging
 +
* ''Shift''+''mouse3'': Sentry jump, with Sentry Gun pickup.
 +
| "Activate charge!"
 
| By default, set to build/destroy buildings:
 
| By default, set to build/destroy buildings:
 
* ''1'': (Re)build sentry
 
* ''1'': (Re)build sentry
Line 158: Line 160:
 
* ''5'': Destroy all buildings
 
* ''5'': Destroy all buildings
 
* ''Shift''+''1''-''5'': Weapon selection
 
* ''Shift''+''1''-''5'': Weapon selection
| By default, locked to weapons 1, 2, and 3. Can be disabled, or can be set to be locked to weapons 1 and 2.
+
| Locked to weapons 1 and 2
 
|
 
|
 
* Weapon selection can be assigned to ''1''-''5'', and rebuilding will then be assigned to ''Shift''+''1''-''5''. Alternatively, building can be assigned to ''1''-''5'', and '''re'''building to ''Shift''+''1''-''5'.
 
* Weapon selection can be assigned to ''1''-''5'', and rebuilding will then be assigned to ''Shift''+''1''-''5''. Alternatively, building can be assigned to ''1''-''5'', and '''re'''building to ''Shift''+''1''-''5'.
* Weapon lock can be customized or disabled
 
** Disabled (no weapon lock)
 
 
|
 
|
 +
* ''Shift''+''mouse1'' (Hold briefly): Quickly rebuild Sentry Gun at your feet
 
|-
 
|-
 
! class="header" | Class
 
! class="header" | Class
Line 176: Line 177:
 
| style="text-align:center;"| [[File:Medicava.jpg|64px|link=#Medic]] <br/> [[#Medic|Medic]]'''
 
| style="text-align:center;"| [[File:Medicava.jpg|64px|link=#Medic]] <br/> [[#Medic|Medic]]'''
 
| Activate ÜberCharge
 
| Activate ÜberCharge
| Attack with melee weapon, then go back to previous weapon
+
| ''attack3'' (can also be set to change resistance type of [[Vaccinator]])
 
|
 
|
 
* ''R'': "I am fully charged!"
 
* ''R'': "I am fully charged!"
 
* ''Shift''+''R'': "Activate charge!"
 
* ''Shift''+''R'': "Activate charge!"
 +
* Can also be set to change resistance type of [[Vaccinator]]
 
| Weapon selection
 
| Weapon selection
 
| No
 
| No
Line 186: Line 188:
 
* Be reverted to TF2's built-in autoheal system
 
* Be reverted to TF2's built-in autoheal system
 
* Disabled
 
* Disabled
| Scripted autoheal system by default (see [[#Medic|below]])
+
| Scripted autoheal system by default (see [[#Medic|below]]). Q can also be set to change resistance type of [[Vaccinator]].
 
|-
 
|-
 
| style="text-align:center;"| [[File:Sniperava.jpg|64px|link=#Sniper]] <br/> [[#Sniper|Sniper]]'''
 
| style="text-align:center;"| [[File:Sniperava.jpg|64px|link=#Sniper]] <br/> [[#Sniper|Sniper]]'''
Line 198: Line 200:
 
| Weapon selection
 
| Weapon selection
 
| No
 
| No
|
+
| If you are moving, then auto-rescope is disabled. If you are standing still, then auto-rescope is enabled. This can be altered to always re-scope or never re-scope.
 
|
 
|
 
|-
 
|-
Line 218: Line 220:
 
* Disguising sound is quieter
 
* Disguising sound is quieter
 
* Weapon lock can be customized or disabled
 
* Weapon lock can be customized or disabled
* Disguise Kit on number keys can be set to mini, full-row, or disabled.
+
* Disguise Kit on number keys can be set to mini, full-row, or disabled
 
* ''mouse3'' and ''Shift''+''mouse3'' actions can be swapped
 
* ''mouse3'' and ''Shift''+''mouse3'' actions can be swapped
 +
* ''B'' and ''Shift''+''B'' actions can be customized
 
* Audio feedback when disguising can be set back to class-specific, default sound, or muted
 
* Audio feedback when disguising can be set back to class-specific, default sound, or muted
 
|
 
|
 
* Auto-reload is disabled
 
* Auto-reload is disabled
 
* Auto-disguise after attacking, cloaking, and dropping Intelligence
 
* Auto-disguise after attacking, cloaking, and dropping Intelligence
* Auto-undisguise before taunting
+
* Auto-undisguise before taunting (requires pressing G one extra time)
 
* Disguise weapon is synchronized
 
* Disguise weapon is synchronized
 
* ''B'': Random disguise
 
* ''B'': Random disguise
* ''Shift''+''B'': Last disguise/synchronize disguise weapon
+
* ''Shift''+''B'': Random friendly disguise
 
|-
 
|-
 
! class="header" | Class
 
! class="header" | Class
Line 240: Line 243:
  
 
== [[Scout]] ==
 
== [[Scout]] ==
[[File:Scout.png|right|256px]]
+
[[File:buffed_red_scout.jpg|right|200px]]
 
* ''mouse2'':
 
* ''mouse2'':
 
** ''Click'': Throw ball if Sandman selected, then switch back to Scattergun/Force-A-Nature
 
** ''Click'': Throw ball if Sandman selected, then switch back to Scattergun/Force-A-Nature
 
** ''Hold'': Select Sandman if not selected, then throw ball immediately, and switch back to Scattergun/Force-A-Nature on release
 
** ''Hold'': Select Sandman if not selected, then throw ball immediately, and switch back to Scattergun/Force-A-Nature on release
 
* ''mouse3'': Force-A-Nature jump (you need to be running forwards and looking a bit downwards before pressing):
 
* ''mouse3'': Force-A-Nature jump (you need to be running forwards and looking a bit downwards before pressing):
{{youtube tn|tPlBvYtTo7M|Forcejumping guide}}
 
 
=== Scout preferences ===
 
=== Scout preferences ===
 
None.
 
None.
 
+
<br clear="all">
 
== [[Soldier]] ==
 
== [[Soldier]] ==
[[File:Soldier.png|right|256px]]
+
[[File:buffed_blu_soldier.jpg|right|200px]]
* ''mouse2'': Rocket jump (you need to aim at your feet before pressing).
+
* ''mouse3'': Rocket jump (you need to aim at your feet before pressing).
* ''mouse3'': Attack with melee weapon, then go back to previous weapon
+
** This can be changed to ''mouse2'' in the preferences. In this case, ''mouse3'' will trigger secondary fire.
{{youtube tn|THQ49T34FZY|Rocket jumping guide}}
 
 
=== Soldier preferences ===
 
=== Soldier preferences ===
None.
+
<pre>// Soldier preferences:
 
+
// Rocket jump button:
 +
// - pref_soldier_rocketjump_middle (default): Mouse wheel button will make the Soldier do a rocket jump. Right-click will trigger secondary fire.
 +
// - pref_soldier_rocketjump_right: Right-click will make the Soldier do a rocket jump. Mouse wheel button will trigger secondary fire.
 +
alias "pref_soldier_rocketjump" "pref_soldier_rocketjump_middle"</pre>
 +
<br clear="all">
 
== [[Pyro]] ==
 
== [[Pyro]] ==
[[File:Pyro.png|right|256px]]
+
[[File:buffed_red_pyro.jpg|right|200px]]
 
* ''mouse2'':
 
* ''mouse2'':
 
** ''Click'': Select flamethrower if not selected; airblast if using regular flamethrower and if Flamethrower selected
 
** ''Click'': Select flamethrower if not selected; airblast if using regular flamethrower and if Flamethrower selected
Line 264: Line 269:
 
* Weapon selection using the scroll wheel is locked to weapons 1 and 2 (wheel up = Flamethrower, wheel down = Shotgun). This can be changed in the preferences.
 
* Weapon selection using the scroll wheel is locked to weapons 1 and 2 (wheel up = Flamethrower, wheel down = Shotgun). This can be changed in the preferences.
 
* Ding-a-ling sound is quieter as Pyro
 
* Ding-a-ling sound is quieter as Pyro
* Ding-a-ling sound is even quieter when firing (so that it's not annoying while burning people)  
+
* Ding-a-ling sound is even quieter when firing (so that it's not annoying while burning people)
 
* ''mouse3'': Attack with melee weapon, then go back to Flamethrower
 
* ''mouse3'': Attack with melee weapon, then go back to Flamethrower
 
* ''Shift''+''mouse3'': Panic mode, the Pyro spins quickly and spews flames all around him. As a bonus, the Pyro switches rotation direction every time you use panic mode
 
* ''Shift''+''mouse3'': Panic mode, the Pyro spins quickly and spews flames all around him. As a bonus, the Pyro switches rotation direction every time you use panic mode
{{youtube tn|2dFcddAVoHQ|Demonstration of panic mode}}
 
 
=== Pyro preferences ===
 
=== Pyro preferences ===
 
<pre>// Pyro preferences:
 
<pre>// Pyro preferences:
Line 274: Line 278:
 
// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
 
// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
 
alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_12"</pre>
 
alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_12"</pre>
 
+
<br clear="all">
 
== [[Demoman]] ==
 
== [[Demoman]] ==
[[File:Demoman.png|right|256px]]
+
[[File:buffed_blu_demoman.jpg|right|200px]]
 
* ''mouse3'': Stickyjump (you need to have the Sticky Launcher or the Scottish Resistance, and a sticky under your feet before pressing).
 
* ''mouse3'': Stickyjump (you need to have the Sticky Launcher or the Scottish Resistance, and a sticky under your feet before pressing).
{{youtube tn|FjKt1kMcU-s|Sticky jumping}}
 
 
=== Demoman preferences ===
 
=== Demoman preferences ===
 
None.
 
None.
 
+
<br clear="all">
 
== [[Heavy]] ==
 
== [[Heavy]] ==
[[File:Heavy.png|right|256px]]
+
[[File:buffed_red_heavy.jpg|right|200px]]
 
* ''Shift''+''mouse1'': Continuously fire Minigun until ''Shift''+''mouse1'' is pressed again (useful when defending with a Dispenser handy or when pushing the cart)
 
* ''Shift''+''mouse1'': Continuously fire Minigun until ''Shift''+''mouse1'' is pressed again (useful when defending with a Dispenser handy or when pushing the cart)
 
* ''mouse2'': Spins Minigun/drops Sandvich
 
* ''mouse2'': Spins Minigun/drops Sandvich
Line 299: Line 302:
 
// - pref_heavy_weaponlock_none (default): Mouse wheel behaves normally
 
// - pref_heavy_weaponlock_none (default): Mouse wheel behaves normally
 
alias "pref_heavy_weaponlock" "pref_heavy_weaponlock_none"</pre>
 
alias "pref_heavy_weaponlock" "pref_heavy_weaponlock_none"</pre>
 
+
<br clear="all"><br clear="all">
 
== [[Engineer]] ==
 
== [[Engineer]] ==
[[File:Engineer.png|right|256px]]
+
[[File:buffed_blu_engineer.jpg|right|200px]]
* ''mouse3'': Attack with melee weapon, then go back to previous weapon (useful for upgrading buildings as well)
+
* ''Shift''+''mouse1'' (Hold briefly): Quickly rebuild Sentry Gun at your feet
* ''R'': Auto-swings Wrench until pressed again
+
* ''Shift''+''mouse2'': Select Wrangler, and fire both Sentry bullets and rockets.
* ''Shift''+''R'': "Activate charge!"
+
* ''mouse3'' (Click): Select Wrench if not selected; swing Wrench if Wrench selected
* By default, weapon selection using the scroll wheel is locked to weapons 1, 2 and 3.
+
* ''mouse3'' (Hold): Select Wrench if not selected, and keep swinging
 +
* ''Shift''+''mouse3'': Sentry jump, with Sentry Gun pickup if you release the button quickly enough.
 
* By default, number keys are for construction:
 
* By default, number keys are for construction:
 
** ''1'': (Re)build sentry (If your sentry is built, then it will destroy it. Then it will bring up the sentry blueprint, if you have enough metal)
 
** ''1'': (Re)build sentry (If your sentry is built, then it will destroy it. Then it will bring up the sentry blueprint, if you have enough metal)
Line 314: Line 318:
 
** ''Shift''+''1''-''5'': Weapon selection
 
** ''Shift''+''1''-''5'': Weapon selection
 
* Number keys can be set to weapon selection. In this case, ''Shift''+''1''-''5'' can be used for construction.
 
* Number keys can be set to weapon selection. In this case, ''Shift''+''1''-''5'' can be used for construction.
* By default, mouse wheel selection is locked to weapons 1, 2, and 3. It can be disabled, or can be set to be locked to weapons 1 and 2.
+
* Mouse wheel selection is locked to weapons 1 and 2, but you can select the Wrench by using the mouse wheel button.
 
=== Engineer preferences ===
 
=== Engineer preferences ===
 
<pre>// Engineer preferences:
 
<pre>// Engineer preferences:
// Weapon selection lock:
 
// - pref_engineer_weaponlock_12: Mouse wheel weapon selection is limited to weapons 1 and 2
 
// - pref_engineer_weaponlock_123 (default): Mouse wheel weapon selection is limited to weapons 1, 2, and 3
 
// - pref_engineer_weaponlock_none: Mouse wheel behaves normally
 
alias "pref_engineer_weaponlock" "pref_engineer_weaponlock_123"
 
 
// Quickbuilding with numbers:
 
// Quickbuilding with numbers:
 
// - pref_engineer_quickbuild_shift: Numbers 1-5 switch weapon, Shift+Numbers 1-5 quickbuild
 
// - pref_engineer_quickbuild_shift: Numbers 1-5 switch weapon, Shift+Numbers 1-5 quickbuild
Line 327: Line 326:
 
// - pref_engineer_quickbuild_safe: Numbers 1-5 only build if the building has not been built already, Shift+Numbers 1-5 quickbuild
 
// - pref_engineer_quickbuild_safe: Numbers 1-5 only build if the building has not been built already, Shift+Numbers 1-5 quickbuild
 
alias "pref_engineer_quickbuild" "pref_engineer_quickbuild_number"</pre>
 
alias "pref_engineer_quickbuild" "pref_engineer_quickbuild_number"</pre>
 
+
<br clear="all">
 
== [[Medic]] ==
 
== [[Medic]] ==
[[File:Medic.png|right|256px]]
+
[[File:buffed_red_medic.jpg|right|200px]]
 
* By default, the scripted autoheal system is enabled:
 
* By default, the scripted autoheal system is enabled:
 
** Automatically switches to Medigun when spawning
 
** Automatically switches to Medigun when spawning
 
** You do NOT need to hold the button to keep healing
 
** You do NOT need to hold the button to keep healing
** When holding the Medigun, it will automatically latch onto the first ally in sight
+
** When holding the Medigun, it will automatically latch onto the ally closest to the crosshair
** When the Medigun loses its target, it will automatically latch onto the first ally still alive in sight
+
** When the Medigun loses its target, it will automatically latch onto the next ally closest to the crosshair
** To switch your healing target, just click on it
+
** To switch your healing target, just click while the intended patient is closest to the crosshair
** To prevent healing (for example, to avoid healing an enemy Spy), hold the mouse button
+
** To prevent healing (for example, to avoid healing an enemy Spy), hold the primary fire button, healing resumes when the button is released
** ''mouse1'': Switch Medigun target (just click on the target)
+
** ''mouse1'': Switch Medigun target (just click when the target is closest to the crosshair)
** ''mouse2'': Switch to Medigun, then activate ubercharge if you are charged
+
** ''mouse2'': Switch to Medigun, then automatically heal as above and activate your ÜberCharge if you are charged
** ''mouse3'': Attack with melee weapon, then go back to previous weapon
+
** ''mouse3'': ''attack3'' (Change resistance type of [[Vaccinator]])
 
** The Medigun's "no target" sound is muted so that it's not annoying when you don't have any heal target
 
** The Medigun's "no target" sound is muted so that it's not annoying when you don't have any heal target
 
** The Medigun will keep healing while the Medic is taunting, as long as its target is still in healing range.
 
** The Medigun will keep healing while the Medic is taunting, as long as its target is still in healing range.
Line 345: Line 344:
 
* ''R'': "I am fully charged!"
 
* ''R'': "I am fully charged!"
 
* ''Shift''+''R'': "Activate charge!"
 
* ''Shift''+''R'': "Activate charge!"
 +
* Vaccinator resistance change button can be either assigned to Q, R, or mouse3. Whichever one you pick will lose its special features. Pick your poison. The default preference is to assign it to Q, which doesn't work properly with scripted autoheal anyway.
 
=== Medic preferences ===
 
=== Medic preferences ===
 
<pre>// Medic preferences:
 
<pre>// Medic preferences:
Line 351: Line 351:
 
// - pref_medic_autoheal_valve: TF2's built-in autoheal
 
// - pref_medic_autoheal_valve: TF2's built-in autoheal
 
// - pref_medic_autoheal_script (default): Scripted autoheal
 
// - pref_medic_autoheal_script (default): Scripted autoheal
alias "pref_medic_autoheal" "pref_medic_autoheal_script"</pre>
+
alias "pref_medic_autoheal" "pref_medic_autoheal_script"
 +
// Autocall:
 +
// Replace "hud_medicautocallersthreshold 70" by whatever health percentage below which teammates will call for Medic automatically
 +
// To turn autocall off, set this to "hud_medicautocallersthreshold 200".
 +
alias "pref_medic_autocallthreshold" "hud_medicautocallersthreshold 70"
 +
// Vaccinator resistance swap:
 +
// - pref_medic_vaccinator_reload: Push R to swap resistances
 +
// - pref_medic_vaccinator_mouse3: Push mouse3 to swap resistances
 +
// - pref_medic_vaccinator_q: Push Q to swap resistances
 +
alias "pref_medic_vaccinator" "pref_medic_vaccinator_q"</pre>
 +
<br clear="all">
  
 
== [[Sniper]] ==
 
== [[Sniper]] ==
[[File:Sniper.png|right|256px]]
+
[[File:buffed_blu_sniper.jpg|right|200px]]
 
* ''mouse2'': Click to switch to Sniper rifle or Huntsman or zoom, then zoom in if you are using the Sniper Rifle, or release a Huntsman arrow.
 
* ''mouse2'': Click to switch to Sniper rifle or Huntsman or zoom, then zoom in if you are using the Sniper Rifle, or release a Huntsman arrow.
 
* ''mouse3'': Attack with melee weapon, then go back to previous weapon
 
* ''mouse3'': Attack with melee weapon, then go back to previous weapon
 
* ''R'': Hold to take the Jarate and throw it, release to switch back to the previous weapon. If you are using the SMG, it will spray some bullets until you release it.
 
* ''R'': Hold to take the Jarate and throw it, release to switch back to the previous weapon. If you are using the SMG, it will spray some bullets until you release it.
 
* ''Shift''+''R'': "Activate charge!"
 
* ''Shift''+''R'': "Activate charge!"
{{youtube tn|JQMn0CIpM-U|Demonstration of Jarate}}
+
* By default, "smart" re-scope is enabled. This will make it so that the Sniper will only re-scope after a shot if you are standing still. If you are moving, then it will not re-scope after the shot. You can change this behavior in the preferences.
 
=== Sniper preferences ===
 
=== Sniper preferences ===
None.
+
<pre>// Sniper preferences:
 
+
// Auto-scope:
 +
// - pref_sniper_autoscope_always: Always re-scope after a scoped shot
 +
// - pref_sniper_autoscope_never: Never re-scope after a scoped shot
 +
// - pref_sniper_autoscope_smart (default): After a scoped shot, re-scope auomatically unless you are moving
 +
alias "pref_sniper_autoscope" "pref_sniper_autoscope_smart"</pre>
 +
<br clear="all">
 
== [[Spy]] ==
 
== [[Spy]] ==
[[File:Spy.png|right|256px]]
+
[[File:buffed_red_spy.jpg|right|200px]]
 
* By default, ''1''-''3'' act like the mini disguise selection menu:
 
* By default, ''1''-''3'' act like the mini disguise selection menu:
 
** ''4'': Reset menu state (if you pressed the wrong key)
 
** ''4'': Reset menu state (if you pressed the wrong key)
Line 392: Line 407:
 
* ''Shift''+''mouse3'': Hold it until the sequence is complete: Stabs once, then quickly switches to Sapper, disguises randomly, and keeps sapping until you release the button. Then switches to Revolver. Useful for taking out turtling Engineers. Requires ''sv_allow_wait_command 1'', otherwise it will simply sap buildings like regular ''mouse3''.
 
* ''Shift''+''mouse3'': Hold it until the sequence is complete: Stabs once, then quickly switches to Sapper, disguises randomly, and keeps sapping until you release the button. Then switches to Revolver. Useful for taking out turtling Engineers. Requires ''sv_allow_wait_command 1'', otherwise it will simply sap buildings like regular ''mouse3''.
 
* ''mouse3'' and ''Shift''+''mouse3'' can be swapped (''mouse3'' to stab+sap, ''Shift''+''mouse3'' to sap) in the preferences.
 
* ''mouse3'' and ''Shift''+''mouse3'' can be swapped (''mouse3'' to stab+sap, ''Shift''+''mouse3'' to sap) in the preferences.
* ''B'': Disguise randomly
+
* ''B'': Disguise randomly (can be customized to lastdisguise)
* ''Shift''+''B'': Take last disguise, or manually synchronize disguise weapon with your current one
+
* ''Shift''+''B'': Disguise randomly as an ally (can be customized to lastdisguise)
 +
* ''Alt''+''B'': Equip the Disguise Kit and taunt with it.
 
* Disguising feedback can either be:
 
* Disguising feedback can either be:
 
** Set to ''class-specific'': The Spy says the name of the class he is disguising as (but only you can hear it)
 
** Set to ''class-specific'': The Spy says the name of the class he is disguising as (but only you can hear it)
Line 404: Line 420:
 
** Automatically disguises randomly when you attack or when using the stab-and-sap sequence (''Shift''+''mouse3'')
 
** Automatically disguises randomly when you attack or when using the stab-and-sap sequence (''Shift''+''mouse3'')
 
** Automatically disguises after dropping the Intelligence
 
** Automatically disguises after dropping the Intelligence
* The Spy will always drop his disguise before taunting
+
* The Spy will always drop his disguise before taunting (requires pressing G one more time)
 
* Note: "Random disguise" is not actually a random disguise. It cycles between enemy Sniper, enemy Engineer, enemy Pyro, and enemy Demoman.
 
* Note: "Random disguise" is not actually a random disguise. It cycles between enemy Sniper, enemy Engineer, enemy Pyro, and enemy Demoman.
 
=== Spy preferences ===
 
=== Spy preferences ===
 
<pre>// Spy preferences:
 
<pre>// Spy preferences:
// Disguise management/weapon synchronization:
+
    // Disguise management/weapon synchronization:
// - pref_spy_autodisguise_true (default): Enable autodisguise, enable disguise weapon synchronization
+
        // - pref_spy_autodisguise_true (default): Enable autodisguise, enable disguise weapon synchronization
// - pref_spy_autodisguise_false: Disable autodisguise, disable disguise weapon synchronization
+
        // - pref_spy_autodisguise_false: Disable autodisguise, disable disguise weapon synchronization
alias "pref_spy_autodisguise" "pref_spy_autodisguise_true"
+
        alias "pref_spy_autodisguise" "pref_spy_autodisguise_true"
// Weapon selection lock:
+
    // Weapon selection lock:
// - pref_spy_weaponlock_13 (default): Mouse wheel weapon selection is limited to weapons 1 and 3
+
        // - pref_spy_weaponlock_13 (default): Mouse wheel weapon selection is limited to weapons 1 and 3
// - pref_spy_weaponlock_123: Mouse wheel weapon selection is limited to weapons 1, 2, and 3
+
        // - pref_spy_weaponlock_123: Mouse wheel weapon selection is limited to weapons 1, 2, and 3
// - pref_spy_weaponlock_none: Mouse wheel behaves normally
+
        // - pref_spy_weaponlock_none: Mouse wheel behaves normally
alias "pref_spy_weaponlock" "pref_spy_weaponlock_13"
+
        alias "pref_spy_weaponlock" "pref_spy_weaponlock_13"
// Disguise Kit:
+
    // Disguise kit:
// - pref_spy_disguisekit_mini (default): Numbers 1-3 are bound to act like the mini-Disguise Kit, shift+4 to drop disguise
+
        // - pref_spy_disguisekit_mini (default): Numbers 1-3 are bound to act like the mini-disguise kit, shift+4 to drop disguise
// - pref_spy_disguisekit_full: Numbers 1-9 are bound to act like the regular Disguise Kit, shift+0 to drop disguise
+
        // - pref_spy_disguisekit_full: Numbers 1-9 are bound to act like the regular disguise kit, shift+0 to drop disguise
// - pref_spy_disguisekit_none: Numbers 1-4 are bound to regular weapon selection, numbers 5-9 are some common disguises, shift+0 to drop disguise
+
        // - pref_spy_disguisekit_none: Numbers 1-4 are bound to regular weapon selection, numbers 5-9 are some common disguises, shift+0 to drop disguise
alias "pref_spy_disguisekit" "pref_spy_disguisekit_mini"
+
        alias "pref_spy_disguisekit" "pref_spy_disguisekit_mini"
// Sap/Stab-n-sap bind:
+
    // Sap/Stab-n-sap bind:
// - pref_spy_mouse3_sap (default): Use mouse3 to sap, shift+mouse3 to stab+sap
+
        // - pref_spy_mouse3_sap (default): Use mouse3 to sap, shift+mouse3 to stab+sap
// - pref_spy_mouse3_stabsap: Use mouse3 to stab+sap, shift+mouse3 to sap
+
        // - pref_spy_mouse3_stabsap: Use mouse3 to stab+sap, shift+mouse3 to sap
alias "pref_spy_mouse3" "pref_spy_mouse3_sap"
+
        alias "pref_spy_mouse3" "pref_spy_mouse3_sap"
// Voice feedback on disguise:
+
    // Voice feedback on disguise:
// - pref_spy_disguisesound_voice (default): The Spy will say which class he is disguising when using the number disguise kit (not the regular Disguise Kit)
+
        // - pref_spy_disguisesound_voice (default): The spy will say which class he is disguising when using the number disguise kit (not the regular disguise kit)
// - pref_spy_disguisesound_default: The standard disguise sound will play when disguising when using the number disguise kit (not the regular Disguise Kit)
+
        // - pref_spy_disguisesound_default: The standard disguise sound will play when disguising when using the number disguise kit (not the regular disguise kit)
// - pref_spy_disguisesound_off: No disguise sound will play when disguising
+
        // - pref_spy_disguisesound_off: No disguise sound will play when disguising
alias "pref_spy_disguisesound" "pref_spy_disguisesound_voice"</pre>
+
        alias "pref_spy_disguisesound" "pref_spy_disguisesound_voice"
 
+
    // "B" key behavior:
 +
        // - pref_spy_b_random (default): Use B to disguise randomly as an enemy
 +
        // - pref_spy_b_random_ally: Use B to disguise randomly as an ally
 +
        // - pref_spy_b_last: Use B for lastdisguise or manual weapon sync
 +
        // - pref_spy_b_friendly_pyro: Use B to disguise as an allied Pyro
 +
        alias "pref_spy_b" "pref_spy_b_random"
 +
    // "Shift+B" key behavior:
 +
        // - pref_spy_sb_random_ally (default): Use Shift+B to disguise randomly as an ally
 +
        // - pref_spy_sb_random: Use Shift+B to disguise randomly as an enemy
 +
        // - pref_spy_sb_last: Use Shift+B for lastdisguise or manual weapon sync
 +
        // - pref_spy_sb_friendly_pyro: Use Shift+B to disguise as an allied Pyro
 +
        alias "pref_spy_sb" "pref_spy_sb_random_ally"
 +
</pre>
 +
<br clear="all">
 
== Preferences ==
 
== Preferences ==
 
This configuration has a preference system. You can edit your preferences by editing ''preferences.cfg'', which should be in ''[SteamInstallDir]\steamapps\[User]\team fortress 2\tf\cfg''.
 
This configuration has a preference system. You can edit your preferences by editing ''preferences.cfg'', which should be in ''[SteamInstallDir]\steamapps\[User]\team fortress 2\tf\cfg''.
Line 471: Line 500:
 
General preferences allow you to:
 
General preferences allow you to:
 
* Choose whether ''F1''-''F9'' change class immediately or not
 
* Choose whether ''F1''-''F9'' change class immediately or not
 +
* Turn crouchjumping on or off
 
* Turn toggleduck on or off
 
* Turn toggleduck on or off
 
* Turn togglevoice on or off
 
* Turn togglevoice on or off
* Turn automatic demo recording on or off
 
 
* Set the default volume, and the alternate volume while you are speaking
 
* Set the default volume, and the alternate volume while you are speaking
 
* Turn the ding-a-ling sound on or off
 
* Turn the ding-a-ling sound on or off
 
* Set the default ding-a-ling sound volume, and an alternate quiet volume for classes where it can be annoying
 
* Set the default ding-a-ling sound volume, and an alternate quiet volume for classes where it can be annoying
 +
* Set the direction of the keypad bindings
 +
* Set your favorite screenshot format
 
<pre>// General preferences:
 
<pre>// General preferences:
 +
// FOV:
 +
// Replace "fov_desired 90" by whatever field of view you are most comfortable with.
 +
alias "pref_generic_fov_desired" "fov_desired 90"
 +
// Replace "viewmodel_fov 80" by whatever viewmodel view of view you are most comfortable with.
 +
alias "pref_generic_viewmodel_fov" "viewmodel_fov 65"
 +
// Mouse sensitivity:
 +
// Replace "sensitivity 7" by your prefered mouse sensitivity.
 +
alias "pref_generic_sensitivity" "sensitivity 7"
 +
// Replace "sensitivity 3.5" by your prefered mouse sensitivity while you are zoomed in (to be used for global zoom).
 +
alias "pref_generic_sensitivity_zoom" "sensitivity 3.5"
 
// Class selection suicide:
 
// Class selection suicide:
 
// - pref_generic_changeclass_now: Pressing F1-F9 will change class instantly, killing you if you are not in spawn. Shift+F1-F9 will change class on next respawn, or instantly if you are in spawn
 
// - pref_generic_changeclass_now: Pressing F1-F9 will change class instantly, killing you if you are not in spawn. Shift+F1-F9 will change class on next respawn, or instantly if you are in spawn
 
// - pref_generic_changeclass_later (default): Pressing F1-F9 will change class on next respawn, or instantly if you are in spawn. Shift+F1-F9 will change class instantly, killing you if you are not in spawn
 
// - pref_generic_changeclass_later (default): Pressing F1-F9 will change class on next respawn, or instantly if you are in spawn. Shift+F1-F9 will change class instantly, killing you if you are not in spawn
 
alias "pref_generic_changeclass" "pref_generic_changeclass_later"
 
alias "pref_generic_changeclass" "pref_generic_changeclass_later"
 +
// Crouchjump on/off:
 +
// - pref_generic_crouchjump_on (default): Pressing Space will both jump and duck
 +
// - preg_generic_crouchjump_off: Pressing Space will only jump
 +
alias "pref_generic_crouchjump" "pref_generic_crouchjump_on"
 
// Toggleduck on/off:
 
// Toggleduck on/off:
 
// - pref_generic_toggleduck_on (default): Press Ctrl to crouch, press Ctrl again to stand up
 
// - pref_generic_toggleduck_on (default): Press Ctrl to crouch, press Ctrl again to stand up
Line 490: Line 535:
 
// - preg_generic_togglevoice_off: Hold V to talk and lower volume, release V to stop talking and set back volume
 
// - preg_generic_togglevoice_off: Hold V to talk and lower volume, release V to stop talking and set back volume
 
alias "pref_generic_togglevoice" "pref_generic_togglevoice_on"
 
alias "pref_generic_togglevoice" "pref_generic_togglevoice_on"
// Auto-record demos:
+
// Keypad bindings direction:
// - pref_generic_autorecord_on (default): Demos will be recorded by default. Press Shift+` to stop recording, and Shift+` again to resume recording.
+
// - pref_generic_keypad_updown (default): Keypad 7 is Scout, keypad 1 is Medic
// - preg_generic_autorecord_off: Demos will not be recorded by default. Press Shift+` to start recording, and Shift+` again to stop recording.
+
// - pref_generic_keypad_downup: Keypad 1 is Scout, keypad 7 is Medic
alias "pref_generic_autorecord" "pref_generic_autorecord_off"
+
alias "pref_generic_keypad" "pref_generic_keypad_updown"
 +
// Default screenshot format:
 +
// - pref_generic_screenshot_jpeg (default): F11 / Keypad 0 take JPEG (quality 100) screenshots, Shift+F11 / Shift+Keypad 0 take TGA screenshots
 +
// - pref_generic_screenshot_tga: F11 / Keypad 0 take TGA screenshots, Shift+F11 / Shift+Keypad 0 take JPEG (quality 100) screenshots
 +
alias "pref_generic_screenshot" "pref_generic_screenshot_jpeg"
 
// Default volume:
 
// Default volume:
 
// Replace "volume 1" by whatever you usually use (for instance, "volume 0.5" for half volume)
 
// Replace "volume 1" by whatever you usually use (for instance, "volume 0.5" for half volume)
Line 500: Line 549:
 
// Replace "volume 0.35" by whatever you would like the volume to be changed to while you are speaking
 
// Replace "volume 0.35" by whatever you would like the volume to be changed to while you are speaking
 
alias "pref_generic_talkvolume" "volume 0.35"
 
alias "pref_generic_talkvolume" "volume 0.35"
 +
// Auto demo recording:
 +
// - pref_generic_record_on (default): Automatically starts recording when you launch the game
 +
// - pref_generic_record_off: Do not automatically record
 +
alias "pref_generic_record" "pref_generic_record_on"
 
// Enable ding-a-ling sound:
 
// Enable ding-a-ling sound:
 
// - pref_generic_dingaling_on (default): Enables ding-a-ling sound
 
// - pref_generic_dingaling_on (default): Enables ding-a-ling sound
Line 517: Line 570:
 
This script collection includes a sound pack for the Spy's Disguise Kit. You can [http://upload.gaiatools.com/files/spy_disguise_classes_0.zip download it] separately if you want to include these sounds in your scripts.
 
This script collection includes a sound pack for the Spy's Disguise Kit. You can [http://upload.gaiatools.com/files/spy_disguise_classes_0.zip download it] separately if you want to include these sounds in your scripts.
 
Individual files:
 
Individual files:
* [[Media:Spy_disguise_scout_normalized.wav|"I am that Scout?"]] - Meant to be used when disguising as a Scout.
+
* [[Media:Spy disguise standard.wav|Disguise]] - The disguise sound effect.
* [[Media:Spy_disguise_soldier_normalized.wav|"I am the Soldier."]] - Meant to be used when disguising as a Soldier.
+
* [[Media:Spy disguise scout normalized.wav|"I am that Scout?"]] - Meant to be used when disguising as a Scout.
* [[Media:Spy_disguise_pyro_normalized.wav|"I am the Pyro!"]] - Meant to be used when disguising as a Pyro.
+
* [[Media:Spy disguise soldier normalized.wav|"I am the Soldier."]] - Meant to be used when disguising as a Soldier.
* [[Media:Spy_disguise_demoman_normalized.wav|"I am the black scottish cyclops..."]] - Meant to be used when disguising as a Demoman.
+
* [[Media:Spy disguise pyro normalized.wav|"I am the Pyro!"]] - Meant to be used when disguising as a Pyro.
* [[Media:Spy_disguise_heavy_normalized.wav|"I am... fat man..."]] - Meant to be used when disguising as a Heavy.
+
* [[Media:Spy disguise demoman normalized.wav|"I am the black scottish cyclops..."]] - Meant to be used when disguising as a Demoman.
* [[Media:Spy_disguise_engineer_normalized.wav|"I am the Engineer."]] - Meant to be used when disguising as a Engineer.
+
* [[Media:Spy disguise heavy normalized.wav|"I am... fat man..."]] - Meant to be used when disguising as a Heavy.
* [[Media:Spy_disguise_medic_normalized.wav|"I am the Medic."]] - Meant to be used when disguising as a Medic.
+
* [[Media:Spy disguise engineer normalized.wav|"I am the Engineer."]] - Meant to be used when disguising as a Engineer.
* [[Media:Spy_disguise_sniper_normalized.wav|"I am the Sniper."]] - Meant to be used when disguising as a Sniper.
+
* [[Media:Spy disguise medic normalized.wav|"I am the Medic."]] - Meant to be used when disguising as a Medic.
* [[Media:Spy_disguise_spy1_normalized.wav|"Augh... Cheap suit!"]] - Meant to be used when disguising as an enemy Spy.
+
* [[Media:Spy disguise sniper normalized.wav|"I am the Sniper."]] - Meant to be used when disguising as a Sniper.
* [[Media:Spy_disguise_spy2_normalized.wav|"Oooh... I am handsome!"]] - Meant to be used when disguising as an enemy Spy.
+
* [[Media:Spy disguise spy1 normalized.wav|"Augh... Cheap suit!"]] - Meant to be used when disguising as an enemy Spy.
* [[Media:Spy_disguise_drop1_normalized.wav|"Spy, gentlemen."]] - Meant to be used when removing disguise/disguising as an ally Spy.
+
* [[Media:Spy disguise spy2 normalized.wav|"Oooh... I am handsome!"]] - Meant to be used when disguising as an enemy Spy.
* [[Media:Spy_disguise_drop2_normalized.wav|"Surprise!"]] - Meant to be used when removing disguise/disguising as an ally Spy.
+
* [[Media:Spy disguise drop1 normalized.wav|"Spy, gentlemen."]] - Meant to be used when removing disguise/disguising as an ally Spy.
* [[Media:Spy_disguise_drop3_normalized.wav|"Gentlemen?"]] - Meant to be used when removing disguise/disguising as an ally Spy.
+
* [[Media:Spy disguise drop2 normalized.wav|"Surprise!"]] - Meant to be used when removing disguise/disguising as an ally Spy.
* [[Media:Spy_disguise_drop4_normalized.wav|"*Ahem*"]] - Meant to be used when removing disguise/disguising as an ally Spy.
+
* [[Media:Spy disguise drop3 normalized.wav|"Gentlemen?"]] - Meant to be used when removing disguise/disguising as an ally Spy.
 +
* [[Media:Spy disguise drop4 normalized.wav|"*Ahem*"]] - Meant to be used when removing disguise/disguising as an ally Spy.
  
 
== Credits ==
 
== Credits ==
Some (most) ideas have been taken from scripts on [[Community_Scripts|TF2 Wiki]], but all scripts have been rewritten from the ground up so that they never use the bind command directly. Everything has also been pseudo-namespaced (class-specific aliases begin with classname_, generic aliases begin with generic_, preference-related aliases begin with pref_, etc).
+
Some (most) ideas have been taken from scripts on this wiki, but all scripts have been rewritten from the ground up so that they never use the bind command directly. Everything has also been pseudo-namespaced (class-specific aliases begin with classname_, generic aliases begin with generic_, preference-related aliases begin with pref_, etc).
 
 
[[Category:Collection scripts]]
 

Latest revision as of 03:19, 31 August 2016

Icon TF2 scripts.png
Wind's config is credit to team!

Wind's config is a script collection with a preference system that affects all nine classes of Team Fortress 2.

It also features a sound pack which can be downloaded separately in order to be used in your own scripts.

Download

Download latest version

To install, follow the instructions on GitHub.

All classes

  • Space: duckjump (jump+duck at the same time)
  • Ctrl: toggleduck (Ctrl to duck, Ctrl again to stand up). Can be changed to non-toggled in the preferences.
  • V: Toggles microphone on/off, and lowers volume while you are speaking. Can be changed to non-toggled in the preferences.
  • Alt+mouse2: Zoom in slightly (for any weapon), remove distracting HUD elements
  • End: Makes your character explode (suicide with gibs is awesome)
  • =: Spray
  • [: Decrease cl_interp
  • ]: Increase cl_interp
  • Shift+`: Toggle demo recording on/off
  • P: Inspect
  • Home: Save replay
  • Insert: Use action item
  • Delete: Set yourself as "Ready" in Mann Vs. Machine mode (MvM)
  • Function keys:
    • F1-F9 / Keypad 1-9: Change classes at next respawn (or instantly if you are in spawn)
    • Shift+F1-F9 / Shift+Keypad 1-9: Change classes instantly (and suicide if you are not in spawn)
    • The behavior of F1-F9 / Shift+F1-F9 can be inverted in the preferences.
    • Note that some Shift+Fn keys will not work because they are bound to some engine functions (demoui, etc.). Also remember that you can commit suicide manually (to change class instantly) by pressing "End".
    • F10: Accept request to connect to another server
    • F11/Keypad 0: Take favorite format screenshot (default JPEG)
    • Shift+F11: Take alternate format screenshot (default TGA)
    • F12: Hide/cycle between netgraph 1-4
    • Shift+F12: Hide/show netgraph without cycling
  • Spectator controls are bound to the standard mouse buttons and spacebar
  • Convenience keybinds:
    • tr_walkway:
      • Shift+Ctrl: Uber noclip (for free roaming)
    • Voice commands:
      • E: "Medic!"
      • R: "Activate charge!" for most classes, Shift+R for all classes
      • T: "Thanks!"
      • H: "Help!"
      • I: "Yes"
      • O: "No"
      • F: "Spy!"
      • Up: "Go! Go! Go!"
      • Down: "Incoming!"
      • Left: "Go left!"
      • Right: "Go right!"
    • Silly things:
      • N: "NEED A DISPENSER HERE!"
      • Shift+N: Toggles "obnoxious" mode: Makes you say random (potentially misleading and/or irritating) voice commands as you move/jump around.
      • G: Taunt menu (press twice to taunt)
      • Alt+Number keys: Perform the taunt of the weapon you are currently using, but holding the weapon in the slot corresponding to the number you pressed. Does not work with taunts where either weapon's taunt is an attack, for example using the Sandman for a Scattergun taunt or a Revolver with a Knife taunt.

Class-specific control table

Class mouse2 mouse3 R Number keys Weapon lock Preferences Extra features
Scoutava.jpg
Scout
  • Click: Throw ball if Sandman selected, then switch back to Scattergun/Force-A-Nature
  • Hold: Select Sandman if not selected, then throw ball immediately, and switch back to Scattergun/Force-A-Nature on release
Force-A-Nature jump (see below) "Activate charge!" Weapon selection No
Soldierava.jpg
Soldier
Secondary attack Rocket jump (see below) "Activate charge!" Weapon selection No Can switch secondary attack and rocket jump buttons.
Pyroava.jpg
Pyro
  • Click: Select flamethrower if not selected; airblast if using regular flamethrower and if Flamethrower selected
  • Hold: Select flamethrower if not selected, then airblast immediately if using regular Flamethrower
  • mouse3: Attack with melee weapon, then go back to Flamethrower
  • Shift+mouse3: Panic mode (see below)
"Activate charge!" Weapon selection Enabled by default:
  • Mouse wheel up: Flamethrower
  • Mouse wheel down: Shotgun/Flare Gun
  • "Ding-a-ling" sound is quieter
  • "Ding-a-ling" sound is even quieter while firing
  • Panic mode toggles direction
Class mouse2 mouse3 R Number keys Weapon lock Preferences Extra features
Demomanava.jpg
Demoman
Explode stickies Sticky jump (see below) "Activate charge!" Weapon selection No
Heavyava.jpg
Heavy
  • mouse2: Spins Minigun/drops Sandvich
  • Shift+mouse2: Selects Minigun if not selected, then keeps spinning until Shift+mouse2 is pressed again
  • mouse3: Attack with melee weapon, then go back to previous weapon
  • Shift+mouse3: Panic mode (see Pyro), with minigun.
"Activate charge!" Weapon selection Disabled by default. When enabled:
  • Mouse wheel up: Minigun
  • Mouse wheel down: Shotgun/nommable item
  • Shift+mouse1: Continuously fire Minigun until Shift+mouse1 is pressed again (useful when defending with a Dispenser handy or when pushing the cart)
  • "Ding-a-ling" sound is quieter
  • Panic mode toggles direction
Engineerava.jpg
Engineer
  • mouse2: Rotate/move buildings
  • Shift+mouse2: Select Wrangler, and fire both Sentry bullets and rockets.
  • Click: Select Wrench if not selected; swing Wrench if Wrench selected
  • Hold: Select Wrench if not selected, and keep swinging
  • Shift+mouse3: Sentry jump, with Sentry Gun pickup.
"Activate charge!" By default, set to build/destroy buildings:
  • 1: (Re)build sentry
  • 2: (Re)build Dispenser
  • 3: (Re)build Teleporter entrance
  • 4: (Re)build teleproter exit
  • 5: Destroy all buildings
  • Shift+1-5: Weapon selection
Locked to weapons 1 and 2
  • Weapon selection can be assigned to 1-5, and rebuilding will then be assigned to Shift+1-5. Alternatively, building can be assigned to 1-5, and rebuilding to Shift+1-5'.
  • Shift+mouse1 (Hold briefly): Quickly rebuild Sentry Gun at your feet
Class mouse2 mouse3 R Number keys Weapon lock Preferences Extra features
Medicava.jpg
Medic
Activate ÜberCharge attack3 (can also be set to change resistance type of Vaccinator)
  • R: "I am fully charged!"
  • Shift+R: "Activate charge!"
  • Can also be set to change resistance type of Vaccinator
Weapon selection No Autoheal can be:
  • Set to the scripted (better) autoheal system (by default)
  • Be reverted to TF2's built-in autoheal system
  • Disabled
Scripted autoheal system by default (see below). Q can also be set to change resistance type of Vaccinator.
Sniperava.jpg
Sniper
  • Click: Select rifle/huntsman if not selected; zoom in if using rifle and if rifle selected; release arrow if using huntsman and if Huntsman selected
  • Hold: Select rifle/Huntsman if not selected, then zoom in if using rifle
Attack with melee weapon, then go back to previous weapon
  • R (Hold): Switch to Jarate/SMG if not selected, throw piss/spray SMG bullets, then release to switch back to previous weapon
  • Shift+R: "Activate charge!"
Weapon selection No If you are moving, then auto-rescope is disabled. If you are standing still, then auto-rescope is enabled. This can be altered to always re-scope or never re-scope.
Spyava.jpg
Spy
Cloak + redisguise
  • mouse3: Click to set disguise weapon to secondary, hold to sap buildings then switch back to previous weapon
  • Shift+mouse3 (hold): Stab, then redisguise, switch to Sapper, sap buildings until released. When released, switch back to Revolver.
  • R: Reload
  • Shift+R: "Activate charge!"
By default, set to mini disguise kit mode (1-3). Can be set to full-row disguise kit, or can be set to weapon selection. If set to Disguise Kit, has class-specific voice feedback when disguising.
  • 1-3: Select disguise (two steps). Press Shift during the second step to disguise as an ally
  • 4: Reset disguise menu state
  • Shift+4: Drop disguise
By default, locked to weapons 1 and 3. Can be set to weapons 1, 2, and 3, or can be disabled.
  • Auto-disguise can be disabled
  • Disguising sound is quieter
  • Weapon lock can be customized or disabled
  • Disguise Kit on number keys can be set to mini, full-row, or disabled
  • mouse3 and Shift+mouse3 actions can be swapped
  • B and Shift+B actions can be customized
  • Audio feedback when disguising can be set back to class-specific, default sound, or muted
  • Auto-reload is disabled
  • Auto-disguise after attacking, cloaking, and dropping Intelligence
  • Auto-undisguise before taunting (requires pressing G one extra time)
  • Disguise weapon is synchronized
  • B: Random disguise
  • Shift+B: Random friendly disguise
Class mouse2 mouse3 R Number keys Weapon lock Preferences Extra features

Scout

Buffed red scout.jpg
  • mouse2:
    • Click: Throw ball if Sandman selected, then switch back to Scattergun/Force-A-Nature
    • Hold: Select Sandman if not selected, then throw ball immediately, and switch back to Scattergun/Force-A-Nature on release
  • mouse3: Force-A-Nature jump (you need to be running forwards and looking a bit downwards before pressing):

Scout preferences

None.

Soldier

Buffed blu soldier.jpg
  • mouse3: Rocket jump (you need to aim at your feet before pressing).
    • This can be changed to mouse2 in the preferences. In this case, mouse3 will trigger secondary fire.

Soldier preferences

// Soldier preferences:
	// Rocket jump button:
		// - pref_soldier_rocketjump_middle (default): Mouse wheel button will make the Soldier do a rocket jump. Right-click will trigger secondary fire.
		// - pref_soldier_rocketjump_right: Right-click will make the Soldier do a rocket jump. Mouse wheel button will trigger secondary fire.
		alias "pref_soldier_rocketjump" "pref_soldier_rocketjump_middle"


Pyro

Buffed red pyro.jpg
  • mouse2:
    • Click: Select flamethrower if not selected; airblast if using regular flamethrower and if Flamethrower selected
    • Hold: Select flamethrower if not selected, then airblast immediately if using regular Flamethrower
  • Weapon selection using the scroll wheel is locked to weapons 1 and 2 (wheel up = Flamethrower, wheel down = Shotgun). This can be changed in the preferences.
  • Ding-a-ling sound is quieter as Pyro
  • Ding-a-ling sound is even quieter when firing (so that it's not annoying while burning people)
  • mouse3: Attack with melee weapon, then go back to Flamethrower
  • Shift+mouse3: Panic mode, the Pyro spins quickly and spews flames all around him. As a bonus, the Pyro switches rotation direction every time you use panic mode

Pyro preferences

// Pyro preferences:
	// Weapon selection lock:
		// - pref_pyro_weaponlock_12 (default): Mouse wheel weapon selection is limited to weapons 1 and 2
		// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
		alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_12"


Demoman

Buffed blu demoman.jpg
  • mouse3: Stickyjump (you need to have the Sticky Launcher or the Scottish Resistance, and a sticky under your feet before pressing).

Demoman preferences

None.

Heavy

Buffed red heavy.jpg
  • Shift+mouse1: Continuously fire Minigun until Shift+mouse1 is pressed again (useful when defending with a Dispenser handy or when pushing the cart)
  • mouse2: Spins Minigun/drops Sandvich
  • Shift+mouse2: Selects Minigun if not selected, then keeps spinning until Shift+mouse2 is pressed again
  • mouse3: Attack with melee weapon, then go back to previous weapon
  • Shift+mouse3: Panic mode (see Pyro), but with minigun. Also switches direction.
  • Weapon lock is disabled by default. When enabled:
    • Mouse wheel up: Minigun
    • Mouse wheel down: Shotgun/nommable item
  • "Ding-a-ling" sound is quieter

Heavy preferences

// Heavy preferences:
	// Weapon selection lock:
		// - pref_heavy_weaponlock_12: Mouse wheel weapon selection is limited to weapons 1 and 2
		// - pref_heavy_weaponlock_none (default): Mouse wheel behaves normally
		alias "pref_heavy_weaponlock" "pref_heavy_weaponlock_none"



Engineer

Buffed blu engineer.jpg
  • Shift+mouse1 (Hold briefly): Quickly rebuild Sentry Gun at your feet
  • Shift+mouse2: Select Wrangler, and fire both Sentry bullets and rockets.
  • mouse3 (Click): Select Wrench if not selected; swing Wrench if Wrench selected
  • mouse3 (Hold): Select Wrench if not selected, and keep swinging
  • Shift+mouse3: Sentry jump, with Sentry Gun pickup if you release the button quickly enough.
  • By default, number keys are for construction:
    • 1: (Re)build sentry (If your sentry is built, then it will destroy it. Then it will bring up the sentry blueprint, if you have enough metal)
    • 2: (Re)build dispenser (If your dispenser is built, then it will destroy it. Then it will bring up the Dispenser blueprint, if you have enough metal)
    • 3: (Re)build teleporter entrance (If your teleporter entrance is built, then it will destroy it. Then it will bring up the Teleporter entrance blueprint, if you have enough metal)
    • 4: (Re)build teleporter exit (If your teleporter exit is built, then it will destroy it. Then it will bring up the Teleporter exit blueprint, if you have enough metal)
    • 5: Destroy all buildings
    • Shift+1-5: Weapon selection
  • Number keys can be set to weapon selection. In this case, Shift+1-5 can be used for construction.
  • Mouse wheel selection is locked to weapons 1 and 2, but you can select the Wrench by using the mouse wheel button.

Engineer preferences

// Engineer preferences:
	// Quickbuilding with numbers:
		// - pref_engineer_quickbuild_shift: Numbers 1-5 switch weapon, Shift+Numbers 1-5 quickbuild
		// - pref_engineer_quickbuild_number (default): Numbers 1-5 quickbuild, Shift+Numbers 1-5 switch weapon
		// - pref_engineer_quickbuild_safe: Numbers 1-5 only build if the building has not been built already, Shift+Numbers 1-5 quickbuild
		alias "pref_engineer_quickbuild" "pref_engineer_quickbuild_number"


Medic

Buffed red medic.jpg
  • By default, the scripted autoheal system is enabled:
    • Automatically switches to Medigun when spawning
    • You do NOT need to hold the button to keep healing
    • When holding the Medigun, it will automatically latch onto the ally closest to the crosshair
    • When the Medigun loses its target, it will automatically latch onto the next ally closest to the crosshair
    • To switch your healing target, just click while the intended patient is closest to the crosshair
    • To prevent healing (for example, to avoid healing an enemy Spy), hold the primary fire button, healing resumes when the button is released
    • mouse1: Switch Medigun target (just click when the target is closest to the crosshair)
    • mouse2: Switch to Medigun, then automatically heal as above and activate your ÜberCharge if you are charged
    • mouse3: attack3 (Change resistance type of Vaccinator)
    • The Medigun's "no target" sound is muted so that it's not annoying when you don't have any heal target
    • The Medigun will keep healing while the Medic is taunting, as long as its target is still in healing range.
  • The autoheal system can be disabled, or reverted to TF2's built-in autoheal system.
  • R: "I am fully charged!"
  • Shift+R: "Activate charge!"
  • Vaccinator resistance change button can be either assigned to Q, R, or mouse3. Whichever one you pick will lose its special features. Pick your poison. The default preference is to assign it to Q, which doesn't work properly with scripted autoheal anyway.

Medic preferences

// Medic preferences:
	// Autoheal:
		// - pref_medic_autoheal_none: No autoheal
		// - pref_medic_autoheal_valve: TF2's built-in autoheal
		// - pref_medic_autoheal_script (default): Scripted autoheal
		alias "pref_medic_autoheal" "pref_medic_autoheal_script"
	// Autocall:
		// Replace "hud_medicautocallersthreshold 70" by whatever health percentage below which teammates will call for Medic automatically
		// To turn autocall off, set this to "hud_medicautocallersthreshold 200".
		alias "pref_medic_autocallthreshold" "hud_medicautocallersthreshold 70"
	// Vaccinator resistance swap:
		// - pref_medic_vaccinator_reload: Push R to swap resistances
		// - pref_medic_vaccinator_mouse3: Push mouse3 to swap resistances
		// - pref_medic_vaccinator_q: Push Q to swap resistances
		alias "pref_medic_vaccinator" "pref_medic_vaccinator_q"


Sniper

Buffed blu sniper.jpg
  • mouse2: Click to switch to Sniper rifle or Huntsman or zoom, then zoom in if you are using the Sniper Rifle, or release a Huntsman arrow.
  • mouse3: Attack with melee weapon, then go back to previous weapon
  • R: Hold to take the Jarate and throw it, release to switch back to the previous weapon. If you are using the SMG, it will spray some bullets until you release it.
  • Shift+R: "Activate charge!"
  • By default, "smart" re-scope is enabled. This will make it so that the Sniper will only re-scope after a shot if you are standing still. If you are moving, then it will not re-scope after the shot. You can change this behavior in the preferences.

Sniper preferences

// Sniper preferences:
	// Auto-scope:
		// - pref_sniper_autoscope_always: Always re-scope after a scoped shot
		// - pref_sniper_autoscope_never: Never re-scope after a scoped shot
		// - pref_sniper_autoscope_smart (default): After a scoped shot, re-scope auomatically unless you are moving
		alias "pref_sniper_autoscope" "pref_sniper_autoscope_smart"


Spy

Buffed red spy.jpg
  • By default, 1-3 act like the mini disguise selection menu:
    • 4: Reset menu state (if you pressed the wrong key)
    • Shift+4: Drop disguise
    • 1, 1: Disguise as enemy Scout; Shift+1: Disguise as friendly Scout
    • 1, 2: Disguise as enemy Soldier; 1, Shift+2: Disguise as friendly Soldier
    • ... etc. ...
    • 3, 3: Disguise as enemy Spy; 3, Shift+3: Disguise as friendly Spy (drop disguise)
    • etc.
  • You can also set the 1-9 keys to act like the regular Disguise Kit:
    • Shift+0: Drop disguise
    • 1: Disguise as enemy Scout; Shift+1: Disguise as friendly Scout
    • 2: Disguise as enemy Soldier; Shift+2: Disguise as friendly Soldier
    • ... etc. ...
    • 9: Disguise as enemy Spy; Shift+9: Disguise as friendly Spy (drop disguise)
  • You can also disable the disguise menu on the number keys. In this case, the rest of the numbers are bound to useful disguises:
    • Shift+0: Drop disguise
    • 1-4: Select weapon
    • 5: Disguise as enemy Pyro; Shift+5: Disguise as friendly Pyro
    • 6: Disguise as enemy Demoman; Shift+6: Disguise as friendly Demoman
    • 7: Disguise as enemy Engineer; Shift+7: Disguise as friendly Engineer
    • 8: Disguise as enemy Sniper; Shift+8: Disguise as friendly Sniper
    • 9: Disguise as enemy Spy; Shift+9: Disguise as friendly Spy (drop disguise)
  • R: Reload. (Auto-reload is disabled for the Spy, because it is annoying and because it can be useful to manually reload while disguised)
  • Shift+R: "Activate charge!"
  • mouse3: Click to set your disguise's weapon to secondary. Hold to sap buildings
  • Shift+mouse3: Hold it until the sequence is complete: Stabs once, then quickly switches to Sapper, disguises randomly, and keeps sapping until you release the button. Then switches to Revolver. Useful for taking out turtling Engineers. Requires sv_allow_wait_command 1, otherwise it will simply sap buildings like regular mouse3.
  • mouse3 and Shift+mouse3 can be swapped (mouse3 to stab+sap, Shift+mouse3 to sap) in the preferences.
  • B: Disguise randomly (can be customized to lastdisguise)
  • Shift+B: Disguise randomly as an ally (can be customized to lastdisguise)
  • Alt+B: Equip the Disguise Kit and taunt with it.
  • Disguising feedback can either be:
    • Set to class-specific: The Spy says the name of the class he is disguising as (but only you can hear it)
    • Set to the default sound
    • Muted completely
  • By default, weapon selection using the scroll wheel is locked to weapons 1 and 3 (wheel up = Revolver/Ambassador, wheel down = Knife). You can disable it, or set it to be locked to weapons 1, 2 and 3.
  • By default, you will auto-disguise when necessary, and your disguise weapon will be synchronized with the one you are holding (Revolver = disguise's primary weapon, Knife = disguise's melee weapon). You can disable this. When enabled:
    • mouse2: Cloak, and take your last disguise if you are not already disguised
    • Automatically disguises with the last disguise when you change weapon or cloak
    • Automatically disguises randomly when you attack or when using the stab-and-sap sequence (Shift+mouse3)
    • Automatically disguises after dropping the Intelligence
  • The Spy will always drop his disguise before taunting (requires pressing G one more time)
  • Note: "Random disguise" is not actually a random disguise. It cycles between enemy Sniper, enemy Engineer, enemy Pyro, and enemy Demoman.

Spy preferences

// Spy preferences:
    // Disguise management/weapon synchronization:
        // - pref_spy_autodisguise_true (default): Enable autodisguise, enable disguise weapon synchronization
        // - pref_spy_autodisguise_false: Disable autodisguise, disable disguise weapon synchronization
        alias "pref_spy_autodisguise" "pref_spy_autodisguise_true"
    // Weapon selection lock:
        // - pref_spy_weaponlock_13 (default): Mouse wheel weapon selection is limited to weapons 1 and 3
        // - pref_spy_weaponlock_123: Mouse wheel weapon selection is limited to weapons 1, 2, and 3
        // - pref_spy_weaponlock_none: Mouse wheel behaves normally
        alias "pref_spy_weaponlock" "pref_spy_weaponlock_13"
    // Disguise kit:
        // - pref_spy_disguisekit_mini (default): Numbers 1-3 are bound to act like the mini-disguise kit, shift+4 to drop disguise
        // - pref_spy_disguisekit_full: Numbers 1-9 are bound to act like the regular disguise kit, shift+0 to drop disguise
        // - pref_spy_disguisekit_none: Numbers 1-4 are bound to regular weapon selection, numbers 5-9 are some common disguises, shift+0 to drop disguise
        alias "pref_spy_disguisekit" "pref_spy_disguisekit_mini"
    // Sap/Stab-n-sap bind:
        // - pref_spy_mouse3_sap (default): Use mouse3 to sap, shift+mouse3 to stab+sap
        // - pref_spy_mouse3_stabsap: Use mouse3 to stab+sap, shift+mouse3 to sap
        alias "pref_spy_mouse3" "pref_spy_mouse3_sap"
    // Voice feedback on disguise:
        // - pref_spy_disguisesound_voice (default): The spy will say which class he is disguising when using the number disguise kit (not the regular disguise kit)
        // - pref_spy_disguisesound_default: The standard disguise sound will play when disguising when using the number disguise kit (not the regular disguise kit)
        // - pref_spy_disguisesound_off: No disguise sound will play when disguising
        alias "pref_spy_disguisesound" "pref_spy_disguisesound_voice"
    // "B" key behavior:
        // - pref_spy_b_random (default): Use B to disguise randomly as an enemy
        // - pref_spy_b_random_ally: Use B to disguise randomly as an ally
        // - pref_spy_b_last: Use B for lastdisguise or manual weapon sync
        // - pref_spy_b_friendly_pyro: Use B to disguise as an allied Pyro
        alias "pref_spy_b" "pref_spy_b_random"
    // "Shift+B" key behavior:
        // - pref_spy_sb_random_ally (default): Use Shift+B to disguise randomly as an ally
        // - pref_spy_sb_random: Use Shift+B to disguise randomly as an enemy
        // - pref_spy_sb_last: Use Shift+B for lastdisguise or manual weapon sync
        // - pref_spy_sb_friendly_pyro: Use Shift+B to disguise as an allied Pyro
        alias "pref_spy_sb" "pref_spy_sb_random_ally"


Preferences

This configuration has a preference system. You can edit your preferences by editing preferences.cfg, which should be in [SteamInstallDir]\steamapps\[User]\team fortress 2\tf\cfg. Scripts for some classes have certain preferences, so that you can fine-tune their behavior. There are also general preferences, which apply no matter the class you use.

Editing preferences

A typical preference looks like this:

// Pyro preferences:
	// Weapon selection lock:
		// - pref_pyro_weaponlock_12 (default): Mouse wheel weapon selection is limited to weapons 1 and 2
		// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
		alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_12"

As you can see, each preference has a name ("Weapon selection lock"), a category ("Pyro preferences"), and different values ("pref_pyro_weaponlock_12" and "pref_pyro_weaponlock_none"), one of which is the default ("pref_pyro_weaponlock_12" in this case). Now look at the "alias" line. The default being "pref_pyro_weaponlock_12" (mouse wheel selection is locked to weapons 1 and 2), the last part of the "alias" line is "pref_pyro_weaponlock_12". If you want to disable weapon lock, you would replace this by "pref_pyro_weaponlock_none" and it would end up looking like this:

// Pyro preferences:
	// Weapon selection lock:
		// - pref_pyro_weaponlock_12 (default): Mouse wheel weapon selection is limited to weapons 1 and 2
		// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
		alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_none"

Then save the file. For your changes to take effects, you can do one of the following:

  • Restart TF2
  • If you're in-game, change class to something other than your current class (the Pyro in this case), then switch back
  • If you're in-game but not in spawn, and don't want to die, type "class_reload" in the console

If you want to revert your preferences, you can either:

  • Put back the default value, like this:
// Pyro preferences:
	// Weapon selection lock:
		// - pref_pyro_weaponlock_12 (default): Mouse wheel weapon selection is limited to weapons 1 and 2
		// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
		alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_12"
  • Comment out the "alias" line, like this:
// Pyro preferences:
	// Weapon selection lock:
		// - pref_pyro_weaponlock_12 (default): Mouse wheel weapon selection is limited to weapons 1 and 2
		// - pref_pyro_weaponlock_none: Mouse wheel behaves normally
		//alias "pref_pyro_weaponlock" "pref_pyro_weaponlock_none"

General preferences

General preferences allow you to:

  • Choose whether F1-F9 change class immediately or not
  • Turn crouchjumping on or off
  • Turn toggleduck on or off
  • Turn togglevoice on or off
  • Set the default volume, and the alternate volume while you are speaking
  • Turn the ding-a-ling sound on or off
  • Set the default ding-a-ling sound volume, and an alternate quiet volume for classes where it can be annoying
  • Set the direction of the keypad bindings
  • Set your favorite screenshot format
// General preferences:
	// FOV:
		// Replace "fov_desired 90" by whatever field of view you are most comfortable with.
		alias "pref_generic_fov_desired" "fov_desired 90"
		// Replace "viewmodel_fov 80" by whatever viewmodel view of view you are most comfortable with.
		alias "pref_generic_viewmodel_fov" "viewmodel_fov 65"
	// Mouse sensitivity:
		// Replace "sensitivity 7" by your prefered mouse sensitivity.
		alias "pref_generic_sensitivity" "sensitivity 7"
		// Replace "sensitivity 3.5" by your prefered mouse sensitivity while you are zoomed in (to be used for global zoom).
		alias "pref_generic_sensitivity_zoom" "sensitivity 3.5"
	// Class selection suicide:
		// - pref_generic_changeclass_now: Pressing F1-F9 will change class instantly, killing you if you are not in spawn. Shift+F1-F9 will change class on next respawn, or instantly if you are in spawn
		// - pref_generic_changeclass_later (default): Pressing F1-F9 will change class on next respawn, or instantly if you are in spawn. Shift+F1-F9 will change class instantly, killing you if you are not in spawn
		alias "pref_generic_changeclass" "pref_generic_changeclass_later"
	// Crouchjump on/off:
		// - pref_generic_crouchjump_on (default): Pressing Space will both jump and duck
		// - preg_generic_crouchjump_off: Pressing Space will only jump
		alias "pref_generic_crouchjump" "pref_generic_crouchjump_on"
	// Toggleduck on/off:
		// - pref_generic_toggleduck_on (default): Press Ctrl to crouch, press Ctrl again to stand up
		// - preg_generic_toggleduck_off: Hold Ctrl to crouch, release Ctrl to stand up
		alias "pref_generic_toggleduck" "pref_generic_toggleduck_on"
	// Togglevoice on/off:
		// - pref_generic_togglevoice_on (default): Press V to talk and lower volume, press V again to stop talking and set back volume
		// - preg_generic_togglevoice_off: Hold V to talk and lower volume, release V to stop talking and set back volume
		alias "pref_generic_togglevoice" "pref_generic_togglevoice_on"
	// Keypad bindings direction:
		// - pref_generic_keypad_updown (default): Keypad 7 is Scout, keypad 1 is Medic
		// - pref_generic_keypad_downup: Keypad 1 is Scout, keypad 7 is Medic
		alias "pref_generic_keypad" "pref_generic_keypad_updown"
	// Default screenshot format:
		// - pref_generic_screenshot_jpeg (default): F11 / Keypad 0 take JPEG (quality 100) screenshots, Shift+F11 / Shift+Keypad 0 take TGA screenshots
		// - pref_generic_screenshot_tga: F11 / Keypad 0 take TGA screenshots, Shift+F11 / Shift+Keypad 0 take JPEG (quality 100) screenshots
		alias "pref_generic_screenshot" "pref_generic_screenshot_jpeg"
	// Default volume:
		// Replace "volume 1" by whatever you usually use (for instance, "volume 0.5" for half volume)
		alias "pref_generic_defaultvolume" "volume 1"
	// Default talking volume:
		// Replace "volume 0.35" by whatever you would like the volume to be changed to while you are speaking
		alias "pref_generic_talkvolume" "volume 0.35"
	// Auto demo recording:
		// - pref_generic_record_on (default): Automatically starts recording when you launch the game
		// - pref_generic_record_off: Do not automatically record
		alias "pref_generic_record" "pref_generic_record_on"
	// Enable ding-a-ling sound:
		// - pref_generic_dingaling_on (default): Enables ding-a-ling sound
		// - pref_generic_dingaling_off: Disables ding-a-ling sound
		alias "pref_generic_dingaling" "pref_generic_dingaling_on"
	// Default ding-a-ling volume:
		// Replace "tf_dingaling_volume 0.3" by whatever you usually use for this sound's volume
		alias "pref_generic_dingalingvol" "tf_dingaling_volume 0.3"
	// "Quiet" ding-a-ling volume:
		// Replace "tf_dingaling_volume 0.125" by whatever you use when you want this sound to be quieter (for example, as Pyro)
		alias "pref_generic_dingalinglow" "tf_dingaling_volume 0.125"
	// "Superquiet" ding-a-ling volume:
		// Replace "tf_dingaling_volume 0.025" by whatever you use when you want this sound to be really quieter (for example, when firing the Flamethrower as Pyro)
		alias "pref_generic_dingalingxlow" "tf_dingaling_volume 0.025"

Sound pack

This script collection includes a sound pack for the Spy's Disguise Kit. You can download it separately if you want to include these sounds in your scripts. Individual files:

Credits

Some (most) ideas have been taken from scripts on this wiki, but all scripts have been rewritten from the ground up so that they never use the bind command directly. Everything has also been pseudo-namespaced (class-specific aliases begin with classname_, generic aliases begin with generic_, preference-related aliases begin with pref_, etc).