Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always retreat units back to LZ or starting position #3557

Merged
merged 2 commits into from
Dec 4, 2023

Conversation

KJeff01
Copy link
Member

@KJeff01 KJeff01 commented Dec 2, 2023

Prior to 4.2.0-beta1 a unit set to retreat at X damage would go back to the LZ in the campaign when damaged enough if no HQ was around. This got broken during repair improvements though the fix is simple: if no repair targets around, and the HQ is missing on the map, just issue a return to base order and the unit will find the LZ automatically.

Since a lot of missions take place on offworld maps where no HQ is present, it can get some players caught off guard. This fix will make saving units easier.

Similarly, mp/skirmish can benefit from this. Because RTB relies on LZ coordinates as a fail-safe, and because LZs do not exist outside campaign, the current behavior is to do nothing. I have set units to seek out the starting position coordinates in mp/skirmish to fix this. VTOLs will benefit from this should the player have no rearming pads or an HQ if they run out of ammo.

Retreats units back to the startPosition area much like campaign does for LZ data.
@KJeff01 KJeff01 merged commit dfb2aea into Warzone2100:master Dec 4, 2023
33 of 35 checks passed
@KJeff01 KJeff01 deleted the secRetreat branch December 4, 2023 15:14
@KJeff01 KJeff01 added this to the 4.5.0 milestone Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant