CGCorpse_C::Interact
function · objectlayer · orchestration
- Address
0x5d6bf0· 237 bytes, up to0x5d6cdc- Signature
void __thiscall (CGCorpse_C *this, int shift)- Meaning
- Loots a lootable corpse or clicks the interact spell on a corpse the player cannot assist
- Confidence
- verified, proof one
- Finding
- objectlayer/corpses#right-clicking-a-corpse
Finding: Right-clicking a corpse in objectlayer: corpses
Slot 24 (0x5d6bf0(shift)) is the corpse's click. With no player nothing happens. A lootable
corpse (dynamic flags bit 0) clicked by an unmounted player is looted: a player who is not
standing gets error 133 (ERR_LOOT_NOTSTANDING); else, when the player is the active mover,
auto-loot is set to the shift state, and the player loots with the auto-interact setting. Anything
else with flags bit 5 set, the interact spell known and the corpse not assistable, goes to the
interact spell.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- CGGameUI::DisplayError ui
- CGCorpse_C::IsLootable objectlayer
- CGPlayer_C::LootCorpse objectlayer
- CGPlayer_C::SetAutoLoot objectlayer
- CGPlayer_C::InteractWithSpell objectlayer
- CGUnit_C::CanAssist_Corpse objectlayer
- CGUnit_C::CanAutoInteract objectlayer
Calls and jumps by a bare address, from tables/calls.tsv.