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

Building Shortcut Script for Engineer - A Config Script for Team Fortress 2

54 5 kb Raw Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
alias "buildactivate" "unbind 1; unbind 2; unbind 3; unbind 5; bind mouse1 buildsentry; bind mouse2 builddispenser; bind mwheelup buildentrance; bind mwheeldown buildexit; bind q actioncancel"
alias "buildsentry" "destroy 2; build 2; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "builddispenser" "destroy 0; build 0; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "buildentrance" "destroy 1; build 1; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "buildexit" "destroy 3; build 3; bind mouse1 +buildattack; bind mouse2 +attack2; bind mouse3 buildactivate; unbind mwheelup; unbind mwheeldown; bind q gobacktoengieslot3withlastinv"
alias "+buildattack" "+attack"
alias "-buildattack" "-attack; engieslot3; bind mouse1 +attack; bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript"

alias "destroyactivate" "unbind 1; unbind 2; unbind 3; unbind 5; bind mouse1 destroyversentry; bind mouse2 destroyverdispenser; bind mwheelup destroyverentrance; bind mwheeldown destroyverexit; bind q actioncancel"
alias "destroyversentry" "bind mouse3 destroysentry"
alias "destroysentry" "bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript; destroy 2; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3"
alias "destroyverdispenser" "bind mouse3 destroydispenser"
alias "destroydispenser" "bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript; destroy 0; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3"
alias "destroyverentrance" "bind mouse3 destroyentrance"
alias "destroyentrance" "bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript; destroy 1; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3
alias "
destroyverexit" "bind mouse3 destroyexit"
alias "
destroyexit" "bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript; destroy 3; bind mouse1 +attack; bind mouse2 +attack2; bind mouse3 buildactivate; engieslot3"

alias "
engineerslot1" "slot1; bind mwheelup engineerslot3; bind mwheeldown engineerslot2; alias whatweaponslotactioncancel engineerslot1; bind q engiescriptlastinv1"
alias "
engieslot1" "bind mwheelup engineerslot3; bind mwheeldown engineerslot2"
alias "
engineerslot2" "slot2; bind mwheelup engineerslot1; bind mwheeldown engineerslot3; alias whatweaponslotactioncancel engineerslot2; bind q engiescriptlastinv2"
alias "
engieslot2" "bind mwheelup engineerslot1; bind mwheeldown engineerslot3"
alias "
engineerslot3" "slot3; bind mwheelup engineerslot2; bind mwheeldown engineerslot1; alias whatweaponslotactioncancel engineerslot3; bind q engiescriptlastinv3"
alias "
engieslot3" "bind mwheelup engineerslot2; bind mwheeldown engineerslot1"
alias "
gobacktoengieslot3withlastinv" "lastinv; engineerslot3; bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript"
alias "
actioncancel" "bind 1 engineerslot1; bind 2 engineerslot2; bind 3 engineerslot3; bind 5 use_pda_engiescript; bind mouse1 +attack; bind mouse2 +attack2; whatweaponslotactioncancel"

alias "
engiescriptlastinv1" "lastinv; whatengieslot1"
alias "
engiescriptlastinv2" "lastinv; whatengieslot2"
alias "
engiescriptlastinv3" "lastinv; whatengieslot3"
alias "
goweapon12" "engieslot2; alias whatengieslot2 goweapon21; alias whatengieslot3 goweapon32"
alias "
goweapon13" "engieslot3; alias whatengieslot3 goweapon31; alias whatengieslot2 goweapon23"
alias "
goweapon21" "engieslot1; alias whatengieslot1 goweapon12; alias whatengieslot3 goweapon31"
alias "
goweapon23" "engieslot3; alias whatengieslot3 goweapon32; alias whatengieslot1 goweapon13"
alias "
goweapon31" "engieslot1; alias whatengieslot1 goweapon13; alias whatengieslot2 goweapon21"
alias "
goweapon32" "engieslot2; alias whatengieslot2 goweapon23; alias whatengieslot1 goweapon12"

alias "
firstweaponswitchcommands" "bind mwheelup engineerslot2; bind mwheeldown engineerslot1; alias whatweaponslotactioncancel engineerslot3; bind q engiescriptlastinv3; alias whatengieslot3 goweapon31"
firstweaponswitchcommands

alias use_pda_engiescript "
use tf_weapon_pda_engineer_build"

build 1
bind q "
lastinv; firstweaponswitchcommands; bind mouse1 +attack"
bind mouse1 "
+firstteleattack"
alias "
+firstteleattack" "+attack"
alias "
-firstteleattack" "-attack; bind mouse1 +attack"

bind mouse3 "
buildactivate"
bind "
1" "engineerslot1"
bind "
2" "engineerslot2"
bind "
3" "engineerslot3"
bind "
4" "destroyactivate"
bind "
5" "use_pda_engiescript"

Updates

Little update 23d
  • Removal Removed disabling of viewmodel when holding building
  • Optimization Fixed duplicate aliases
  • Removal Removed some other useless stuff from the script
I also edited the body description.
Fixed destroying bug 4mo Tweak same 5mo Tweak More updates 5mo Improvement Tweak Removal same thing with the last update but with building 6mo Improvement

Engineer Building Script

(This was my first submission)

I have a script that has a shortcut for building:
How to use it:

A. Automatic Entrance:

When you first spawn/(when the script is executed) a teleporter entrance is in your hands (unless you already have a teleporter entrance built). You can press Q to cancel building the automatic entrance.

B. Building/Replacing/Destroying a Building:

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 (Cancel will only reset bindings and cannot be used after building)

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 redoing it.)

C. Destroying a Building:

Press 4 to activate it

Now you can press the same keys for building, but they will only destroy now. You can still press Q to cancel.

After selecting a building, press MOUSE3 to confirm and DESTROY!!!

D. Manual Building:

You can still build the old fashioned way but the key is moved to pressing 5.

E. Weapon selecting:

You can only select primary to melee in scrolling. The 1 - 3 keys are still normal. The 4 key is replaced by C. The 5 key is replaced with the command: "use tf_weapon_pda_engineer_build" by D.


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

Building 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

  • dominic11 avatar
    dominic11 Joined 1y ago
    Offline
    497 points Ranked 48,245th
    7mo
    With this script I made I discovered that whenever you lag, for some reason the game executes the class config of your current class. Kinda Annoying that it makes me replace my entrance.
    Bananite
    URL to post:
  • dominic11 avatar
    dominic11 Joined 1y ago
    Offline
    497 points Ranked 48,245th
    11mo
    It's complicated by looking at the post but the only thing you have to get used to is the destruction.   :\
    Bananite
    URL to post:
  • dominic11 avatar
    dominic11 Joined 1y ago
    Offline
    497 points Ranked 48,245th
    1y 1y
    Update 6-4-20

    Added features A. & C. to E.

    Bananite
    URL to post: