bind problem


all_hell

 

Posted

I just tried to set up these two bind and I can't get it to work like I want -

/bind W "+forward$$powexec_auto Active Defense"
/bind S "+backward$$powexec_auto Hasten"

They work fine except that they turn off the toggle as soon as I release the button. I assumed this was because the "+" does a double press, when you press and when you release, so I reversed the command to -

/bind W "powexec_auto Active Defense$$+forward"

and that left the toggle on, but it also left the forward movement on, so it was a perma autorun.

How do I get the commands to leave the auto power on, but only move when I'm pressing?


 

Posted

If you want a toggle turned on, you should use the powexectoggleon command. powexecauto is for clicks


"+down$$-down$$powexectoggleon blah blah

is a safe substitute for the simple "+" (as long as you're not flying)

as far as turning on the powexecauto with the direction command, I don't think you need the "+" at all

eg
/bind W "forward$$powexec_auto Active Defense"
/bind S "backward$$powexec_auto Hasten"

Otherwise, as you noted you issue the powexecauto command twice-- the second one canceling the 1st (no matter where you put it in teh command line)

you may be able to try a loading bind that executes one command on the depress and and then loads a new key bind file for another power to be executed when you release the button


any reason why you want to bind these autoexecs to your movement commands?


 

Posted

Since you can only have one auto fire power, I'm trying to make two different powers fire constantly.

I'm using the auto command because if I just fire the power, it keeps giving me that annoying beep every time I move, because they aren't refreshed yet.


 

Posted

Have you thought about tagging the execautos to attack commands or some other things else you use often, but don't require the "+" operator like movements do?

Or you could try this:

/bind W "+forward$$powexec_auto Active Defense$$powexec_auto Hasten"
/bind S "+backward$$powexec_auto Hasten$$powexec_auto Active Defense"

idk, I haven't tested it, but it may work as you intended-- leaving one or the other of them in auto mode all the time