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
If there is no RearmBuildings available, helis land and freeze the game. #14479
Comments
HeliAttack goes into an infinite loop somewhere. |
Not a regression (previous release already has this bug, I just checked), just another confirmation our aircraft activities are crap. Since it doesn't affect the shipping mods by default, not a must-fix for next release (though it would be nice if there's an easy fix for this), but we should at least aim for the planned activity refactor to be finished for Next+1. |
I wanted to get Red Zone into the next version, but with that many blockers, looks like it has to wait. |
I have investigated that a bit, after landing, unit is entering an infinite loop between HeliAttack and HeliReturnToBase activites because of the lines i linked. Also, IMO that landing needs a LandOnIdle check and, if LandOnIdle is false it shouldn't land to ground. |
The code i linked above at HeliAttack doesn't looks like working anyway. After rearm, helicopters go to rally point, not continue to attack where it was attacking, which is the bahaviour we want i think. If current behaviour is really fine, we can get rid of that dead code, which would fix the freeze. |
While it doesn't directly affect the shipping mods (not counting mod maps), it should be an easy fix, so we should really try to get this sorted before next playtest. |
I was working on #12596 and noticed this. Should be fixed for map to properly work.
To test you can just slap Chinook's LandableTerrainTypes to Hind or Longbow and use all their ammo while there is no helipad for them to rearm. In fact, they try to land without LandableTerrainTypes too, but as they can't game doesn't freeze either.
May be a regression from lastest ammo refactors.
The text was updated successfully, but these errors were encountered: