benilla-re systems structs docs

CGWorldFrame::ClassifyHoveredCorpse

function · ui · primitive

Address
0x482740 · 394 bytes, up to 0x4828c9
Signature
void __thiscall (CGWorldFrame *this, CGCorpse_C *corpse)
Meaning
Sets the cursor mode for a hovered corpse from its loot and skin state
Confidence
verified, proof one
Finding
ui/worldcursor#corpses-and-game-objects
Test
ui::textglue_482_sq_len3_482740, ui::textglue_482_square_cmp, ui::textglue_482_sub3

Finding: Corpses and game objects in ui: the pointer picture

A corpse that 0x5d6e20 says the player may loot shows Pickup or LootAll (and the unable forms) by the same loot rule as a unit, from the corpse's distance. Otherwise a corpse with flag bit 5 set, the player-corpse skin latch 0xb700e8 set and a corpse the player cannot assist gets the faction skin cursor by reach, as a player target does. Anything else shows the base mode. A game object shows the mode 0x5f8760 returns, the base mode for 0, and a custom cursor for 41 (objectlayer/gameobjects#cursor).

The derivation is in the doc.

Callers 1

Callees 11

Calls and jumps by a bare address, from tables/calls.tsv.