User:WindPower/Wind's config
Contents
WindPower's config
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.
Download
I might make a tool that auto-updates scripts and stuff if there is demand. For now, it's just a simple rar file.
- 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
- 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.
- End: Makes your character explode (suicide with gibs is awesome)
- =: Spray
- [ / ]: Decrease/increase cl_interp
- Shift+`: Toggle demo recording on/off
- Function keys:
- F1-F9: Change classes at next respawn (or instantly if you are in spawn)
- Shift+F1-F9: 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: Take JPEG screenshot
- Shift+F11: Take TGA screenshot
- F12: Hide/cycle between netgraph 1-4
- Shift+F12: Hide/show netgraph without cycling
- Spectator controls:
- Alt+mouse1: Next player
- Alt+mouse2: Previous player
- Alt+space: Toggle spectator mode
- Convenience keybinds:
- tr_walkway:
- Shift+Ctrl: Uber noclip (for free roaming)
- Home: tr_teleport (teleports you to yellow panels)
- 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!"
- K: "Sentry ahead!"
- P: "Move up!"
- 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.
- Up: "Go! Go! Go!"
- Down: "Incoming!"
- Left: "Go left!"
- Right: "Go right!"
- J: "Help!" + Says "Behind you!" to your team via text chat.
- tr_walkway:
Class-specific control table
Class | mouse2 | mouse3 | R | Number keys | Weapon lock | Preferences | Extra features |
---|---|---|---|---|---|---|---|
Scout |
|
Force-a-Nature jump (see below) | "Activate charge!" | Weapon selection | No | ||
Soldier | Rocket jump (see below) | Attack with melee weapon, then go back to previous weapon | "Activate charge!" | Weapon selection | No | ||
Pyro |
|
|
"Activate charge!" | Weapon selection | Enabled by default:
|
|
|
Class | mouse2 | mouse3 | R | Number keys | Weapon lock | Preferences | Extra features |
Demoman | Explode stickies | Sticky jump (see below) | "Activate charge!" | Weapon selection | No | ||
Heavy |
|
|
"Activate charge!" | Weapon selection | Disabled by default. When enabled:
|
|
|
Engineer | Rotate buildings | Attack with melee weapon, then go back to previous weapon (useful for upgrading buildings) |
|
By default, set to build/destroy buildings:
|
By default, locked to weapons 1, 2, and 3. Can be disabled, or can be set to be locked to weapons 1 and 2. |
|
|
Class | mouse2 | mouse3 | R | Number keys | Weapon lock | Preferences | Extra features |
Medic | Activate ÜberCharge | Attack with melee weapon, then go back to previous weapon |
|
Weapon selection | No | Autoheal can be:
|
Scripted autoheal system by default (see below) |
Sniper |
|
Attack with melee weapon, then go back to previous weapon |
|
Weapon selection | No | ||
Spy | Cloak + auto-disguise |
|
|
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.
|
By default, locked to weapons 1 and 3. Can be set to weapons 1, 2, and 3, or can be disabled. |
|
|
Class | mouse2 | mouse3 | R | Number keys | Weapon lock | Preferences | Extra features |
Scout
- mouse2:
- Click: Select bat if not selected; throw ball if using sandman and if sandman selected
- Hold: Select bat if not selected, then throw ball immediately if using sandman
- mouse3: Force-a-Nature jump (you need to be running forwards and looking a bit downwards before pressing):
Scout preferences
None.
Soldier
- mouse2: Rocket jump (you need to aim at your feet before pressing).
- mouse3: Attack with melee weapon, then go back to previous weapon
Soldier preferences
None.
Pyro
- 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
- 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
- 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
- mouse3: Attack with melee weapon, then go back to previous weapon (useful for upgrading buildings as well)
- R: Auto-swings wrench until pressed again
- Shift+R: "Activate charge!"
- By default, weapon selection using the scroll wheel is locked to weapons 1, 2 and 3.
- 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.
- 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.
Engineer preferences
// 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: // - 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 alias "pref_engineer_quickbuild" "pref_engineer_quickbuild_number"
Medic
- 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 first ally in sight
- When the medigun loses its target, it will automatically latch onto the first ally still alive in sight
- To switch your healing target, just click on it
- To prevent healing (for example, to avoid healing an enemy spy), hold the mouse button
- mouse1: Switch medigun target (just click on the target)
- mouse2: Switch to medigun, then activate ubercharge if you are charged
- mouse3: Attack with melee weapon, then go back to previous weapon
- The medigun's "no target" sound is muted so that it's not annoying when you don't have any heal target
- The autoheal system can be disabled, or reverted to TF2's built-in autoheal system.
- R: "I am fully charged!"
- Shift+R: "Activate charge!"
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"
Sniper
- 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!"
Sniper preferences
None.
Spy
- 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
- 1, Shift+1: Disguise as friendly Scout
- 1, 2: Disguise as enemy Soldier
- 1, Shift+2: Disguise as friendly Soldier
- 1, 3: Disguise as enemy Pyro
- 1, Shift+3: Disguise as friendly Pyro
- 2, 1: Disguise as enemy Demoman
- 2, Shift+1: Disguise as friendly Demoman
- 2, 2: Disguise as enemy Heavy
- 2, Shift+2: Disguise as friendly Heavy
- 2, 3: Disguise as enemy Engineer
- 2, Shift+3: Disguise as friendly Engineer
- 3, 1: Disguise as enemy Medic
- 3, Shift+1: Disguise as friendly Medic
- 3, 2: Disguise as enemy Sniper
- 3, Shift+2: Disguise as friendly Sniper
- 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
- 3: Disguise as enemy Pyro
- Shift+3: Disguise as friendly Pyro
- 4: Disguise as enemy Demoman
- Shift+4: Disguise as friendly Demoman
- 5: Disguise as enemy Heavy
- Shift+5: Disguise as friendly Heavy
- 6: Disguise as enemy Engineer
- Shift+6: Disguise as friendly Engineer
- 7: Disguise as enemy Medic
- Shift+7: Disguise as friendly Medic
- 8: Disguise as enemy Sniper
- Shift+8: Disguise as friendly Sniper
- 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
- Shift+B: Take last disguise, or manually synchronize disguise weapon with your current one
- Disguising sound is quieter
- 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)
- 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"
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 toggleduck 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
- 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
// General preferences: // 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" // 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" // Auto-record demos: // - pref_generic_autorecord_on (default): Demos will be recorded by default. Press Shift+` to stop recording, and Shift+` again to resume recording. // - preg_generic_autorecord_off: Demos will not be recorded by default. Press Shift+` to start recording, and Shift+` again to stop recording. alias "pref_generic_autorecord" "pref_generic_autorecord_off" // 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" // 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"
Credits
Some (most) ideas have been taken from scripts on 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).