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

Theta: try to fix units 'retreating' into black area #151

Open
TheKeyBlue opened this issue Oct 8, 2016 · 2 comments
Open

Theta: try to fix units 'retreating' into black area #151

TheKeyBlue opened this issue Oct 8, 2016 · 2 comments

Comments

@TheKeyBlue
Copy link
Contributor

Attack move can drag units far away from their target location. If player retreats, they will pursue very far (especially MML due to long range?). In some cases they will retreat back into black area to continue their original move commands. This can be quite annoying especially with MML retreating after killing a bunch of your stuff or them running away from your ACU..

Example.
http://forums.faforever.com/viewtopic.php?f=2&t=12625&start=40
#5196596 at 18-19min

@speed2CZ
Copy link
Member

speed2CZ commented Oct 8, 2016

This will always happen with attack move / patrol. Easiest solution is not to send them from off map when player's stuff is so close the the edge of the playable area. Which is not possible in this case.

What you can do it so make a custom function for this kinds of platoons that will replace PatrolThread
It will work with thow chains, first will be move chain second patrol/attack chain.
So first order will be to move units to the attack position that will be on the playable area, this way you can send them via offmap route.
Second will be Patrol/attack move that starts in the playable area.

The function itself should not be hard to make since you can use function already available in ScenarioPlatoonAI. Just need to call the function with move first and then the one with attack/patrol.

@TheKeyBlue
Copy link
Contributor Author

I already have such a custom function.
https://github.com/FAForever/faf-coop-maps/blob/master/ThetaCivilianRescue/ThetaCivilianRescue_m1cybranai.lua#L210
But with an initial attack move from base to offmap, to avoid patrols from running away from the base when it is in need of defense.

Maybe not using the offmap routes when the player attacks the base is a better solution. Instead use some defensive patrol route. Then I can remove the initial attack move since its purpose is gone.

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

No branches or pull requests

2 participants