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

From Team Fortress Wiki
Jump to: navigation, search
m (woot woot)
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|WindPower's]] config is credit to team!}}
  
 
'''[[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.
 
'''[[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.

Revision as of 20:06, 6 July 2010

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

WindPower's configuration 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 v1.7

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.

  • 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 / 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: Take JPEG screenshot
    • Shift+F11: Take TGA screenshot
    • 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)
      • 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!"
      • Up: "Go! Go! Go!"
      • Down: "Incoming!"
      • Left: "Go left!"
      • Right: "Go right!"
      • J: "Help!" + Says "Behind you!" to your team via text chat.
    • 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
      • Alt+Number keys: Perform the taunt of the weapon you are currently using, but holding the weapon corresponding to the number you pressed.

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
Rocket jump (see below) Attack with melee weapon, then go back to previous weapon "Activate charge!" Weapon selection No
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
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)
  • Shift+R: "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
By default, locked to weapons 1, 2, and 3. Can be disabled, or can be set to be 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'.
  • Weapon lock can be customized or disabled
    • Disabled (no weapon lock)
Class mouse2 mouse3 R Number keys Weapon lock Preferences Extra features
Medicava.jpg
Medic
Activate ÜberCharge Attack with melee weapon, then go back to previous weapon
  • R: "I am fully charged!"
  • Shift+R: "Activate charge!"
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)
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
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
  • 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
  • Disguise weapon is synchronized
  • B: Random disguise
  • Shift+B: Last disguise/synchronize disguise weapon
Class mouse2 mouse3 R Number keys Weapon lock Preferences Extra features

Scout

Scout.png
  • 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):
Forcejumping guide

Scout preferences

None.

Soldier

Soldier.png
  • mouse2: Rocket jump (you need to aim at your feet before pressing).
  • mouse3: Attack with melee weapon, then go back to previous weapon
Rocket jumping guide

Soldier preferences

None.

Pyro

Pyro.png
  • 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
Demonstration of 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

Demoman.png
  • mouse3: Stickyjump (you need to have the Sticky Launcher or the Scottish Resistance, and a sticky under your feet before pressing).
Sticky jumping

Demoman preferences

None.

Heavy

Heavy.png
  • 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

Engineer.png
  • 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
		// - 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

Medic.png
  • 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 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!"

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

Sniper.png
  • 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!"
Demonstration of Jarate

Sniper preferences

None.

Spy

Spy.png
  • 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
  • Shift+B: Take last disguise, or manually synchronize disguise weapon with your current one
  • 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
  • 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"

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"

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 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).