Engineer scripts

From TF2 Wiki

Share/Save/Bookmark
Jump to: navigation, search

A Note About The Wait Command

Valve has fixed the functionality of the sv_allow_wait_command server variable. When disabled (set to 0) the engine simply ignores and omits any wait commands that the server is given. Consequently, many scripts on this website are broken or will only function in very specific situations. This variable is set to 1 by default, but many servers base their server.cfg files off of competitive league settings, which typically disable wait commands. Furthermore, scripts that do loops (see Autopistol Script for an example) will crash your client when triggered.


Community script navigation
General scripts
Weapon scripts
General class scripts
Collection scripts
Class scripts
Scout scripts
Soldier scripts
Pyro scripts
Engineer scripts
Heavy scripts
Demoman scripts
Medic scripts
Sniper scripts
Spy scripts


Contents

Very Fast Build/Destroy/Move/Upgrade

by Fede-lasse, with help from Icehawk, vincister, Metroid48, and [HvC]Terr
Controls:
Build and destroy with F1-4. After you've placed a building, keep holding the
left mouse button to immediately speed up building time. Hold the right mouse
button to upgrade. Press the middle mouse button to pick up (move) a building.
Press F to enable/disable these binds. When disabled, you can instantly rocket
jump using the middle mouse button.
Description:
This script makes it fast to place and upgrade buildings by using the F1-4 buttons
to bring up any building, and thereafter allow you to start hammer away without
having to switch to wrench after placement. For further quick upgrades after
placement, an auto-upgrade feature has been incorporated into the right mouse
button. You can quickly pick up your buildings by pressing the middle mouse
button. This makes stuff like Mini-Sentries deadly. Press F to toggle between
the old and new binds.
As a bonus, there's a "power jump" implemented into the
middle mousebutton when you disable these Engineer binds, which makes it much
eaiser to rocket jump or use the Force-a-Nature to fly around the place.
Tip 1: Press F1-4 quickly to remove buildings before the enemy can destroy your
buildings before or after countdown reaches zero.
Tip 2: If lag somehow causes you to repeatedly shoot, then press 1 to restart
the key binds.
Tip 3: Use F1 to build a sentry outside your spawn, then pick it up using the
middle mouse button and move it to the frontlines.
Tip 4: If you use the Gunslinger, then you can play hide-and-seek with the enemy
by constantly building, moving, and placing a Mini-Sentry to the annoyance
of the enemy. They'll eventually become so hurt that you or your teammates
will be able to take them down.
Original upgrade script by Icehawk
Fixed upgrade by vincister
Lag-compensating auto-repair by Metroid48
Toggle on the same button by [HvC]Terr
Everything else by Fede-lasse
//Very fast build/destroy/move/upgrade script for the Engineer
//by Fede-lasse, with help from Icehawk, vincister, Metroid48, and [HvC]Terr

//Controls:
//Build and destroy with F1-4. After you've placed a building, keep holding the
//left mouse button to immediately speed up building time. Hold the right mouse 
//button to upgrade. Press the middle mouse button to pick up (move) a building.
//Press F to enable/disable these binds. When disabled, you can instantly rocket
//jump using the middle mouse button.

//Description:
//This script makes it fast to place and upgrade buildings by using the F1-4 buttons
//to bring up any building, and thereafter allow you to start hammer away without
//having to switch to wrench after placement. For further quick upgrades after
//placement, an auto-upgrade feature has been incorporated into the right mouse
//button. You can quickly pick up your buildings by pressing the middle mouse
//button. This makes stuff like Mini-Sentries deadly. Press F to toggle between
//the old and new binds.

//As a bonus, there's a "power jump" implemented into the
//middle mousebutton when you disable these Engineer binds, which makes it much
//eaiser to rocket jump or use the Force-a-Nature to fly around the place.

