CGWorldFrame::OnRender
function · ui · orchestration
- Address
0x482ea0· 1184 bytes, up to0x48333f- 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
- _atexit crt
- OsGetAsyncTimeMs core
- SetVector3 spline
- ClntObjMgrObjectPtr objectlayer
- ClntObjMgrGetActivePlayer objectlayer
- StampLightState ui
- ResetPickLists ui
- UnitFacingToVector ui
- SplitBitIndex ui
- AddChatLine ui
- FireTutorial ui
- CCamera::HasShotCamera uicamera
- CCamera::SetTarget uicamera
- CCamera::OnFrame uicamera
- 0x511c50 uicamera
- GetInputControl input
- DrainPortraitList ui
- 0x58b0c0 gx
- ClientConnection::Logout net
- ClientConnection::IsLogoutPending net
- ClientServices::GetCurrent net
- SetAfk objectlayer
- CGPlayer_C::SendStandStateChange objectlayer
- CGPlayer_C::UpdateFarSight objectlayer
- CGUnit_C::IsAutoMoving objectlayer
- FreeFinishedImpactMissiles objectlayer
- DrainDyingEffects objectlayer
- SetWorldTime terrain
- CWorld::BeginFrame terrain
- CWorld::SetRenderFlags terrain
- CWorld::SetObjectTransport terrain
- FrameScript_GetText ui
- LcdNoticeEmpty ui
- Sound::SetListener sound
- CompareMatrix4 cmath
Calls and jumps by a bare address, from tables/calls.tsv.