benilla-re systems structs docs

CGWorldFrame::OnRender

function · ui · orchestration

Address
0x482ea0 · 1184 bytes, up to 0x48333f
Signature
void __thiscall (CGWorldFrame *this)
Meaning
Applies the idle law at the head of the world frame's render callback, then runs its per-frame work
Confidence
verified, proof one
Finding
ui/idle#the-idle-law
Test
ui::textglue_482_add3, ui::textglue_482_mul_add

Finding: The idle law in ui: the input stamp and the idle law

Every frame the render callback computes now - stamp in milliseconds. Below 300000 it does nothing. From 300000 it runs two legs in sequence for a player whose object exists. The sit leg asks the player to sit unless the stand state byte is nonzero, the unit is in combat (UNIT_FIELD_FLAGS & 0x80000), mounted (UNIT_FIELD_MOUNTDISPLAYID > 0) or auto-moving (0x6103a0). The away leg marks the player away unless the unit is on a taxi (flag 0x100000) or the away mirror 0xb6e5cc is set, which makes it fire once. From 1800000 (from the stamp, not after the 5) it prints IDLE_MESSAGE as a system chat line and requests a logout, once, unless a logout is pending.

The derivation is in the doc.

Callers 1

Callees 35

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