Teleport Bind help
Hi,
I started playing again after several years away and I thought that for one of my teleporting characters back then (I deleted them when I quit) I made a bind that activated hover and brought up the target for where I teleport to. But I don't remember how to make it or I'm mis-remembering how it worked. I have a bind just for teleport so I can press key, click, press key, click, etc... "/bind e powexec_name teleport". But I'm stuck as to adding the Hover in there. I wasn't sure if I just put "powexec_name hover" in there if it would toggle it on and off each time, which I don't want. Is this possible to keep hover toggled on while teleporting (using the same key on the keyboard)? Or do I just have to turn on hover seperately then use my teleport bind? Thanks for any advice. |
You're going to have to toggle hover on separately.
There's limits built into the bind system that prevent you from activating two powers with a single keypress.
bind Shift "+$$powexecname hover"
bind lbutton+shift "powexecname teleport"
should get you close to that effect, minus the teleport reticule.
I know that you can turn a toggle on AND activate a click power in the same bind. I haven't tested this, but you might want to try something like:
/bind shift+lbutton "powexec_toggleon hover$$powexec_name teleport"
You'll then have to turn off Hover manually or set up another bind to turn off Hover.
Another option is that I think those binds are built into an old bind program, Citybinder. I still use Citybinder, and somebody was nice enough to update it with the new powersets. You have to download the program first, then the updates. Take a look at this thread for the links to the original program and the update.
LOCAL MAN! The most famous hero of all. There are more newspaper stories about me than anyone else. "Local Man wins Medal of Honor." "Local Man opens Animal Shelter." "Local Man Charged with..." (Um, forget about that one.)
Guide Links: Earth/Rad Guide, Illusion/Rad Guide, Electric Control
For those interested, I just tested this, and the following dynamic bind works as the OP wanted, plus pulls the camera back. just add in the complete path for where ever you stick the files.
tp_off
LSHIFT "+down$$powexectoggleon Hover$$powexecname Teleport$$camdist 200$$bindloadfilesilent tp_on1.txt" LSHIFT+LBUTTON "nop"
LSHIFT "-down$$powexecunqueue$$Powexectoggleoff Hover$$camdist 20$$bindloadfilesilent tp_off.txt" LSHIFT+LBUTTON "+down$$bindloadfilesilent C:\cohkeybinds\teleport\tp\tp_on2.txt"
LSHIFT+LBUTTON "-down$$powexecname Teleport$$bindloadfilesilent tp_on1.txt"
For those interested, I just tested this, and the following dynamic bind works as the OP wanted, plus pulls the camera back. just add in the complete path for where ever you stick the files.
tp_off Code:
LSHIFT "+down$$powexectoggleon Hover$$powexecname Teleport$$camdist 200$$bindloadfilesilent tp_on1.txt" LSHIFT+LBUTTON "nop" Code:
LSHIFT "-down$$powexecunqueue$$Powexectoggleoff Hover$$camdist 20$$bindloadfilesilent tp_off.txt" LSHIFT+LBUTTON "+down$$bindloadfilesilent C:\cohkeybinds\teleport\tp\tp_on2.txt" Code:
LSHIFT+LBUTTON "-down$$powexecname Teleport$$bindloadfilesilent tp_on1.txt" |
First, I don't see why you used +down in those. The same effect can be done by simply using "+$$" in front of every line instead like you displayed in your previous post. Then there is also no need for -down. The only reason you needed it before was because it was canceling the +down you had in there. The down command is moving your character downward a little every time you click the button. Putting "+$$" in front of each line will still run the commands on keyrelease as designed. It's not a big deal, I know, but figured I could clean it up a little for you.
Second, LSHIFT+ is not really a valid chord. Any L and R designations are instantly removed as soon as they are loaded. They can only be bound separately when binding something to that key alone. Your chorded bind is able to be activated by pressing RSHIFT as well, so the "clean" code would be simply written as SHIFT+LBUTTON instead.
Again, it's just minor changes, but it's a little more cleaned up and shouldn't ever move your character because it doesn't use any movement commands. Overall the code works great. Nice job!
For people who are not good with setting up bind files, you can use the following instead:
LSHIFT "+$$powexecname Hover" SHIFT+LBUTTON "powexec_name teleport"
On a side note, a cool side-effect to both these bind methods is that you can hold LSHIFT to toggle hover on real quick (or whatever flight power you choose to do this with) for whatever reason during gameplay so you don't have to manually click it on and off when needed... and if you do it right, you can double-tap it to toggle on and off, rather than having to hold it down.
Just for some historical perspective, that TP bind was original written by a friend of mine a looooooooooooong time ago. We're talking pre CoV release here.
So please forgive some of the code weirdness. He spent a crapton of time trying to get it to work just right without the benefits of knowing what we do now of how to game the bind system.
Totally forgot that you could use the powexec_toggleon combined with powexec_name to do the hover thing.
LOCAL MAN! The most famous hero of all. There are more newspaper stories about me than anyone else. "Local Man wins Medal of Honor." "Local Man opens Animal Shelter." "Local Man Charged with..." (Um, forget about that one.)
Guide Links: Earth/Rad Guide, Illusion/Rad Guide, Electric Control
This bind should work, but my problem is that I use Shift a lot with other binds. I use Shift+other mouse buttons and other keys to access various powers. With this bind, it would activate Hover every time I used the Shift key. I haven't tested the simple one I wrote above because I don't currently have any characters with both Hover and Teleport -- and I don't have access to the game right now.
|
The bind you listed above should work just fine. I just tested it and the first press of the key activates the flight power and gives a teleport target. Each subsequent press of the key gives another teleport target without interrupting flight.
Thanks all for your helpfull replies. I will give them a try.
Shift can easily be substituted with Alt or Control instead. It's all a matter of preference.
The bind you listed above should work just fine. I just tested it and the first press of the key activates the flight power and gives a teleport target. Each subsequent press of the key gives another teleport target without interrupting flight. |
I actually have a 9-button Logitech mouse, and the tilt-wheel on my mouse are re-programmed to "u" and "o." I can access other powers by using Shift-U, Ctrl-U and Alt-U, and Shift-O, Ctrl-O and Alt-O. Generally, U is for powers in the primary, and O is for powers in the secondary.
For example, on those characters with Build-up and Aim, I put them on Shift-U and Shift-O -- so to activate both, I hold down the Shift key and rock the wheel.
But thanks for testing it. I figured it would work.
LOCAL MAN! The most famous hero of all. There are more newspaper stories about me than anyone else. "Local Man wins Medal of Honor." "Local Man opens Animal Shelter." "Local Man Charged with..." (Um, forget about that one.)
Guide Links: Earth/Rad Guide, Illusion/Rad Guide, Electric Control
Hi,
I started playing again after several years away and I thought that for one of my teleporting characters back then (I deleted them when I quit) I made a bind that activated hover and brought up the target for where I teleport to. But I don't remember how to make it or I'm mis-remembering how it worked.
I have a bind just for teleport so I can press key, click, press key, click, etc... "/bind e powexec_name teleport". But I'm stuck as to adding the Hover in there. I wasn't sure if I just put "powexec_name hover" in there if it would toggle it on and off each time, which I don't want.
Is this possible to keep hover toggled on while teleporting (using the same key on the keyboard)? Or do I just have to turn on hover seperately then use my teleport bind?
Thanks for any advice.