After reading of formation headaches in
THIS thread, it occurred to me that perhaps there might be a way to override the hard-coded formation behavior with a table file. First of all, if implemented, I could foresee the ability to customize a formation using ship radii as an expandable distance so it can scale up depending on the size of the craft involved. I could also foresee it calculating the distance based on the size of the craft and the one next to it, so in theory you could mix together ships of quite varying size without them running into each other. There would also be a figure indicating what the maximum number of ships that can be arranged in this particular formation. Then the radii system would be used to indicate lateral separation, aft or fore of the lead, and vertical separation. The lateral separation would use positive or negative values indicating whether its left or right of the lead. Then the figures would be in order for position 2, 3, etc. You could have lead, 2 and 3 on the right side and 4, 5, and 6 on the left. I know that the default formation is alternating from side to side, but not being restricted to this could give us considerable flexibility. We could make a completely line-abreast formation, single file, or echelon.
The next set of options could include overriding restrictions of not using afterburner during waypoints, (which may have already been added to ai_profiles), or whether the formation should fly parallel while flying waypoints, as formations often crowd together when approaching a waypoint. I'm sure there are other options that modders might like to have incorporate into this.
The final issue is implementation. The first and most obvious location is in the wing editor in the same way we select ai classes. The second would be as part of the ai-form-on-wing sexp. This would add options for what formation to use, with the option for default, followed by perhaps what position in the formation the craft would take. Another option (though it would require changes to the ship selection interface screen) would be to give the player the choice of what formation to chose from a list of what the FREDder has allotted. The final option would be to allow the player to select the formation in mission when they make the "form on my wing" command. It would require another level within the comms menu.
So, is this feasible, desirable, too hard to impliment?