benilla-re systems structs docs

ProjectBlip

function · ui · primitive

Address
0x4eaa30 · 86 bytes, up to 0x4eaa85
Signature
void __thiscall (void *this, float player_a, float player_b, float radius, float entity_a, float entity_b, float width, float scale, uint32_t arg9)
Meaning
Writes a blip's disc position from its offset to the player over the zoom radius, with no rotation
Confidence
verified, proof one
Finding
ui/minimapblips#the-north-up-disc
Test
ui::geo_4eaa30

Finding: The north-up disc in ui: Minimap blips, arrows and dots

The disc does not rotate. A blip's position is the world offset swapped to the screen axes: from the disc centre, the screen x is k − (k/R)·(entity y − player y) and screen y up is k + (k/R)·(entity x − player x), with k half the widget width times the layout scale. The only rotations are the player arrow, which turns with the player's facing, and the rim arrows, each turned to its bearing. The trigonometry in the minimap is the bearing atan2 and the fsincos that turns that bearing back into a rim position.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

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