mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-15 23:50:38 +00:00
scene:SetPaused stopped only what runs on the M2 scene clock (scene +0x0C): the animations, GetSceneTime and the scene timers. The mover ticked on the OS clock, as the client's does, and the casts stepped by the frame's elapsed time. A paused scene therefore still moved its actors in a frozen pose and flew its missiles. The scene clock is the scene's world time, so the actors now run on it: - The mover (Mover::Init, Mover::Tick) and the body-facing stamps (the catch-up turn of 0x600CD0) read the scene clock through the new Model::Scene::ClockMs. The spline start (b.clock) stays in the same base. Mover::Tick does nothing for a zero window, so a paused scene holds every body. On unpause the body sees only the time the scene ran, so nothing jumps ahead. - Actor::Update takes the ms the scene clock moved this frame, as seconds, for Casts::Update (precasts, missiles, impacts, stuck arrows). That is 0 while paused. OnUpdate keeps the frame's elapsed time. - The move marker's pulse (0x611400's sine over 0x860AE0 ms) reads the scene clock where the world's reads the OS clock, so it holds too. FUN_SIMPLEMODEL_GET_SCENE (0x76CFC0) makes the scene on first use, so a scene frame always has a clock to read. A hidden scene runs no update, so its clock and its actors stop as before.