Difference between revisions of "User:WindPower/Wind's config"
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| | + | {{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
“ | WindPower's config is credit to team!
— Smashman
|
” |
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.
Contents
Download
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.
- 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 + redisguise |
|
|
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.
|
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: 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
- 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 // - 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
- 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
- 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; 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:
- "I am that Scout?" - Meant to be used when disguising as a Scout.
- "I am the Soldier." - Meant to be used when disguising as a Soldier.
- "I am the Pyro!" - Meant to be used when disguising as a Pyro.
- "I am the black scottish cyclops..." - Meant to be used when disguising as a Demoman.
- "I am... fat man..." - Meant to be used when disguising as a Heavy.
- "I am the Engineer." - Meant to be used when disguising as a Engineer.
- "I am the Medic." - Meant to be used when disguising as a Medic.
- "I am the Sniper." - Meant to be used when disguising as a Sniper.
- "Augh... Cheap suit!" - Meant to be used when disguising as an enemy Spy.
- "Oooh... I am handsome!" - Meant to be used when disguising as an enemy Spy.
- "Spy, gentlemen." - Meant to be used when removing disguise/disguising as an ally Spy.
- "Surprise!" - Meant to be used when removing disguise/disguising as an ally Spy.
- "Gentlemen?" - Meant to be used when removing disguise/disguising as an ally Spy.
- "*Ahem*" - Meant to be used when removing disguise/disguising as an ally Spy.
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).