mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
fix: stand-up-on-move and nameplate position tracking
Camera controller / sitting: - Any movement key (WASD/QE/Space) pressed while sitting now clears the sitting flag immediately, matching WoW's sit-to-stand-on-move behaviour - Added StandUpCallback: when the player stands up via local input the callback fires setStandState(0) → CMSG_STAND_STATE_CHANGE(STAND) so the server releases the sit lock and restores normal movement - Fixes character getting stuck in sit state after accidentally right-clicking a chair GO in Goldshire Inn (or similar) Nameplates: - Use getRenderPositionForGuid() (renderer visual position) as primary source for nameplate anchor, falling back to entity X/Y/Z only when no render instance exists yet; keeps health bars in sync with the rendered model instead of the parallel entity interpolator
This commit is contained in:
parent
48d15fc653
commit
564a286282
4 changed files with 34 additions and 8 deletions
|
|
@ -628,6 +628,11 @@ void Application::setState(AppState newState) {
|
|||
gameHandler->sendMovement(static_cast<game::Opcode>(opcode));
|
||||
}
|
||||
});
|
||||
cc->setStandUpCallback([this]() {
|
||||
if (gameHandler) {
|
||||
gameHandler->setStandState(0); // CMSG_STAND_STATE_CHANGE(STAND)
|
||||
}
|
||||
});
|
||||
cc->setUseWoWSpeed(true);
|
||||
}
|
||||
if (gameHandler) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue