CGPlayer_C::GetVirtualItemDisplay
function · objectlayer · primitive
- Address
0x5ec380· 169 bytes, up to0x5ec428- Signature
uint32_t __thiscall (CGPlayer_C *this, uint32_t hand)- Meaning
- Returns the display id of a hand's weapon, honouring disarm (vtable slot 40)
- Confidence
- verified, proof one
- Finding
- objectlayer/playercombat#hand-weapons
Finding: Hand weapons in objectlayer: player spells and combat
Slot 38 (0x5ec240(hand, raw)) returns a hand's weapon record: hand 0, 1 and 2 are slots 15, 16
and 17. Without raw, a disarmed player has no main-hand weapon, and no off-hand weapon when the
main hand holds none; an item whose visible flag bit 0 is set counts as none. The record is five
bytes at +0x1d50 + 8·hand: the class, subclass and three more from the item record. Slot 40
returns the display id, slot 39 its ItemDisplayInfo row.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 2
- CGPlayer_C::GetVisibleItem objectlayer
- GetItemDescDisplayId objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.