//Tip 1: Press F1-4 quickly to remove buildings before the enemy can destroy your
//       buildings before or after countdown reaches zero.
//Tip 2: If lag somehow causes you to repeatedly shoot, then press 1 to restart
//       the key binds.
//Tip 3: Use F1 to build a sentry outside your spawn, then pick it up using the
//       middle mouse button and move it to the frontlines.
//Tip 4: If you use the Gunslinger, then you can play hide-and-seek with the enemy
//       by constantly building, moving, and placing a Mini-Sentry to the annoyance
//       of the enemy. They'll eventually become so hurt that you or your teammates
//       will be able to take them down.

//Original upgrade script by Icehawk
//Fixed upgrade by vincister
//Lag-compensating auto-repair by Metroid48
//Toggle on the same button by [HvC]Terr
//Everything else by Fede-lasse



//Left mouse upgrade script
alias +upgrade1 "+attack2; slot3; -attack2; +attack"
alias -upgrade1 "-attack; lastinv; bind mouse1 +attack"

//Right mouse upgrade script
alias +upgrade2 "+attack2; slot3; -attack2; +attack"
alias -upgrade2 "-attack; lastinv; bind mouse1 +attack"



//Sentry building script
alias verify_sentry "+attack; complete_sentry" //2. verify it's on a valid point
alias complete_sentry "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2" //3. start hammering away
alias build_sentry "destroy 2; build 2; bind mouse2 +attack2; bind mouse1 verify_sentry" //1. rotate/place sentry

//Dispenser building script
alias verify_dispenser "+attack; complete_dispenser"
alias complete_dispenser "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias build_dispenser "bind mouse2 +attack2; bind mouse1 verify_dispenser"

//Entrance building script
alias verify_entrance "+attack; complete_entrance"
alias complete_entrance "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias build_entrance "bind mouse2 +attack2; bind mouse1 verify_entrance"

//Exit building script
alias verify_exit "+attack; complete_exit"
alias complete_exit "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias build_exit "bind mouse2 +attack2; bind mouse1 verify_exit"



//At this point you might think: why have 4 different alias when they do the same
//thing? Well, you can't bind a single alias to multiple keys. That's why.
alias sentry "destroy 2; build 2; build_sentry"
alias dispenser "destroy 0; build 0; build_dispenser"
alias entrance "destroy 1; build 1; build_entrance"
alias exit "destroy 3; build 3; build_exit"



//Bind fixer, in case lag causes script instability
alias fixBinds "-attack; -attack2; slot1; bind mouse2 +upgrade2; bind mouse1 +attack"

//Jumping high using Soldier/Scout
alias +powerJump "+jump; +duck; +attack"
alias -powerJump "-jump; -duck; -attack"

//Moving buildings using middle mouse button
alias complete_move "+attack; bind mouse1 +upgrade1; bind mouse2 +upgrade2"
alias +build_move "+attack2; bind mouse2 +attack2; bind mouse1 complete_move"
alias -build_move "-attack2"


//Engineer script toggle
alias engieEnable "bind mouse2 +upgrade2; bind mouse3 +build_move; bind f1 sentry; bind f2 dispenser; bind f3 entrance; bind f4 exit; bind 1 fixBinds; alias engieToggle engieDisable"
alias engieDisable "bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 +powerJump; bind 1 slot1; unbind f1; unbind f2; unbind f3; unbind f4; alias engieToggle engieEnable"
alias engieToggle engieEnable

//Enable toggling on F key
bind f engieToggle

Autopistol

This is about as close to cheating as scripting can take you. I didn't come up with the original method of scripting this, but I've cleaned it up so that scripters can understand what the hell it is doing, and commented every line as such.
You can keep this simple by binding something directly to "+apistol" and only using that key when you have the pistol out. Or, you can use the optional set of scripting below to have your normal attack key swapped when you select different weapons. This will NOT work with using invnext/invprev for weapon selection!
This script will cause a loop crash if the server you play on disables the wait command with the sv_allow_wait_command 0 setting.
Posted by Essobie
// AutoPistol
// ==========
alias +apistol "alias repeat_function +repeat; +repeat"  // While held down, starts the repeater function and sets it to repeat.
alias -apistol "alias repeat_function stoprepeating"     // When released, repeat_function is disabled through the stoprepeating alias.
alias repeat_function "+repeat"                          // So long as this alias holds, +attacks and waits will continue to fire.
alias +repeat "+attack; wait 2; -repeat"                 // Repeater function attacks, waits, goes to -repeat.
alias -repeat "-attack; wait 2; repeat_function"         // Stops attack, waits, fires another repeat_function.
alias stoprepeating ""

