OpenXcom Forum
OpenXcom Forks => OpenXcom Extended (OXCE) => OXCE Suggestions DONE => Topic started by: Bonakva on May 01, 2022, 11:01:33 am
-
Is it possible to send multiple fighters to a UFO at once?
I accidentally found out that it is possible to send an escort through "shift". Is it possible to send several ships from different bases at once? After 100 UFOs it's annoying to click on each fighter separately....
-
No, such option has not been implemented yet.
-
As a side note: I did try my hand at that feature. Major parts of it was integrated in this pull request (https://github.com/MeridianOXC/OpenXcom/pull/80).
The original proof of concept behavior was that all crafts get the same target. I am not sure how we came to the decision (maybe it was me) but I went for setting up a framework so crafts follow the first craft/the wing leader instead by setting the first craft as destination. For the wing leader framework I did try my hand at intercepting non-hunter-killer with wing crafts having the wing leader as their destination. You can have a look here (https://github.com/BeatAroundTheBuscher/OpenXcom/commit/a36289c232e4d7e0906d6bc159589adee919629a). One thing I am not sure about this implementation is what happens if you have two wings following two different UFOs.
I suppose the much easier solution is to change the current implementation to the proof of concept behavior. For this purpose you can edit this line (https://github.com/MeridianOXC/OpenXcom/blob/11a6cb931cf359edb2b8c42c07bbdba02c78cce2/src/Geoscape/ConfirmDestinationState.cpp#L314) to L315 below.
310 for (std::vector<Craft*>::iterator i = _crafts.begin(); i != _crafts.end(); ++i)
311 {
312 if ((*i) != _crafts.front())
313 {
314 //(*i)->setDestination(_crafts.front()); // follow wing leader
315 (*i)->setDestination(_target); // get the same target as the wing leader
316 }
You can test the feature by starting a new vanilla campaign. Wait for the first UFO. Open your interceptor window. Shift-leftclick Interceptor-1. Leftclick Interceptor-2. Target UFO.
-
OK, I have moved this thread into Suggestions board.
-
Second that
-
Well, it's difficult, but I finally made at least some decision.
As a side note: I did try my hand at that feature. Major parts of it was integrated in this pull request (https://github.com/MeridianOXC/OpenXcom/pull/80).
The original proof of concept behavior was that all crafts get the same target. I am not sure how we came to the decision (maybe it was me) but I went for setting up a framework so crafts follow the first craft/the wing leader instead by setting the first craft as destination.
It makes sense in "escort the skyranger to the destination" situations.
Less in "intercept UFO with multiple interceptors".
Even less in "intercept UFO with multiple interceptors from different bases".
And there's also the "check starting conditions" issue.
I guess it was the less painful decision at the time.
Not sure who made it.
For the wing leader framework I did try my hand at intercepting non-hunter-killer with wing crafts having the wing leader as their destination. You can have a look here (https://github.com/BeatAroundTheBuscher/OpenXcom/commit/a36289c232e4d7e0906d6bc159589adee919629a). One thing I am not sure about this implementation is what happens if you have two wings following two different UFOs.
This is too complicated.
Both code-wise and user-experience/friendliness-wise.
I looked at it several times over the last year, and wasn't able to come up with a solution I'd like.
I suppose the much easier solution is to change the current implementation to the proof of concept behavior.
Agreed.
But I let the user decide between the two approaches.
The default for flying UFOs is "everybody goes after the UFO individually".
The default for crashed/landed UFOs and every other type of target is "follow the wing leader".
The user can change the default via a toggle button, see screenshot.
https://github.com/MeridianOXC/OpenXcom/commit/fe4f8cf9dafbd37a7bed9c46f5f088b7d3aaec7d
-
Nice implementation, been looking forward to this, next stop the Hanger feature? One can hope and dream!