-
Notifications
You must be signed in to change notification settings - Fork 105
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
Out of map orders leniency #1769
Conversation
// Allow guarding out of map units only if both are builders to avoid plane hacks. | ||
if (guardee && !(guardee->unitDef->IsBuilderUnit() && ud->IsBuilderUnit()) && !guardee->pos.IsInBounds()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is for a game to decide. IMO either keep the limit as-is or remove wholesale, don't instate a different limit. In general that applies to every command whose limitation isn't for technical reasons.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, just did it like this because it's what ppl requested at beyond-all-reason/Beyond-All-Reason#763 but we can just remove the check here and then make it stricter in some lua gadget.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok removed the check here and prepared a PR for BAR doing the same check.
A bunch of other commands (capture, repair etc) still check bounds, perhaps if guard loses the restriction then they all should? |
Maybe, since nobody asked for that I didn't want to lift too many restrictions at the same time. Some of these might need further checks in games to avoid hacks, like with out of map guard command. That said, I'm open to removing further checks if you deem it necessary. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
Work Done
Related issues
Remarks