Repository navigation
fix(Core/Player): Keep transport passenger position on teleport - #28174
bloodfangx wants to merge 1 commit into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Priority: ⬇️ Low Merge Risk: ⚪ Minimal · up to
|
f7c0b20 to
aabe6b4
Compare
Teleporting on a transport (e.g. sitting on a chair on a boat) updated world coordinates but left the passenger transport offset unchanged, causing the player to snap back on the next transport tick. Recompute the passenger offset from the teleport destination before sending teleport packets so the player remains seated.
aabe6b4 to
0596964
Compare
Changes Proposed:
This PR proposes changes to:
Description
When a player who was attached to a moving transport (like sitting on a chair on a boat or zeppelin) teleported by clicking on a chair, only their world coordinates were updated. Their local offset relative to the transport remained unchanged.
As a result, on the very next transport tick, the game recalculated the player's position using that old, outdated offset—causing them to instantly rubberband back to their previous spot.
This pull request recalculates the player's local transport offset based on their new teleport destination before sending the teleport packets to the client. This keeps both their world position and transport offset correctly synchronized.
AI-assisted Pull Requests
Important
Using AI tools to prepare pull requests is allowed, but it must be disclosed and it must follow our AC guidelines for AI Agentic Engineering (link below).
You are expected to fully understand the changes you submit and to be able to explain and justify them when maintainers ask.
Issues Addressed:
SOURCE:
The changes have been validated through:
Tests Performed:
This PR has been:
Tested locally on Windows/Linux (builds cleanly without warnings). Verified in-game on a moving boat while seated.
How to Test the Changes:
Known Issues and TODO List: