r/Tf2Scripts • u/reedworth • Aug 06 '18
Answered +attack not working with MWHEELUP/DOWN
+attack and other +/- commands don't seem to work with MWHEELUP/MWHEELDOWN when referenced via an alias.
These both work. I attack when I move the mouse wheel down, and I jump when I move it up:
bind MWHEELDOWN +attack
bind MWHEELUP +jumpThis doesn't work, though:
alias +test "+attack; echo foo;"
alias -test "-attack; echo bar;"
bind MWHEELUP +testThe echo calls register, but the +attack doesn't.
Is this something y'all have known about? Can others confirm this behavior?
Here's a screenshot after moving the mouse wheel up. Note that my character didn't jump:

4
Upvotes
View all comments
Show parent comment
1
u/reedworth Aug 06 '18
Thanks for helping me work on this. I think you updated your alias names (now
botandnobot) but not the bindings? Just clarifying that I understand your intention.The problem with this:
...is that
-attacknever gets executed, so you're stuck in a "button held" position. This is why the we're required to make both +/- states for our alias. The Wiki explains more.So I don't think that this is the answer. Let me know what you think, though.