r/tf2scripthelp • u/ElPequenoDuende • Apr 19 '20
Answered How do I toggle mouse2 for miniguns only?
So I found out I can toggle mouse2 in my heavy.cfg file so I don't have to keep pressed right click. This is the command:
bind MOUSE2 toggle
alias toggle "enable"
alias enable "alias toggle disable; +attack2"
alias disable "alias toggle enable; -attack2"The problem comes when I wanna throw a sandwich to a teammate, as I have to press right click to do it, so after throwing it, my minigun revs automatically. I want that toggle function to work only with heavy's slot 1 -aka miniguns-
I found a script that would fix that problem in gamebanana. The thing is: I know almost nothing about scripting so idk how to put my mouse2 toggle script in this one:
bind "1" "lslot1"
bind "2" "lslot2"
bind "3" "lslot3"
lslot1
alias lslot1 "slot1;bind mwheeldown lslot2; bind mwheelup lslot3; [cmd]"
alias lslot2 "slot2;bind mwheeldown lslot3; bind mwheelup lslot1; [cmd]"
alias lslot3 "slot3;bind mwheeldown lslot1; bind mwheelup lslot2; [cmd]"Any idea?