mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Fix naked players and NPC gear textures
Default PLAYER_VISIBLE_ITEM layout to known WotLK 3.3.5a values (base=284, stride=2) so equipment reads work immediately without waiting for heuristic detection. Add equipment texture compositing for humanoid NPCs over baked body textures using ItemDisplayInfo.dbc region lookups (texture-only, no geoset changes to avoid invisibility).
This commit is contained in:
parent
58d8b88721
commit
d4bea91e37
3 changed files with 70 additions and 16 deletions
|
|
@ -1132,8 +1132,11 @@ private:
|
|||
|
||||
// Visible equipment for other players: detect the update-field layout (base + stride)
|
||||
// using the local player's own equipped items, then decode other players by index.
|
||||
int visibleItemEntryBase_ = -1;
|
||||
// Default to known WotLK 3.3.5a layout: UNIT_END(148) + 0x0088 = 284, stride 2.
|
||||
// The heuristic in maybeDetectVisibleItemLayout() can still override if needed.
|
||||
int visibleItemEntryBase_ = 284;
|
||||
int visibleItemStride_ = 2;
|
||||
bool visibleItemLayoutVerified_ = false; // true once heuristic confirms/overrides default
|
||||
std::unordered_map<uint64_t, std::array<uint32_t, 19>> otherPlayerVisibleItemEntries_;
|
||||
std::unordered_set<uint64_t> otherPlayerVisibleDirty_;
|
||||
std::unordered_map<uint64_t, uint32_t> otherPlayerMoveTimeMs_;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue