User:WindPower/Wind's config

From Team Fortress Wiki
< User:WindPower
Revision as of 14:00, 2 October 2011 by Dark Pyro (talk | contribs) (Medic: Instruction clarification (No offence))
Jump to: navigation, search
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 v1.14

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.
  • Alt+mouse2: Zoom in slightly (for any weapon), remove distracting HUD elements
  • End: Makes your character explode (suicide with gibs is awesome)
  • =: Spray
  • [ / ]: Decrease/increase cl_interp
  • Shift+`: Toggle demo recording on/off
  • P: Inspect
  • Home: Save replay
  • 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
      • 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
Secondary attack Rocket jump (see below) "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
  • 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 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
  • 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
  • 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).

Soldier preferences

None.

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: 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"
    // 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"


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!"

Sniper preferences

None.

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)
  • 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"
    // "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).