A collection of scripts I have found to be useful for playing Team Fortress 2.
Github Link: Lyrositor/TF2-Scripts
GAMEBANANA Link: TF2 Scripts - Script Collection
Note: this collection makes no use of wait
commands, ensuring maximum compatibility on all servers.
Most features are usable by all classes, but a few are class-specific. If you would like to see more features implemented send me a message and I'll do my best, if I find it interesting:
- Debug Output: prints debug messages to the screen using captions (such as current spy disguise and so on).
- Auto Crouch-Jump: automatically makes you crouch-jump when playing the spacebar.
- Loadout Switch: binds 4
Shift
key combinations to each loadout. - Music Player: cycles through Team Fortress 2's music files when pressing the
;
key. Can also automatically play a song on class select. - Netgraph: displays the netgraph on the score screen (
Tab
key). - Null-Cancelling Movement Script: a classic script which lets you immediately change direction.
- Pyro Airblast Call: sends a team message asking for a Pyro to airblast you by pressing
Backspace
. - Spy-Checking Lines: sends a team message notifying players about an exposed spy (e.g. "Pyro is Spy.") by pressing
Shift
+ the class' number (1-9). - Suicide Explosion: makes you explode at the touch of a button.
- Viewmodel Toggling: toggles display of the active weapon at the press of the
Delete
key. - Zooming: zooms in and out when pressing
F
. - Engineer: Building Bindings: binds keys 6 through 9 to the Engineer's buildings, automatically destroying any existing buildings when pressed. You can also disable the PDAs; doing so will shift the building bindings from 6-9 to 4-7.
- Soldier: Rocket Jump: a simple rocket jump script bound to
MOUSE2
when toggled on (useR
to toggle). Does not provide optimal jump, but is a reliable way to rocket jump. Aim the rocket launcher at the ground before clicking. - Spy: Taunt: automatically un-disguises the Spy before performing a taunt. If pressing
G
once doesn't work for you, always quickly pressG
twice. - Spy: Disguise Bindings: binds key 5 through 9 to some of the Spy's disguises.
- Spy: Auto Disguise: automatically disguises the Spy on clicking
MOUSE1
. If this is not desirable (for example, when placing a sapper), useMOUSE3
to perform a normal left-click. Also automatically changes the disguise's current weapon when actually switching weapons. PressR
at any time to disable all auto disguise functions.
TF2-Scripts comes with several settings used to disable certain undesired features; edit them in cfg\_settings.cfg
:
AUTO_CROUCH_JUMP
CLEAR_CONSOLE_ON_START
DEBUG_OUTPUT_ON_START
ENGINEER_PDA
MUSIC_PLAYER
MUSIC_PLAYER_CLASSES
NULL_CANCELLING
LOADOUT_SWITCH
SHOW_NETGRAPH
SOLDIER_ROCKET_JUMP
SPY_AUTO_DISGUISE
SPY_LINES
SPY_TAUNT
SUICIDE_EXPLOSION
ZOOM_IN_HIDE_WEAPON
ZOOM_IN_SENSITIVITY
ZOOM_OUT_SENSITIVITY
To install, locate your Team Fortress 2 installation's custom
folder (usually located at C:\Program Files (x86)\Steam\SteamApps\common\Team Fortress 2\tf\custom
on Windows), then copy-and-paste the TF2-Scripts
there.
The scripts bundled together would not have been possibly were it not for the scripts and tutorials provided by the following people:
- The Team Fortress 2 Wiki contributors for their scripting tutorials,
- Zoolooman for his
echo
tutorial, - Dr.Device's Toggle Auto Disguise on attack V1.2 script for Spy, upon which the auto disguise functionality is based,
- TheFifthWheel's TF2 Jukebox Script, used as inspiration for the music player (special thanks for providing the names of the music files),
- INsane for his developer console font file information,
- clovervidia for his captions tutorials,
- povohat.au for his null-cancelling script,
- stabby stabby for his zoom script,
- josh33901 for his rocket jump suggestion.
As best as I can recall, all other scripts are written by me, using various tutorials and my own discoveries. If you feel your script was not credited, or you want me to cease distributing your script, send me a message and I will either add credit where it is due or remove your script.