[Xpilot-hacks] Modifier keys and action decoding.
Paul Forman
pforman at rocketjets.com
Sun Aug 25 02:51:47 ADT 2002
On Sat, 24 Aug 2002, Bert Gijsbers wrote:
> After changing it in the code it turns out that one can't
> lower shields and fire in the same key update anymore.
> Hmm, this is a grave disadvantage for all those -autoShield
> users out there. What to do?
Well, I see three options:
1) Don't change anything, forget the new features.
2) Write special-case code to either preserve old functions (like
auto-shield) with a reversed loop, or add new functionality (like the
auto-mods) with the current forward loop.
3) Shuffle the values assigned to various KEY variables, so that the
interactions are well-defined.
If I'm not mistaken, number 3 will horribly break the protocol for older
clients. It's probably the best long-term solution, but right now may not
be the time to do this.
Auto-shield already has some special-case code scattered throughout the
server, so if it's the only thing affected, I'd say let's just tweak it
into working (#2). I'm not sure what other funny same-frame bugs might
crop up, though...
Thoughts?
--
Paul Forman
pforman at rocketjets.com
More information about the Xpilot-hacks
mailing list