Zero-K icon indicating copy to clipboard operation
Zero-K copied to clipboard

Very fast horizontally flung jumpies can miss their LZ

Open sprunk opened this issue 1 year ago • 1 comments

If you queue a jump order and fling a jumpy at enough horizontal speed it can fail to land because gadget:CommandFallback normally only gets processed once per slowupdate. Perhaps jumpies detected to be in the air could be placed in a list that forces checks every frame via wait-wait?

sprunk avatar Feb 12 '24 12:02 sprunk

It's a reasonable bug but idk about waitwait. If we're already looping over units to waitwait them, then why not just do some sort of luarules-triggered CommandFallback instead, as a GG in the jumpjet gadget? All it has to do is handle whether the command is removed or not. Then some sort of flying unit gadget just needs to poke the JJ units at a higher frequency, or the JJ gadget could detect such cases itself.

GoogleFrog avatar Feb 19 '24 07:02 GoogleFrog