Turns out I need to change a lot of other stuff for this to work properly. Part 1 of this work attached - just changes the API for actionInsideMinRange(), as I want to remove a lot of the hardcoded weapon slot indexing.

I rewrote the turret management code to fix problems with self-repair, but mostly because the existing code was hideously ugly and hard to maintain. It should now be easier to extend to support multiple turrets, where one or more are non-weapon turrets.

Copyright (C) 2004-2006, the Gna! people. Posted items are owned by whoever posted them.
Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.