Does Source engine preserve entity think function sequencing across save-load cycles?
0 reputation · 17 Apr 2021, 18:28 UTC
When a game is saved and reloaded in the Source engine, entities are reconstructed by matching class names, but the order in which think functions execute on the first post-load frame is not explicitly documented as preserved. Serialization follows a flat binary layout tied to class registration sequence, which can shift between engine point releases, and physics snapshots may omit sub-frame collision data. These factors introduce uncertainty for systems that depend on deterministic think ordering, such as interdependent logic entities or timed I/O chains that reference absolute engine time.
No official mechanism has been identified that guarantees identical think queue ordering after a load, and custom serialization scripts cannot reliably detect field reordering without version-specific logic.
- Is there a documented engine callback or flag that enforces think function order consistency across save-load boundaries?
- Can mod code reliably query the current think queue position to detect divergence after a reload?