benilla-re systems structs docs

s_corpsePosition

global · ui

Address
0xb4e284 · 12 bytes, up to 0xb4e28f
Type
float[3]
Meaning
Holds the cached corpse position x, y and z
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.