feat(messages): read ModifyGhostingDistance

LWOCharacterComponent sends ModifyGhostingDistance (1485: an optional
fDistanceScalar, default 1) on load. All 239 live packets were
the single byte 00 (default scale), so there is nothing for the server to
change; it was logged as an unknown game message. It is now read and
ignored.

Check in game: nothing changes; the world server log no longer has
"Received Unknown GM ... 1485" on each load.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-29 03:25:15 -05:00
parent 3672b64dec
commit 3c7f93dac4
4 changed files with 32 additions and 0 deletions

View File

@@ -396,6 +396,15 @@ namespace GameMessages {
return ReadPoint(bitStream, pos);
}
void ModifyGhostingDistance::Serialize(RakNet::BitStream& bitStream) const {
BitStreamUtils::WriteOptional(bitStream, fDistanceScalar, 1.0f);
}
bool ModifyGhostingDistance::Deserialize(RakNet::BitStream& bitStream) {
VALIDATE_READ(BitStreamUtils::ReadOptional(bitStream, fDistanceScalar, 1.0f));
return true;
}
void SetGhostReferencePosition::Handle(Entity& entity, const SystemAddress& sysAddr) {
auto* player = PlayerManager::GetPlayer(sysAddr);
if (player == nullptr) return;