mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-15 17:14:07 +00:00
feat(property): resend the equipment on ResyncEquipment
The property editor sends ResyncEquipment (1238, no payload) after the player picks up or sets down a model they carry: 59 live packets, every one right after PlaceModelResponse. Live answered with no game message, only replica serializations (packet 0x1b), i.e. the player's equipment sent again. DLU dropped it. The handler marks the inventory's equipped items dirty and serializes the player, so everyone gets the equipment again. That live re-sent the inventory part of the replica is inferred: the captures show a serialization but it was not decoded. Check in game: on your property, in build mode, pick up a model from the world and place it again a few times, then leave build mode: your hat, shirt, weapon etc. are all shown on you (and to a second player watching), none invisible. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -301,6 +301,11 @@ public:
|
||||
*/
|
||||
void PopEquippedItems();
|
||||
|
||||
/**
|
||||
* Marks the equipped items to be sent again with the next serialization (ResyncEquipment)
|
||||
*/
|
||||
void ResyncEquipment() { m_Dirty = true; }
|
||||
|
||||
/**
|
||||
* Returns if the entity has an item equipped of the given lot
|
||||
* @param lot to lot to search for
|
||||
|
||||
Reference in New Issue
Block a user