benilla-re systems structs docs

CheckActivePlayer

function · ui · orchestration

Address
0x494a50 · 247 bytes, up to 0x494b46
Meaning
Answers whether an action of a kind may run; kinds 0 and 11 refuse a nonzero context and signal
Confidence
verified, proof one
Finding
ui/protected#protected-action-gate

Finding: Protected action gate in ui: protected actions

0x494a50(tag) answers whether an action of a kind may run. The Lua context word 0xceeac0 decides first. A nonzero (script) context with tag 0 or 11 always returns 0, signalling the forbidden-action event. A nonzero context with tag 2, 4 or 10 returns 1 only while one of the three input-event flags below is set; any other tag returns 1. A zero (client) context with tag 0 or 11 returns 1 only while a flag is set; any other tag returns 1.

The derivation is in the doc.

Callers 45

Callees 6

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