benilla-re systems structs docs

CompareBattlefieldScores

function · ui · primitive

Address
0x4aa350 · 560 bytes, up to 0x4aa57f
Signature
int32_t __cdecl (void **a, void **b)
Meaning
Orders two score rows by the filtered team, kills, deaths, honor and name
Confidence
verified, proof one
Finding
ui/battlefield#the-comparator

Finding: The comparator in ui: battlegrounds

0x4aa350 returns 0 when either name record is missing. With a filter other than -1 it computes both teams; if they differ the row whose team equals the filter comes first. Then the keys are: kills, the higher first; deaths, the lower first; honor, the higher first; the name, case-insensitive. Honorable kills and rank order nothing.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 2

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