KhanSentinelSomething like
bind 3 "+melee"
alias +melee "slot3; unbind MOUSE2"
bind 2 "+secondary"
alias +secondary "slot2; bind MOUSE2 +attack2"
bind 1 "+primary"
alias +primary "slot1; bind MOUSE2 +attack2
Having bind-commands within quotes is generally a bad idea (dont know why exactly, but apparently it might cause some problems). Something like this should work better:bind mouse2 "clicktoggle"
bind 1 "slot1, alias clicktoggle clickon"
bind 2 "slot2, alias clicktoggle clickon"
bind 3 "slot3, alias clicktoggle clickoff"
alias clicktoggle "+attack2"
alias clickon "+attack2"
alias clickoff ""
I'm on mobile too, but I think that should work
the syntax is wrong so this script won't work. Also since -attack2 wasn't called you'll be stuck with +attack2 if you click mouse2 once.
I think this script should work but I haven't tested it.
Put this in medic.cfg
bind mouse2 +clicktoggle
bind 1 "slot1; alias +clicktoggle +attack2; alias -clicktoggle -attack2"
bind 2 "slot2; alias +clicktoggle +attack2; alias -clicktoggle -attack2"
bind 3 "slot3; alias +clicktoggle"
All other class cfgs
bind mouse2 +attack2
bind 1 slot1
bind 2 slot2
bind 3 slot3
But really, I think you shouldn't need a script like this. Being able to switch to medigun and pop uber ASAP is really useful in stressful situations when you need to clutch as a medic. If you have the habit of accidentally misclicking there are three things you could do:
1. Get a mouse with more resistant triggers.
2. Change your mouse grip.
3. Condition yourself to stop misclicking mouse buttons by binding the buttons you usually mispress to kill, and play pubs for a few hours. Dying is a very negative stimuli so you'll train your muscle memory to avoid misclicking.