/TF2-Scripts

A collection of useful scripts for Team Fortress 2.

TF2-Scripts

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.

Features

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 (use R 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 press G 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), use MOUSE3 to perform a normal left-click. Also automatically changes the disguise's current weapon when actually switching weapons. Press R at any time to disable all auto disguise functions.

Settings

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

Installation

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.

Credits

The scripts bundled together would not have been possibly were it not for the scripts and tutorials provided by the following people:

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.