r/Tf2Scripts • • Mar 25 '21

Question Mouse bind toggle help

(I am using mastercomfig)

So I have my ALT key as my toggle key (for example, pressing e normally will call for medic but ALT+e will call for an ubercharge)

For my medic.cfg file, I want to have it where pressing mouse2 will pop uber normally, but ALT+mouse2 will teamsay that I used an uber according to my loadout slot.

I've had problems with this where it would continue to hold down attack2 when I press mouse2 once. Another problem I had was where it wouldn't say in teamchat at all.

my medic.cfg
my toggle portion of custom.cfg (would be autoexec.cfg without mastercomfig)

This is what I have now.

What I want to achieve:

- have mouse2 behave normally

- have ALT+mouse2 teamsay whichever uber I pop, according to my loadout slot (as a medic)

- have num1 thru 4 change my loadout and prep ALT+mouse2 to teamsay appropriate uber

I'm also concerned with my mouse3 bind in my "autoexec" file

in my "autoexec"

This might have a similar problem and can probably fix it with whatever solution I get for medic.cfg

Thanks for looking through my problem!

6 Upvotes

3 comments sorted by

View all comments

Show parent comment

2

u/DeltaTroopa Mar 25 '21

Yes, if I'm understanding you correctly, I want, when toggle is active, for only the team message to be said. I want to pop uber with right click and team say with alt+right-click.

ah, I had assumed you wanted the same button to use the uber and send the message.

Thank you so much for your help and for looking through my code <3.

Glad you got things sorted out.