// AutoPistol Primary/Secondary Setup with Auto Reload (Optional)
// ==============================================================
alias _primary "slot1; -reload; alias +engi_attack +attack; alias -engi_attack -attack; -apistol"
alias _secondary "slot2; -reload; alias +engi_attack +apistol; alias -engi_attack -apistol"
alias _melee "slot3; -reload; alias +engi_attack +attack; alias -engi_attack -attack; -apistol"

bind MOUSE1 "+engi_attack"
bind 1 "_primary"
bind 2 "_secondary"
bind 3 "_melee"


Another Autopistol

This script will cause a loop crash if the server you play on disables the wait command with the sv_allow_wait_command 0 setting.
alias ataque "+attack; wait 2; -attack; wait 2; recomecar;"
alias recomecar "ataque"
alias +iniciar "alias recomecar ataque;ataque;"
alias -iniciar "alias recomecar;"
alias +rep "bind mouse1 +attack"
alias -rep "bind mouse1 +iniciar"
bind mouse1 "+iniciar"
bind mouse2 "+attack2;+rep;"


Auto-Repair

Simply press the start key and the wrench will keep swinging until you push the stop key.
Along side a Dispenser and a Sentry Gun, you will rack up kills in no time!
Posted by Fr3shY
//Auto-Repair by Fr3shY
alias +autorepair "-attack; slot3"
alias -autorepair "+attack"
bind "mouse2" "+autorepair //starts auto-repair, switch "mouse2" to change start key.
bind "mouse3" "-attack; slot1" //stops auto-repair, switch "mouse3" to change stop key.
<------------- Fr3shY you forgot the </pre> i put for you... .Armageddon 16:35, 24 August 2008 (UTC).

Improved Auto-Repair

This script imporves upon Fr3shY's version, using only one button to stop/start
Switch "mouse5" in every location to change button
By Dan
//Auto repair
bind mouse5 "+autorepair"
alias +autorepair "-attack; slot3"
alias -autorepair "+attack; bind mouse5 stop" 
alias stop "-attack; bind mouse5 +autorepair"

Build

Press 1-4 for Instabuild, autoswitches to shotgun after build.
Posted by Icehawk
//BUILD MENU
alias buildsentry "build 3; wait 50; +attack; wait 50; -attack; wait; slot1"
alias builddispenser "build 0; wait 50; +attack; wait 50; -attack; wait; slot1"
alias buildentry "build 1; wait 50; +attack; wait 50; -attack; wait; slot1"
alias buildexit "build 2; wait 50; +attack; wait 50; -attack; wait; slot1"
bind "1" "buildsentry"
bind "2" "builddispenser" 
bind "3" "buildentry" 
bind "4" "buildexit"

Destroy

5-8 to blow Buildings
Posted by Icehawk
//Destroy Menu
alias destroysentry "destroy 3; wait 50; slot1"
alias destroydispenser "destroy 0; wait 50; slot1"
alias destroyentry "destroy 1; wait 50; slot1"
alias destroyexit "destroy 2; wait 50; slot1"
bind "5" "destroysentry" 
bind "6" "destroydispenser" 
bind "7" "destroyentry" 
bind "8" "destroyexit" 

Toggle Destroy PDA

  • Press Mouse3 to open the PDA, destroy the object(s) you want gone, and press Mouse3 to close the PDA.
  • Posted by Shadow
//Toggle Destroy PDA
alias "PDAon" "slot5; bind "MOUSE3" "PDAoff"
alias "PDAoff" "slot3; bind "MOUSE3" "PDAon"
bind "MOUSE3" "PDAon"

