benilla-re systems structs docs

s_tutorialTimers

global · ui

Address
0xb71178 · 12 bytes, up to 0xb71183
Type
uint32_t[3]
Meaning
Holds the list of delayed tutorial prompts, each a node with a number and a deadline
Confidence
verified, proof one
Finding
ui/tutorials#the-delayed-trigger

Finding: The delayed trigger in ui: tutorials

A delay above 0 cancels the pending timer ProcessTutorialTimers, allocates a 16-byte node (links in the first 8 bytes, the number at +0x8, the deadline now + delay at +0xc, from OsGetAsyncTimeMs), links it into the list 0xb71178 and calls 0x4b57f0(now). That arms one game timer (0x401520) for the smallest time to a deadline, 0 for a deadline already past, and keeps its handle in 0xb711d8. The callback 0x4b5840 clears the handle, plays the sound and signals the event for every node whose deadline has come, frees each, and re-arms through 0x4b57f0. Only one number is queued by the client: number 3, 10000 ms after a forward, backward or autorun press.

The derivation is in the doc.