mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-01 09:27:14 +00:00
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:
@@ -253,6 +253,17 @@ namespace GameMessages {
|
||||
LWOOBJID possessedObjID{ LWOOBJID_EMPTY }; // optional
|
||||
};
|
||||
|
||||
// Client -> server. LWOCharacterComponent sends it on load: a scale for the distance at which objects are ghosted
|
||||
// for this player. All 239 live packets left the optional scale at its default (1), so the server keeps its own
|
||||
// ghosting distances.
|
||||
struct ModifyGhostingDistance : public NetGameMsg {
|
||||
ModifyGhostingDistance() : NetGameMsg(MessageType::Game::MODIFY_GHOSTING_DISTANCE) {}
|
||||
void Serialize(RakNet::BitStream& bitStream) const override;
|
||||
bool Deserialize(RakNet::BitStream& bitStream) override;
|
||||
|
||||
float fDistanceScalar{ 1.0f }; // optional
|
||||
};
|
||||
|
||||
// Client -> server.
|
||||
struct ToggleGhostReferenceOverride : public NetGameMsg {
|
||||
ToggleGhostReferenceOverride() : NetGameMsg(MessageType::Game::TOGGLE_GHOST_REFERENCE_OVERRIDE) {}
|
||||
|
||||
Reference in New Issue
Block a user