Build + Destroy on 1 key

  • By using a temporary bind of the 1-4 keys, this script uses only 1 key
  • Press 1 to build a sentry, press it again to destroy it. Press 2 to build a dispensor, press it again to destroy it. Press 3 to build an entrance, press it again to destroy it. Press to build an exit, press it again to destroy it.
  • NEW: Destroy All Buildings by pressing mouse3 + 5
  • --By (µÞ{}fT¡34¡™ 11:43, 28 October 2008 (UTC)
  • Key "4" build but don't destroy the building just changed ".. bind 4 quick_exit, .." to ".. bind 4 quick_exit; .." to works properly now. --Ochse 19:24, 2 July 2009 (UTC)
  • Updated building commands added in patch 4/29 --Ochse 17:47, 7 July 2010 (UTC)
alias "quick_dispensor"			"qb0"
alias "quick_sentry"			"qb3"
alias "quick_enter"			"qb1"
alias "quick_exit"			"qb2"
alias "qb0"	                        "build 0 0; alias quick_dispensor qd0"
alias "qb3"	                        "build 2 0; alias quick_sentry qd3"
alias "qb1"	                        "build 1 0; alias quick_enter qd1"
alias "qb2"	                        "build 1 1; alias quick_exit qd2"
alias "qd0"	                        "destroy 0 0; alias quick_dispensor qb0"
alias "qd3"	                        "destroy 2 0; alias quick_sentry qb3"
alias "qd1"	                        "destroy 1 0; alias quick_enter qb1"
alias "qd2"	                        "destroy 1 1; alias quick_exit qb2"
alias "desall"				"qd0; qd3; qd1; qd2"
alias "+quickbuild" "bind 1 quick_sentry; bind 2 quick_dispensor; bind 3 quick_enter; bind 4 quick_exit; bind 5 desall"
alias "-quickbuild" "bind 1 slot1; bind 2 slot2; bind 3 slot3; bind 4 slot4; bind 5 slot5"
bind "MOUSE3" "+quickbuild" //You may change this key.

Upgrade

Swings wrench while held down, switches to shotgun when released.
Posted by Icehawk
//Upgrade
alias +upgrade1 "slot3; +attack"
alias -upgrade1 "-attack; wait; slot1"
bind "mouse2" "+upgrade1"

Improved Auto-Upgrade

Improves Icehawk's script
Compensates for lag and lack of fast weapon switch
By Metroid48
//HOLD DOWN MOUSE3 TO SWING WRENCH FOR UPGRADE THEN LETTING GO SWITCHES BACK TO LAST WEAPON
alias +upgrade1 "slot3; +attack; wait 5; -attack; wait 5; +attack"
alias -upgrade1 "-attack; wait; lastinv"
bind "mouse3" "+upgrade1" //Leaves mouse2 to still rotate the sentry placement

Another Auto Upgrade

Only uses the mouse wheel
Doesn't require a button being held
//MOUSE WHEEL UP STARTS, MOUSE WHEEL DOWN STOPS
alias autorepairon "slot3; +attack"
alias autorepairoff "-attack;lastinv"
bind "MWHEELUP" "autorepairon" //starts auto-repair
bind "MWHEELDOWN" "autorepairoff" //stops auto-repair

All in one

Fast build and destroy script for sentry/disp/exit/entry. Need only four binded key.
Written by 1 of 9
WARN: It doesn't work on server with wait command disabled.
There is some discussion about this script.
// ### Build & destroy bind...
alias +sentry "use tf_weapon_wrench; destroy 3; wait; build 3"
alias -sentry "wait 50; +attack; wait 50; -attack; use tf_weapon_shotgun_primary"
alias +dispenser "use tf_weapon_wrench; destroy 0; wait; build 0"
alias -dispenser "wait 50; +attack; wait 50; -attack; use tf_weapon_shotgun_primary"
alias +entry "use tf_weapon_wrench; destroy 1; wait; build 1"
alias -entry "wait 50; +attack; wait 50; -attack; use tf_weapon_shotgun_primary"
alias +exit "use tf_weapon_wrench; destroy 2; wait; build 2"
alias -exit "wait 50; +attack; wait 50; -attack; use tf_weapon_shotgun_primary"

// Bind
bind "a" "+sentry"
bind "s" "+dispenser" 
bind "d" "+entry" 
bind "f" "+exit"

All in One with Destroy Menu

As above, except we don't destroy previous buildables. Instead, use destroy PDA to avoid accidents.
This script is also more responsive than that above (no delay between releasing the key and the buildable actually going up), but brings back the occasional shotgun fire after building. I figure the occasional shotgun-blast is worth it for the added responsiveness. Could probably be tweaked to be just as responsive but without the blast, but I don't see the need.
Rewritten by Klaymen, based on script by 1 of 9.
// ### Build quick-bind...
// holding down key will show blueprint for new building (if you didn't already build it)
// releasing key will build building in new chosen position
// =====================================================================================
alias +sentry "use tf_weapon_wrench; build 3"
alias -sentry "+attack; wait 50; -attack; use tf_weapon_shotgun_primary"
alias +dispenser "use tf_weapon_wrench; build 0"
alias -dispenser "+attack; wait 50; -attack; use tf_weapon_shotgun_primary"
alias +entry "use tf_weapon_wrench; build 1"
alias -entry "+attack; wait 50; -attack; use tf_weapon_shotgun_primary"
alias +exit "use tf_weapon_wrench; build 2"
alias -exit "+attack; wait 50; -attack; use tf_weapon_shotgun_primary"

bind "1" "+sentry"
bind "2" "+dispenser" 
bind "3" "+entry" 
bind "4" "+exit"
bind "5" "use tf_weapon_pda_engineer_destroy"

All in One "Boomode" Key

Four binds for building, one bind to change those four binds to destroy. Prevents accidents! This script no longer requires weapon selection to switch between buildings without actually building them (Valve fixed a bug causing this problem). Thanks to Spoonguard with the help on that front.
Rewritten by Essobie. Interesting name by Spoonguard
Edit: Rewritten by wiseguy149 to allow menu usage by using alt + 1-4 to build, shift + 1-4 to destroy and build. This lets 1-4 do their default stuff without interference.
// Build and Destroy "Boomode" System
// ==================================
alias eng_destroybuild_0 "destroy 0; build 0"
alias eng_destroybuild_1 "destroy 1; build 1"
alias eng_destroybuild_2 "destroy 2; build 2"
alias eng_destroybuild_3 "destroy 3; build 3"

alias +eng_destroy "alias eng_dispen eng_destroybuild_0; alias eng_tpentr eng_destroybuild_1; alias eng_tpexit eng_destroybuild_2; alias eng_sentry eng_destroybuild_3"
alias -eng_destroy "alias eng_dispen slot1; alias eng_tpentr slot3; alias eng_tpexit slot4; alias eng_sentry slot1"
-eng_destroy

alias +eng_build "alias eng_dispen build 0; alias eng_tpentr build 1; alias eng_tpexit build 2; alias eng_sentry build 3"
alias -eng_build "alias eng_dispen slot1; alias eng_tpentr slot3; alias eng_tpexit slot4; alias eng_sentry slot1"
-eng_build

bind "SHIFT" 	"+eng_destroy"	// Swap all build binds to destroy binds.
bind "1"	"eng_sentry"	// Build Sentry (Destroy Sentry when +eng_destroy is held down)
bind "2"	"eng_dispen"	// Build Dispenser (Destroy Dispenser when +eng_destroy is held down)
bind "3"	"eng_tpentr"	// Build Teleporter Entrance (Destroy Teleporter Entrance when +eng_destroy is held down)
bind "4"	"eng_tpexit"	// Build Teleporter Exit (Destroy Teleporter Exit when +eng_destroy is held down)
bind "alt"      "+eng_build"    // Lets you build if held down.

Building with destroying and fixed upgrade

Has bindings for all buildings with destroying previous building, fixed upgrade script which took mouse2,
now when placing building can rotate it with mouse2, after placing upgrade script returns on mouse2, which
swings wrench while held down, switches to shotgun when released. Original upgrade script by Icehawk
Posted by vincister
//Building with destroying and fixed upgrade by vincister (Original upgrade script by Icehawk)
alias +upgrade1 "slot3; +attack"
alias -upgrade1 "-attack; wait; slot1"

alias complete "attack; wait; workmode;"
alias buildmode "bind mouse2 +attack2; bind mouse1 complete"
alias workmode "bind mouse1 +attack; bind mouse2 +upgrade1"

alias sentry "destroy 3; build 3; buildmode"
alias dispenser "destroy 0; build 0; buildmode"
alias entrance "destroy 1; build 1; buildmode"
alias exit "destroy 2; build 2; buildmode"

bind f1 sentry
bind f2 dispenser
bind f3 entrance
bind f4 exit

bind mouse2 +upgrade1

Combination Engineer and Spy Script

As Engineer: 1-4 brings up buildmode, holding shift and pressing 1-4 destroys that building.
As Spy: pressing 1-9 dsguises as your team (default blu), holding shift and pressing 1-9 disguises as the enemy team (default red). Pressing "N" changes the teams around. Pressing "F" disguises as a friendly pyro for quick access to a useful friendly disguise.
There is an optional section at the bottom.
Very much improved mow. Hadn't updated this in ages.
Written by Mechlord
Last modification: 20090128
alias r1 "disguise 1 2"
alias r2 "disguise 3 2"
alias r3 "disguise 7 2"
alias r4 "disguise 4 2"
alias r5 "disguise 6 2"
alias r6 "disguise 9 2"
alias r7 "disguise 5 2"
alias r8 "disguise 2 2"
alias r9 "disguise 8 2"

alias b1 "disguise 1 1"
alias b2 "disguise 3 1"
alias b3 "disguise 7 1"
alias b4 "disguise 4 1"
alias b5 "disguise 6 1"
alias b6 "disguise 9 1"
alias b7 "disguise 5 1"
alias b8 "disguise 2 1"
alias b9 "disguise 8 1"

alias d11 "r1"
alias d12 "r2"
alias d13 "r3"
alias d14 "r4"
alias d15 "r5"
alias d16 "r6"
alias d17 "r7"
alias d18 "r8"
alias d19 "r9"

alias d21 "b1"
alias d22 "b2"
alias d23 "b3"
alias d24 "b4"
alias d25 "b5"
alias d26 "b6"
alias d27 "b7"
alias d28 "b8"
alias d29 "b9"

alias colourtoggle "red"
alias red "alias colourtoggle blu; alias d11 b1; alias d12 b2; alias d13 b3; alias d14 b4; alias d15 b5; alias d16 b6; alias d17 b7; alias d18 b8; alias d19 b9; alias d21 r1; alias d22 r2; alias d23 r3; alias d24 r4; alias d25 r5; alias d26 r6; alias d27 r7; alias d28 r8; alias d29 r9"
alias blu "alias colourtoggle red; alias d11 r1; alias d12 r2; alias d13 r3; alias d14 r4; alias d15 r5; alias d16 r6; alias d17 r7; alias d18 r8; alias d19 r9; alias d21 b1; alias d22 b2; alias d23 b3; alias d24 b4; alias d25 b5; alias d26 b6; alias d27 b7; alias d28 b8; alias d29 b9"

alias eb1 "build 3"
alias eb2 "build 0"
alias eb3 "build 1"
alias eb4 "build 2"

alias ed1 "destroy 3"
alias ed2 "destroy 0"
alias ed3 "destroy 1"
alias ed4 "destroy 2"

alias 11 "eb1; d11"
alias 12 "eb2; d12"
alias 13 "eb3; d13"
alias 14 "eb4; d14"
alias 15 "d15"
alias 16 "d16"
alias 17 "d17"
alias 18 "d18"
alias 19 "d19"

alias 21 "ed1; d21"
alias 22 "ed2; d22"
alias 23 "ed3; d23"
alias 24 "ed4; d24"
alias 25 "d25"
alias 26 "d26"
alias 27 "d27"
alias 28 "d28"
alias 29 "d29"

alias 01 "11"
alias 02 "12"
alias 03 "13"
alias 04 "14"
alias 05 "15"
alias 06 "16"
alias 07 "17"
alias 08 "18"
alias 09 "19"

alias +function "alias 01 21; alias 02 22; alias 03 23; alias 04 24; alias 05 25; alias 06 26; alias 07 27; alias 08 28; alias 09 29; alias mg mg2"
alias -function "alias 01 11; alias 02 12; alias 03 13; alias 04 14; alias 05 15; alias 06 16; alias 07 17; alias 08 18; alias 09 19; alias mg mg1"

bind "n" "colourtoggle"

bind "shift" "+function"

bind "1" "01"
bind "2" "02"
bind "3" "03"
bind "4" "04"
bind "5" "05"
bind "6" "06"
bind "7" "07"
bind "8" "08"
bind "9" "09"


bind "f" "d23"












This section is optonal. Since the number keys are being used, the following provides a quick way to switch weapons. Up is primary, down is secondary and middle mouse is melee. Hold middle mouse to attack with your melee weapon.







alias reset "-attack"

alias primary "reset; slot1"

bind "mwheelup" "primary"

alias secondary "reset; slot2"

bind "mwheeldown" "secondary"

alias +quickmelee "reset; slot3; wait; +attack"
alias -quickmelee "-attack"

bind "mouse3" "+quickmelee"



Hold Shift to build

Makes it so you hold shift + 1,2,3 or 4 to build/destroy.
Written and Posted by: Tagy
alias e1 "build 3;destroy 3"
alias e2 "build 0;destroy 0"
alias e3 "build 1;destroy 1"
alias e4 "build 2;destroy 2;"
alias +function "bind 1 e1;bind 2 e2;bind 3 e3;bind 4 e4; developer 1; echo Sentry:1 Dispenser:2 Entrance:3 Exit:4;"
alias -function "bind 1 _primary;bind 2 _secondary;bind 3 _melee;bind 4 slot4; developer  0"
bind "shift" "+function"


Auto-Magic Sentry Farm V.1a

!!!THIS SCRIPT USES A LOOP. BE CAREFUL ON WAIT DISABLED SERVERS.!!!
This silly script creates a Sentry-Engie-Dispenser setup.
This script was intended for fun and lazyness. (and 2fort)
.
Keypad Minus = Build, then start the repair loop.
Keypad Plus = Manual repair start.
Keypad Multiply = Stop Repair (issues, see below).
Keypad Slash = Duck fix
.
May need some timing adjustments depending on framerates, also a general polish overall.
There is an issue with cancelling the repiar loop, Pressing the stop repair button will stop whacking, but the spin cycle will continue for an extra loop, then stop.
This will also cause you to be stuck crouching. A Duck fix key is provided.
Written And Posted by SADASS
//Auto-Magic Sentry Farm V.1a
//By SADASS

alias lazybuild "+right; wait 130; -right; "build 0"; wait 50; +attack; wait 1500; -attack; wait 1500; +right; wait 130; -right; +back; wait 10; -back; +duck; build 3; +attack; wait 3500; -attack; +right; wait 130; -right; lazycare"

alias "lazycare" "lazycare_on"

alias "Lazycare_on" "+duck; +attack; wait 500; +right; wait 135; -right; wait 200; +right; wait 135; -right; -attack; wait 20; lazycare"

Alias "lazycare_off" "echo lazycare off"

alias "lazycancel" "alias lazycare wait; wait 1000 -duck; wait 50; alias lazycare lazycare_on"

bind "kp_plus" "lazycare"
bind "kp_minus" "lazybuild"
bind "kp_multiply" "lazycancel"
bind "kp_slash" "-duck"
Have fun!


MWBuilder V1.2 4/29 BUILD COMMAND CHANGE UPDATE

This Script uses ONLY mouse1, mouse2, mouse3, and the Scroll wheel to do all your building.
.
Mouse3 = start script *Can now be used to end script
Mouse1 = build the selected building
Mouse2 = destroy the selected building
.
To cancel the script just equip a different weapon *or press Mouse3 again
.
The script will enable developer mode while it is active, if you wish for it to not turn off, then delete "developer 0" out of the script
.
//Edited the script to match the new build command format with the 4/29 patch.
.
NOTE: this script is wait independent! :)
//----------------------------------------------
// Desseler's Engineer Mouse Wheel Builder Start|
//----------------------------------------------
//The start and end of the script kind of
alias buildtoggle "builda"
alias builda "sentry; bind mouse1 +buildb; developer 1; alias buildtoggle buildend"
alias +buildb "+attack"
alias -buildb "-attack; wheel"
alias buildend "wheel;slot1"

