benilla-re systems structs docs

s_staticGameObjectHandler

global · objectlayer

Address
0xc4d840 · 16 bytes, up to 0xc4d84f
Type
uint8_t[16]
Meaning
Holds the handler that guard posts and unknown types share
Confidence
verified, proof one
Finding
objectlayer/gameobjects#building-the-type-handler

Finding: Building the type handler in objectlayer: game objects

The constructor switches on GAMEOBJECT_TYPE_ID from 0 to 30: each case allocates the type's handler and runs its constructor with the object. Type 21 and any type above 30 get a shared static handler and log BADBASEGAMEOBJECT. A failed allocation leaves no handler. Every built handler starts with a vtable, the object at +0x4, an error at +0x8 and a use range at +0xc, by default ERR_USE_LOCKED and 5.0 yards. The static handler has only its vtable; its +0x4 to +0xc stay zero, unread because its slots 5 and 6 return 0.

The derivation is in the doc.