GameBanana shows no ads to members. Sign up now!
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

Vaccinator Fast Resistances Switch Script

A Config Script for Team Fortress 2

24 1 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
//QuickVacc

prim; resetVacc

alias   "prim"                  "slot1; deactivatequickvacc; bind MWHEELUP mel; bind MWHEELDOWN secund; bind r none"
alias   "secund"                "slot2; activatequickvacc; bind MWHEELUP prim; bind MWHEELDOWN mel; bind r resetVacc"
alias   "mel"                   "slot3; deactivatequickvacc; bind MWHEELUP secund; bind MWHEELDOWN prim; bind r none"

alias   "activatequickvacc"     "bind 1 none; bind 2 none; bind 3 none; wait 140; bind 1 vacc1; bind 2 vacc2; bind 3 vacc3"
alias   "deactivatequickvacc"   "bind 1 prim; bind 2 secund; bind 3 mel"

alias   "vaccset1"              "none"
alias   "vaccset2"              "none"
alias   "vaccset3"              "none"

alias   "vacc1"                 "vaccset1; alias vaccset2 onereload; alias vaccset3 tworeload; alias vaccset1 none"
alias   "vacc2"                 "vaccset2; alias vaccset3 onereload; alias vaccset1 tworeload; alias vaccset2 none"
alias   "vacc3"                 "vaccset3; alias vaccset1 onereload; alias vaccset2 tworeload; alias vaccset3 none"

alias   "onereload"             "+reload; wait 5; -reload"
alias   "tworeload"             "onereload; wait 10; onereload"

alias   "resetVacc"             "alias vaccset2 onereload; alias vaccset3 tworeload; alias vaccset1 none; echo reset"
bind    "r"                     "resetVacc"

Updates

Reset Button 3d
  • Addition Added a reset button. Press R after respawning to reset the resistances.
(I know, I know. It's been three years. I'm only coming back to this game just now).
Well hello!
I made a simple script for the Vaccinator, allowing you to swap between resistances more quickly.

You can still use your reload button to manually fix the order, but hitting R while on bullet resistance does just that. It shouldn't be too buggy tbh.

Instructions :
Press 1 to get bullet resistance.
Press 2 to get explosive resistance.
Press 3 to get fire resistance.

Pressing 1, 2 or 3 when not having the Vaccinator selected will NOT change resistances nor screw up the system.

Pressing 1, 2 or 3 when taunting with the medigun WILL screw up the system. Pressing r while bullet resistance is selected fixes it rather quickly.

Dying WILL most likely screw up the script, sorry :c It's valve's fault for not adding an "OnDeath" command.
Pressing "r" fixes it.

If you want to match this script with your own config, here's a version that works with mouse buttons :

Pastebin

Todos

Ask Valve for some sort of "OnDeath" argument/cfg file. Low Priority
Sign up to access this!
  • Dr. Staidanom avatar
    Dr. Staidanom Joined 5y ago
    Offline
    access_time 2d
    Just so you know, if anyone has a specific issue, do tell me! I can customize the script for you.
    Somebody that you used to know avatar
    Mantra
    Somebody that you used to know
    URL to post:
  • Dr. Staidanom avatar
    Dr. Staidanom Joined 5y ago
    Offline
    access_time 3y
    Posted by lOlIlOl24680

    You see... I have this problem... I have jump bound to my mouse wheel, so, I will have no ability to switch back.
    Visit the Pastebin link to edit the keys :)

    Do you have a mouse with at least 5 buttons? If so, I can work on it.
    Somebody that you used to know avatar
    Mantra
    Somebody that you used to know
    URL to post:
  • lOlIlOl24680 avatar
    lOlIlOl24680 Joined 3y ago
    Offline
    878 points Ranked 41944th
    access_time 3y
    You see... I have this problem... I have jump bound to my mouse wheel, so, I will have no ability to switch back.
    sir doggo avatar
    Mantra
    sir doggo
    URL to post:

Embed

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

Credits

Key Authors
Dr. Staidanom
Dr. Staidanom Joined 5y ago
Offline
Scripter, tester

Submitter

Dr. Staidanom avatar
Dr. Staidanom Joined 5y ago
Offline
Dr. Staidanom
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
  • 1
  • 4.4k
  • 3
  • 3y
  • 3d
  • 3d

More from Submitter

WiPs by Submitter

More Weapon Scripts Scripts