//Rebinds after done building
alias wheel "bind MWHEELUP invnext; bind MWHEELDOWN invprev; bind mouse2 +attack2; bind mouse1 +attack; developer 0;alias buildtoggle builda; -attack"

//Build Aliases
alias sentry "build 2 0; bind MWHEELUP dispenser; bind MWHEELDOWN exit; echo Build a Sentry? or press right-click to destroy it; bind mouse2 dessent"
alias dispenser "build 0 0; bind MWHEELUP entrance; bind MWHEELDOWN sentry; echo Build a Dispenser? or press right-click to destroy it; bind mouse2 desdisp"
alias entrance "build 1 0; bind MWHEELUP exit; bind MWHEELDOWN dispenser; echo Build a Teleporter Entrance? or press right-click to destroy it; bind mouse2 desentr"
alias exit "build 1 1; bind MWHEELUP sentry; bind MWHEELDOWN entrance; echo Build a Teleporter Exit? or press right-click to destroy it; bind mouse2 desexit"

//Destroy Aliases
alias dessent "destroy 2 0; sentry; echo Sentry destroyed"
alias desdisp "destroy 0 0; dispenser; echo Dispenser destroyed"
alias desentr "destroy 1 0; entrance; echo Teleporter Entrance destroyed"
alias desexit "destroy 1 1; exit; echo Teleporter Exit destroyed"

