fix(messages): ChangeObjectWorldState and UnEquipInventory as the client reads them; add UncastSkill

ChangeObjectWorldState's state is optional on the wire (a flag, then the
state when it isn't INWORLD): live sent 80 80 00 00 00 for ATTACHED. DLU
wrote the bare u32, so the client read the rocket's ATTACHED as INWORLD.

UnEquipInventory gets its optional replacementObjectID (the client always
sends the flag; the server-sent copies in the captures have it too), so it
can be sent server -> client.

New UncastSkill (1206, server -> client: the client ends its running
instance of the skill, LWOSkillComponent::msgUncastSkill 0x00bd86d0).

Tests: all three against live capture bytes.

Check in game: launch a rocket; the rocket is shown in the player's hands
during the launch animation (for the launcher and players nearby).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-09-29 02:34:46 -05:00
parent aed16a8c80
commit b845faee72
8 changed files with 58 additions and 9 deletions

View File

@@ -93,8 +93,8 @@ namespace GameMessages {
LWOOBJID itemToEquip{};
};
// Client -> server. The client also sends an optional replacementObjectID after itemToUnequip, which DLU
// has never read (and still does not).
// Both directions: the client asks to unequip; the server tells the client an item was unequipped when it took
// it away (live: bIgnoreCooldown set, after RemoveItemFromInventory).
struct UnEquipInventory : public NetGameMsg {
UnEquipInventory() : NetGameMsg(MessageType::Game::UN_EQUIP_INVENTORY) {}
void Serialize(RakNet::BitStream& bitStream) const override;
@@ -105,6 +105,7 @@ namespace GameMessages {
bool bIgnoreCooldown{};
bool bOutSuccess{};
LWOOBJID itemToUnequip{};
LWOOBJID replacementObjectID{ LWOOBJID_EMPTY }; // optional
};
// Client -> server.