r/Tf2Scripts • u/Kushamo • Aug 26 '12
Satisfied [Help] High-fiving while typing bind?
Backstory: Earlier today, I was playing with my new high five taunt (best item evar), and after a while of using it obsessively I died while I was typing. I thought about how before I was going into the enemy base and offering high fives (with little success, but enough to be noticeable). Bind: Would it be possible to bind it so when I begin to type, I use the action slot item? I tried:
alias "chatfive" "+use_action_slot_item;say"
bind enter chatfive
but it only used the item, and I couldn't type. I suspect that the say command is more intended for preset messages (though I forgot to see if giving it a message to say would work), but other than that I have no idea why it didn't work. I'd greatly appreciate a solution, thanks in advance!
(Edit: I typed bind enter chatfive twice; removed top one)
Edit II: I worked on it a little more, and came up with this:
alias "chatfive" "+use_action_slot_item; bind w "+fivechat"; bind enter say
alias "+fivechat" "-use_action_slot_item; bind enter "chatfive"; +forward
alias "-fivechat" "-forward; bind w +forward"
bind enter "chatfive"
It solves the preset message/alias problem (using the say command in aliases gives preset messages instead of opening the chat box like it does when used without an alias), by binding enter to say after, and then sets w to cancel it. You have to hit enter twice, which is a bit annoying, but it's nothing detrimental
(Hey, another edit! This may or may not be awkward for MvM, where the action slot item is probably gonna be the canteen, but unless -use_action_slot_item cancels the canteen I think it should be fine)
1
u/TimePath Aug 30 '12 edited Aug 30 '12
Pure theory...
alias +fivetalk "say"
alias -fivetalk "+use_action_slot_item"
Bind it to backspace or something.
1
u/DavidTheWin Aug 26 '12
Not sure if there is a command just to open the typing window, but you could make several preset messages like so:
Making sure to set the last alias to bind enter back to chatfiveone.