//The Bind
bind mouse3 buildtoggle

//Equip a different weapon to cancel the build script...
bind 1 "slot1; wheel"
bind 2 "slot2; wheel"
bind 3 "slot3; wheel"
bind 4 "slot4; wheel"
bind 5 "slot5; wheel"
bind q "lastinv; wheel"

//If you use different binds on your mouse with other classes, then put these in the other class configs (except for the slashes)
//bind 1 slot1
//bind 2 slot2
//bind 3 slot3
//bind 4 slot4
//bind 5 slot5
//bind q lastinv

//--------------------------------------------
// Desseler's Engineer Mouse Wheel Builder End|
//--------------------------------------------
Contact me @ Desseler4@hotmail.com for any comments, questions, or concerns about this script!

Rapid Fire

For a class-generic rapid-fire script see Weapon scripts


Combat Engi's best friend (wait-independent)

Allows you to instantly switch between building a sentry and the shotgun, if no sentry is built. Switches to the Shotgun when a Sentry is built.

bind "MOUSE2" "slot1; build 3"

Bind +attack2 to another key if you need the "turn building" functionality.

Mudkip!'s Flying Fortress Rocket Jump Script

Allows you to level 3 sentry rocket jump, while grabbing your sentry too as you fly away. Make sure to have the wrangler equipped when trying!

//mudkips flying fortress script
bind "MOUSE2" "flyingfortress"
alias flyingfortress "+attack2; +jump; +duck; wait 6; slot3; wait 3; -attack2; -jump; wait 3; -duck"

Ashe's Civilian Engineer

Allows you to go civilian upon pressing H! (Must have a taunt equipped in the Action Item Slot)

//Ashe's Civil Engineer
bind "H" "destroy 0; wait 50; build 0; wait 50; +use_action_slot_item; wait 10; build 2; -use_action_slot_item"

Usage: copy and paste this command in-game then press "h"

Quick Gunslinger Sentry Build (no wait)

DESCRIPTION

Destroys the current sentry (if it exists), builds a sentry at current location and switches to last used inventory.
alias +fastbuildsentry "destroy 2 0;build 2 0;+attack;"
alias -fastbuildsentry "-attack;lastinv;"
bind "MOUSE3" +fastbuildsentry
Adapted and posted by Stupidumb (inspired by Dr. Device's Toggle Auto Disguise on attack)
USE
Hold middle mouse button (MOUSE3) until sentry builds. When, it get's placed, you can let go (you will keep attacking until you release MOUSE3).


Personal tools