benilla-re systems structs docs

QueryCorpse

function · ui · orchestration

Address
0x491f50 · 187 bytes, up to 0x49200a
Meaning
Resets the corpse cache and asks the server for a ghost's corpse position
Confidence
verified, proof one
Finding
ui/deathui#the-corpse-location

Finding: The corpse location in ui: death, the corpse run and resurrection

A ghost asks for its corpse with the empty packet 0x216, sent by 0x491f50 when the player has the ghost bit (PLAYER_FLAGS bit 4) set. The function first resets the cache (0x492010(-1, 0, 0, 0, -1)) and the range latch. The answer is u8 found, i32 mapId, f32 x, y, z, i32 corpseMapId; with found set and the player a ghost it is stored by 0x492010 at 0xb4e31c, 0xb4e284 to 0xb4e28c and 0xb4e320, otherwise the cache is reset.

The derivation is in the doc.

Callers 2

Callees 6

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