r/Tf2Scripts • u/decitronal • Dec 20 '18
Request Help with binding team messages and voice commands
I want these voice commands and team messages to be bound to keys instead of having to bring up the voice menu and the team chat
The 5 other messages take effect if shift is being held down. The numbers on the left are the alphanumerical keys they are bound to.
1 = medic
2 = thanks
3 = go go go
4 = incoming
5 = spy
While holding shift
1 = sentry ahead
2 = team - TEAM ALERT: Sniper ahead!
3 = team - TEAM ALERT: Demoman traps around!
4 = team - TEAM ALERT: Enemy has Uber!
5 = team - TEAM ALERT: INCOMING W+M1 PYRO
Team alerts should say as displayed in this post
7
Upvotes
3
u/just_a_random_dood Dec 21 '18
Alrighty then, been a while.
I used my fastclass switcher to model this, and in that, only 3 binds were made per 3 binds per ctrl press, so I kept it to 3 rebinds per 2 binds per shift press...
uhh that was worded really weirdly
https://pastebin.com/S3vuEEGi
anyways, pastebin should have this, make sure you unbind and rebind shift in each class config as you see fit or whatnot
I haven't tested it out, literally just made this right now, but if there are any problems, test them out in a community server or something and tell me the specifics. This was a lot of fun to try, thanks for the idea man.
2
u/just_a_random_dood Dec 20 '18
Shouldn't be that difficult to script. Can't make an actual script right now, but I've got the idea down
alias +teamMessages [rebind 1-5]
alias -teamMessages [bind 1-5 to normal binds]
bind +shift +teamMessages
bind -shift -teamMessages
Edit: and in case rebinding within a bind is a bad idea, you could just make 2 new .cfg files and make these the binds (and just have +shift exec one file and -shift exec another?), though that'd be a little annoying.
2
u/FanciestBanana Jan 21 '19
Sorry for being late to discussion, but I have have a solution that might interest you.
It uses my TF2-EasyScript, so it might be incompatible with some other scripts you have but it's easy to port them.
If you have questions or want some more help just PM me.