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

Capture showing wrong cursor with multiple Captures trait with differnt cursors against different targets. #21055

Open
MustaphaTR opened this issue Sep 11, 2023 · 6 comments
Labels
Milestone

Comments

@MustaphaTR
Copy link
Member

#20261 seem to have regressed something. I've engine updated GenAlpha to include it and now building capturing use the enter cursor instead of ability one. The enter cursor seems to be coming from the Capture trait for driverless vehicles, commenting out that Captures: trait seems to show the ability cursor properly for the capturer infantry.

@MustaphaTR MustaphaTR added the Bug label Sep 11, 2023
@PunkPun
Copy link
Member

PunkPun commented Sep 11, 2023

Cursor priority shouldn't have changed?

@MustaphaTR
Copy link
Member Author

I couldn't figure out why it happens, but it does. Seem to visible in basemods (TD) too, with my testcase screenshot on that PR. Trying to repair an enemy husk still shows a red cursor provided its health is above the threshold, while it should be always green. You can also test by adding EnterCursor: ability to the first Captures, and see that all 3 cases start using it.

@MustaphaTR
Copy link
Member Author

MustaphaTR commented Sep 21, 2023

This seem to be affecting Voicelines too.

I think i can see why it is happening now, tho not sure how to fix it. Here the CanTarget check returns true for all Captures traits on the actor, making the first trait used for the order generator, as such for cursor and voicelines, regardless of that specific trait's validness of the current target.

@PunkPun
Copy link
Member

PunkPun commented Sep 21, 2023

Yes, CaptureManager.CanTarget is supposed to be used in aggregate by classes that don't care which Captures is selected. While in this case it's for individual Captures

I fixed the original issue with selection like this here like this

@PunkPun
Copy link
Member

PunkPun commented Feb 19, 2024

Trying to repair an enemy husk still shows a red cursor provided its health is above the threshold

It shows green cursor on bleed

@MustaphaTR
Copy link
Member Author

MustaphaTR commented Feb 19, 2024

It shows green cursor on bleed

Cannot confirm, are you sure the husk you tested with didn't already have less than 50% health? After that point, which natually happens after some time, it does turn to green. It should always be green instead, regardless of the health.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants