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

Melee, Primary/Secondary, Tools Toggle

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
bind "1" "slot1; alias meleetoggle melee1; alias primarysecondarytoggle primary; alias tooltoggle tool1"
bind "2" "slot2; alias meleetoggle melee1; alias primarysecondarytoggle secondary; alias tooltoggle tool1"
bind "3" "slot3; alias meleetoggle melee2; alias primarysecondarytoggle primary; alias tooltoggle tool1"
bind "4" "slot4; alias meleetoggle melee1; alias primarysecondarytoggle primary; alias tooltoggle tool1"
bind "5" "slot5; alias meleetoggle melee1; alias primarysecondarytoggle primary; alias tooltoggle tool2"

alias "meleetoggle" "melee1"
alias "melee1"      "slot3; alias meleetoggle melee2"
alias "melee2"      "lastinv; alias meleetoggle melee1"
bind  "mouse4"      "meleetoggle; toolreset"

alias "primarysecondarytoggle" "primary"
alias "primary"                "slot2; alias primarysecondarytoggle secondary"
alias "secondary"              "slot1; alias primarysecondarytoggle primary"
bind "q"                       "primarysecondarytoggle; toolreset; meleereset"

alias "tooltoggle"            "tool1"
alias "tool1"                 "slot5; alias tooltoggle tool2"
alias "tool2"                 "slot4; alias tooltoggle tool1"
bind "e"                      "tooltoggle; primarysecondaryreset; meleereset"

alias "primarysecondaryreset"  "alias primarysecondarytoggle secondary"
alias "toolreset"              "alias tooltoggle tool2"
alias "meleereset"             "alias meleetoggle melee1"ee1"

(First script sorry if this is jank.)

This code when pasted into your autoexec.cfg binds 'q' to swap between primary and secondary, it binds 'e' to swap between your 'tools' (slots 4 and 5), and mouse 4 to swap between your melee and you previously used weapon. All of these are rebindable of course! Just locate where it says 'bind' in the script and change it to whatever you'd like, all numbers 1 to 5 still work as normal!

Please let me know if anything is jank! Spy starts with his knife so you'll need to press q twice to swap to the zapper from spawn.
Sign up to access this!

No comments yet

Embed

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

Credits

Me
Nomporu
Scripter

Submitter

Nomporu avatar
Nomporu Joined 15d ago
Offline
Nomporu
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
  • 224
  • 15d
  • 15d

More Weapon Scripts Scripts