mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-27 00:11:35 +00:00
feat(load): PlayerReady also goes to the zone control object
Live answered PlayerLoaded with PlayerReady to the player and then a second PlayerReady to the zone control object (0x3FFFFFFFFFFE), both to the loading client: 235 of 237 captured loads carry exactly that pair. DLU sent only the first. The zone control object's client-side zone scripts are what can react to it (inferred: the client's component handlers only act on the player's own PlayerReady). Check: load into Avant Gardens, Nimbus Station, a property and an instance (a survival or dragon battle): the zone plays its intro, music and UI as before and nothing is stuck waiting. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -33,6 +33,10 @@ namespace GameMessages {
|
||||
PlayerReady() : NetGameMsg(MessageType::Game::PLAYER_READY) {}
|
||||
};
|
||||
|
||||
// Answers PlayerLoaded the way live did (235 of 237 loads): PlayerReady to the player, then to the zone control
|
||||
// object, whose client scripts wait for it. zoneControl is LWOOBJID_EMPTY when the zone has none.
|
||||
void SendPlayerReady(LWOOBJID player, LWOOBJID zoneControl, const SystemAddress& sysAddr);
|
||||
|
||||
// Server -> client, to one client. No payload.
|
||||
struct RestoreToPostLoadStats : public NetGameMsg {
|
||||
RestoreToPostLoadStats() : NetGameMsg(MessageType::Game::RESTORE_TO_POST_LOAD_STATS) {}
|
||||
|
||||
Reference in New Issue
Block a user