progs-dump-dev / progs_dump

29 stars 9 forks source link

[Bug] misc_model inconsistent state management #8

Open dumptruckDS opened 10 months ago

dumptruckDS commented 10 months ago

From Inky November 26, 2022 - https://github.com/dumptruckDS/progs_dump_qc/issues/196

Pd3's estate status property is messed up with misc_model's state property. Animations meant to be in awaiting state could therefore be run ahead of time. Could be experienced with a misc_model spawnflagged as 'Only once' and 'Start hidden'. The settings are handled in .state whereas the think function checks .estate only. So .state is basically ignored and the animation is run right away while the model is still initially invisible (due to 'Start hidden'). At the time the model is triggered to appear, it's stuck on its last frame since the animation was run already (and will never be run again due to 'Only once'). The expected behavior would be of course that the one-shot animation starts upon model appearance.