CGPlayer_C::OnVisibleItemChanged
function · objectlayer · primitive
- Address
0x5dee30· 766 bytes, up to0x5df12d- Meaning
- Refreshes the action bars and attack events and swaps the model's display for a changed visible item
- Confidence
- verified, proof one
- Finding
- objectlayer/inventory#visible-equipment
Finding: Visible equipment in objectlayer: inventory
A visible-item change (playerfields) calls 0x4fca20(0), 0x4f60c0 and 0x4c7ee0; for the
active player it calls 0x4e5c70 on the old and new entries and signals UNIT_ATTACK for the
hands or UNIT_RANGED_ATTACK_POWER for the ranged slot. It then detaches the old display from the
model and applies the new. 0x5ed700(record, slot) applies a display: the weapon slots 15 to 17
attach to the hands; the head and back are skipped while PLAYER_FLAGS hides them; the tabard
goes through 0x5e0720; the rest go to the character component. The non-hand slots apply only
while the display is the native one. A record not yet cached counts in +0x1d20 until it arrives.
The derivation is in the doc.
Callers 1
- OnVisibleItemWatch objectlayer
Callees 25
- ClntObjMgrGetActivePlayer objectlayer
- UnequipCharacterSlot charactermodel
- UnequipEquipmentSlot charactermodel
- DetachHeldItemSlot charactermodel
- RefreshPortrait ui
- SortSpellBook ui
- RecomputeInventoryAlerts ui
- RecountItemActionSlots ui
- BuildCraftList ui
- BuildTradeSkillList ui
- CGPlayer_C::ApplyEquipmentDisplay objectlayer
- SignalPlayerAttack objectlayer
- CGPlayer_C::GetVisibleItem objectlayer
- CGUnit_C::UpdateBaseAnimation objectlayer
- CGUnit_C::ReleaseWeaponTrail objectlayer
- CGUnit_C::SetSheatheState objectlayer
- GetItemDescInventoryType objectlayer
- GetItemDescRecordDword1b4 objectlayer
- FrameScript_SignalEvent2 ui
- CM2Model::AddRef models
- HandleClose2 models
- CM2Model::FindChild models
- CM2Model::Attach models
- CM2Model::Detach models
- CM2Model::DetachAt models
Calls and jumps by a bare address, from tables/calls.tsv.