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
[3.3.5] Core/Movement: Pets go for the back unless being the victim #20128
Conversation
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.
Seems legit?
I mean, it's clearly not the best place to adjust the |
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.
If you've tested it... 👍
I'm running around with a warlock and a hunter for some time now and it's clearly an improvement. I haven't seen any pet dance regression (pet tries to reach the target's back while target tries to attack from the front) and the pet does no longer actively go for the front when it's not the target/victim. It's still not 100% what it used to be. In older versions of TC-3.3.5 the pet would just approach the target in a straight line and attack from there. Like it still does when using Charge (which uses a different |
Anything I can do to increase the likelihood that this gets merged into TC-3.3.5? |
Not really, it will be approved and merged when enough developers have had the chance to review it. |
Alright, looks like I found a possible problem with it |
I understand that |
Thing is the pet must face the creature when reaches the target (thats what the section shauren linked does). The pet will face its target visually (clientside) because it is targeting it (unit::SetTarget) and client makes the unit always face its target. But serverside the orientation will remaing incorrect, maybe being autocorrected for a second if it casts, but returning to old (incorrect) after the cast. This can break many things like autoattacks or spells that require facing. |
Could we change it so that the pet (server-side) faces a hostile target even when in its back, i. e. face the target's back? Would In older versions of TC the pet would simply approach in a straight line like it still does when using it's Charge ability and then attack from the point where it reached the target (ignoring the target's orientation by obviously using a different MovementGenerator, maybe Point?). At some point along the line (when?) it has probably been changed to use the I have actually tried to bisect the source starting from 2 years back to find that commit ... but given up due to TBD and vmap format changes getting in the way ... |
any news? |
If I have understood the conversation correctly, we are still waiting for a solution to the issue Shauren pointed out in #20128 (comment) . |
Any news on this @necropola ? |
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.
Please don't put that logic in the MoveGen. Like you already pointed it out, it's not a suitable place for pet logic (or any non movement logic really).
The reason there already is pet logic there is because of the laziness from past contributors. Let's not keep doing the same thing.
PS: I'm in the process of refactoring the MoveGen to clean it up from this kind of stuff.
PS2: I'm also in the process of improving the MoveGen. The overhead of complexity created by these unnecessary coupling between the different parts of the core are slowing down my progress significantly.
PS3: Nice work nonetheless. I know contributing to the project for the first time is hard, because of the size and the complexity. Keep it up!
I do hope @necropola is still alive and around to receive the feedback. |
Replaced by 2a84562 |
This restores the pet's original behavior to not always attack from the front and get cleaved down.
I was neither able to pinpoint the commit that broke it nor do I think I found the best place/way to fix it, but it's very effective and should make warlocks and hunters happy again.
Demo showing the new (restored) pet behavior: https://youtu.be/9p4CYmOOWaE