Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

My own Building Shortcut Script for Engineer

A Config Script for Team Fortress 2

No ads for members. Membership is 100% free. Sign up!
17 901 bytes Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//-------------------------------
//Script :
bind mouse3 buildactivate
alias buildactivate "bind mouse1 sentry; bind mouse2 dispenser; bind mwheelup entrance; bind mwheeldown exit; bind q q"
alias q "lastinv; reset"
alias sentry "destroy 2; build 2; reset"
alias dispenser "destroy 0; build 0; reset"
alias entrance "destroy 1; build 1; unbind mwheelup; bind mwheeldown exit; exec m1forengiescript; bind mouse2 +attack2"
alias exit "destroy 3; build 3; unbind mwheeldown; bind mwheelup entrance; exec m1forengiescript; bind mouse2 +attack2"
alias reset "bind mouse1 +attack; bind mouse2; +attack2; bind mwheeldown invnext; bind mwheelup invprev; bind q lastinv; exec *filename of where you put this script*"
//-------------------------------

//-------------------------------
//Script for m1forengiescript.cfg :

bind mouse1 "+attack; -attack; reset"
//-------------------------------
(This is my first post)


I have a script that has a shortcut for building:


-------------------------------


Script:

bind mouse3 buildactivate
alias buildactivate "bind mouse1 sentry; bind mouse2 dispenser; bind mwheelup entrance; bind mwheeldown exit; bind q q"
alias q "lastinv; reset"
alias sentry "destroy 2; build 2; reset"
alias dispenser "destroy 0; build 0; reset"
alias entrance "destroy 1; build 1; unbind mwheelup; bind mwheeldown exit; exec m1forengiescript; bind mouse2 +attack2"
alias exit "destroy 3; build 3; unbind mwheeldown; bind mwheelup entrance; exec m1forengiescript; bind mouse2 +attack2"
alias reset "bind mouse1 +attack; bind mouse2; +attack2; bind mwheeldown invnext; bind mwheelup invprev; bind q lastinv; exec *filename of where you put this script*"
-------------------------------

Script (for m1forengiescript.cfg): <- make a separate cfg file with this name

bind mouse1 "+attack; -attack; reset"
-------------------------------

How to use it:


Press Mouse3 to activate it


after pressing Mouse3, you can press these keys:


Mouse1: For Sentry


Mouse2: For Dispenser


Scroll Up: For Teleporter Entrance


Scroll Down: For Teleporter Exit


Q: Cancel (You can't cancel destruction)


After pressing any of these keys, it will reset the keys (e.g. mouse1).


You can still rotate your buildings.


(Note: Once you selected a building, you can't select something else. You can cancel by pressing Q and select something else.)


(Except the Teleporters, you can switch between them by scrolling. But you still need to press Q to cancel and go back to selecting a Sentry or Dispenser.)


-------------------------------


Outcomes:


  1. Not built selected building + Have enough ammo for building = Build Selected Building
  2. Built selected building + Have enough ammo for building = Replace Selected Building
  3. Built selected building + Don't have enough ammo for building = Destroy Selected Building
  4. Not built selected building + Don't have enough ammo for building = Nothing
Please remember these. (Especially #4)


-------------------------------


It's very useful (at least in my opinion).


-------------------------------


(Please tell me if this is already a thing.)


Sign up to access this!

No comments yet

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Key Authors
dominic11
Scripter

Submitter

dominic11 avatar
dominic11 Joined 1mo ago
Offline
dominic11
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

License

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 0
  • 323
  • 12d
  • 10d

More Other/Misc Scripts