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
Fixed sonar pulse getting deployed on land #17982
Conversation
Unfortunately this leaks state through the shroud: the cursor tells the player whether a cell hidden under the shroud is water or something else. We will also need to limit this to cells that are either currently visible or perhaps visible + fog. |
Added a shroud check. |
does Terrain= only accept a single type or a list of comma seperated terrain ? asking because, see: |
A list of comma seperated terrain types. |
Can we put these checks under base SupportPower instead of SpawnActorPower? i can see Terrain checks being used for other powers too. |
Adding those kind of checks to This PR is only applying the checks in the client-side order targeting: this means that players can modify their client to allow them to target the power anywhere on the map without desyncing the game. The support power code does not expose a way for implementations to tell the manager that a targeting request is invalid and should be rejected - this is why the iron curtain and chronosphere misfires occur. We really should fix that before we try to proceed here. |
Maybe the cursor shouldn't change when it's on land? I think the name makes it pretty obvious it needs to be used in the water. |
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.
Works as advertised and seems reasonable. 👍
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.
We should also perform those checks in Activate
before anything is done by the power. That will alleviate the cheating concerns.
Added the checks to activation as well. |
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.
A few comments then this should be good to go. (Bonus points if you managed to reduce duplication.)
Removed the redundancy. I thought there might have been performance implications, but there aren't any. |
Closes #6145.
Closes #17371.