Jump to content

Keybinds for toggling Fly


Recommended Posts

I've been working on a set of keybinds for seamlessly managing Fly. My goal is to have Fly automatically activate when moving and disable while stationary to conserve endurance, and I'm mostly satisfied with the results! I'm posting these for two reasons:

  1. If anyone else finds these useful, enjoy!
  2. If anyone has insight into the remaining limitations I'm struggling to work around, I'd appreciate some insight

 

Everything is written with the assumption that the attached zip file is extracted into the default folder, so the base bind file can be loaded like "/bind_load_file fly/base.txt" etc. It also works with Mystic Flight and Energy Flight (for the squids among us)!

 

For limitations - whichever movement key you press first is the key which determines the flight toggle, so it needs to also be the last key you release after a complex movement. Otherwise the Fly toggle behavior ends up backwards... annoying.

 

Example file contents:

 

base.txt

R "autorun 1$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/autorun.txt"
W "+forward$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/forward.txt"
S "+backward$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/backward.txt"
A "+left$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/left.txt"
D "+right$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/right.txt"
SPACE "+up$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/up.txt"
X "+down$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/down.txt"
MouseChord "+forward$$playerturn$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/mouse.txt"

 

autorun.txt

R "autorun 0$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$bindloadfilesilent fly/base.txt"
W "powexec_toggleon Afterburner$$powexec_toggleon Quantum Maneuvers$$powexec_toggleon Flight_Boost$$powexec_toggleon Quantum Acceleration"
S "+backward$$bindloadfilesilent fly/backward.txt"
A "+left"
D "+right"
SPACE "+up"
X "+down"
MouseChord "playerturn"

 

forward.txt

W "+forward$$powexec_toggleoff Fly$$powexec_toggleoff Mystic Flight$$powexec_toggleoff Energy Flight$$powexec_toggleon Fly$$powexec_toggleon Mystic Flight$$powexec_toggleon Energy Flight$$bindloadfilesilent fly/base.txt"
S "+backward"
A "+left"
D "+right"
SPACE "+up"
X "+down"
MouseChord "+forward$$playerturn"

 

(the other directions follow this pattern, with the "key release" resetting to the base bind file and the other directions using default behavior)

flybinds.zip

Edited by Chashak
I'm I'm
Link to comment
Share on other sites

Mostly look good. I'm not really a fan of the "generic" binds where you call every related power so that one bind can be used by varying alts. For use, I'd really edit these down to the specific power used. (For one thing, bindfiles do have a size limit, and packing in bulk text like this is likely to push things.)

 

But rolling binds in particular allow on/off toggling. You need to look at dual-action binds to complete the one-key automation; see the Tech Guide for complete info.

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 
Link to comment
Share on other sites

Although it occurs to me that unlike most on/off powers, you don't really want Fly to stop when you do, nor necessarily be bound to movement keys. And the need to move around on footsies means auto-activation of Fly wouldn't be a great thing.

 

I have a Logi mouse (okay, trackball) with two extra top keys. I bind "Go" to the slightly less convenient one, and "Stop" to the easier one. Works extremely well with all forms of Fly as well as SJ, and even the super speed powers. Keeps the travel power separated from regular movmement but "fly forward fast now" is one click away, and I can stick the landing every time.

 

BUTTON4 "emote flypose1$$autorun 1$$+up$$powexectoggleon Mystic Flight"
BUTTON5 "autorun 0$$up 0$$powexectoggleoff Mystic Flight"

 

The use of ++up is problematic because the command parser has, for several releases now, latched it on. You have to tap a cancel key (SPACE for me) to stop rising. But I find the little jump at the beginning helps keep from getting caught on walls, hedges etc. and it's convenient to rise for a while, usually.

 

Edited by Shenanigunner

UPDATED: v4.15 Technical Guide (post 27p7)... 154 pages of comprehensive and validated info on on the nuts and bolts!
ALSO:  GABS Bindfile  ·  WindowScaler  ·  Teleport Guide  ·  and City of Zeroes  all at  www.Shenanigunner.com

 
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...