r/Tf2Scripts • • Oct 24 '20
Script First (even slightly complex )config, I made a consistent Medic last wep swap bind. What do you think?
/////////////////////
//Quickswitch Bind//
///////////////////
//Aliases//
//////////
alias equipXbow "slot1; back2healz;"
alias equipHealz "slot2; back2xbow;"
alias equipSaw "slot3; back2xbow;"
alias back2xbow "bind q equipXbow"
alias back2healz "bind q equipHealz"
alias back2saw "bind q equipSaw"
////////////////////////////////////
//Binds//
////////
bind 1 "equipXbow"
bind 2 "equipHealz"
bind 3 "equipSaw"
bind q "equipHealz"
bind g "lastinv" //exits tauntmenu, use your own key, my taunt key is SHIFT
////////////////////////////////////
Instead of the normal last weapon button, this one changes to a specific weapon depending on which weapon you currently have equipped, here's a cheatsheet of which slot switches back to which weapon:
Crossbow/Syringe Gun => Medi Gun
Medi Gun => Crossbow/Syringe Gun
Saw => Crossbow/Syringe Gun
The purpose of this tool is to make sure that Q will always swap between your primary/secondary (to get a quick crossbow shot) even after you've engaged in melee combat. You'll not be able to close the tauntmenu through the default bind, however. Also, I'd imagine using the mousewheel to change your weapons will break it.
What do you think of this? It's my first script for TF2 that I've ever written that isn't a simple bind <key> *lennyface* piece of crap.
EDIT: after someone requested, i wrote a script for Spy.
/////////////////////
//Quickswitch Bind//
///////////////////
//Aliases//
//////////
alias equipRev "slot1; back2Knife;"
alias equipSap "slot2; back2Knife;"
alias equipKnife "slot3; back2Rev;"
alias equiplungcancer "slot4; back2Knife;"
alias back2Rev "bind Q equipRev"
alias back2Sap "bind Q equipSap"
alias back2Knife "bind Q equipKnife"
////////////////////////////////////
//Binds//
////////
bind 1 "equipRev"
bind 2 "equipSap"
bind 3 "equipKnife"
bind 4 "equiplungcancer"
bind Q "equipKnife"
bind g "lastinv" //exits tauntmenu, use your own key, my taunt key is SHIFT
////////////////////////////////////
EDIT2: 1 minute after the last edit, here is my engineer.cfg. Note that I use Uncle Dane's Quickbuild binds for buildings, IDK if it works with the defaults, I assume it would since spy did. I highly recommend you switch to the new binds though! It's a bitch at the start, but you'll thank me once you start doing that. Also, if you don't know who Dane is, he makes excellent engineer videos on YT, if you want to get better. My binds are made to be played on my fucking strange key layout though, so try changing them to see what fits you.
//////////////////////////
//Sentry Quickbuild Bind//
//////////////////////////
bind "MOUSE4" "destroy 2 0; build 2 0"
//////////////////////////////////////
/////////////////////////////
//Dispenser Quickbuild Bind//
/////////////////////////////
bind "MOUSE3" "destroy 0 0; build 0 0"
/////////////////////////////////
///////////////////////////////////////
//Teleporter Entrance Quickbuild Bind//
///////////////////////////////////////
bind "4" "destroy 1 0; build 1 0"
/////////////////////////////////
///////////////////////////////////
//Teleporter Exit Quickbuild Bind//
///////////////////////////////////
bind "CTRL" "destroy 1 1; build 1 1"
/////////////////////////////////
/////////////////////
//Quickswitch Bind//
///////////////////
//Aliases//
//////////
alias equipSG "slot1; back2Bap;"
alias equipPiss "slot2; back2SG;"
alias equipBap "slot3; back2SG;"
alias back2SG "bind Q equipSG"
alias back2Piss "bind Q equipPiss"
alias back2Bap "bind Q equipBap"
////////////////////////////////////
//Binds//
////////
bind 1 "equipSG"
bind 2 "equipPiss"
bind 3 "equipBap"
bind Q "equipBap"
bind g "lastinv" //exits tauntmenu, use your own key, my taunt key is SHIFT
////////////////////////////////////
2
u/[deleted] Oct 24 '20
This is a hell of an Advanced Engineering right there. Good job on that one, mate; I'm pretty sure the medic mains are going to love it
2
u/tlof19 Oct 24 '20
Savimg this so I can steal it for at least six people. Engi and Spy might be tricky, but Pyro loves this kinda quickswitch bs.
1
u/TriNeh_ Oct 24 '20
I'm pretty small brain when it comes to medic so how does this improve on just simply pressing 1, 2 , and 3? no hate just genuinely confused, nice work either way man :)
1
u/pdatumoj Oct 24 '20
u/YungCatgirl, may I PM you about something similar that you may like better? (I'm not really ready to get into the logic of it in a broader discussion yet - but it may be quite relevant for you.)
1
u/Printern Oct 24 '20
Hey this is super nice, I also use q to quickswitch so I will probably start using this!