mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-17 01:05:28 +00:00
fix(entity): send updatesWithParentPosition from the spawn behavior, as live
The parent info always said the object doesn't move with its parent. Live sent true for objects a spawn behavior made with updatePositionWithParent (all 70 Engineer Personal Fortress constructions in the captures, LOT 9479, and the Summoner's Scratch, 9644); the client then moves them with the player. Every other construction in the captures sent false, and none sent an object world state, which stays unsent. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -728,7 +728,7 @@ void Entity::WriteBaseReplicaData(RakNet::BitStream& outBitStream, eReplicaPacke
|
||||
outBitStream.Write(m_ParentEntity != nullptr);
|
||||
if (m_ParentEntity) {
|
||||
outBitStream.Write(m_ParentEntity->GetObjectID());
|
||||
outBitStream.Write0(); // Updates position with parent, usually false in live. Haven't seen a case where its supposed to be true
|
||||
outBitStream.Write(m_UpdatesWithParentPosition);
|
||||
}
|
||||
outBitStream.Write(!m_ChildEntities.empty());
|
||||
if (!m_ChildEntities.empty()) {
|
||||
|
||||
Reference in New Issue
Block a user