"First frame" flag

Talk about the mods you'd like to see in Daggerfall Unity. Give mod creators some ideas!
Post Reply
User avatar
pango
Posts: 3347
Joined: Wed Jul 18, 2018 6:14 pm
Location: France
Contact:

"First frame" flag

Post by pango »

Maintain a FirstFrame flag (and/or maybe an event) that tells whether the frame that's currently being computed will show a scene that's totally different from previous one; so it should be set right after
  • fast traveling;
  • entering or leaving a building;
  • exit from rest/loitering;
  • maybe some special cases like after court or prison;
  • ...
Use cases:
  • world initialization (fast forward particle effects, repopulate town NPCs to immediately reach its "cruising speed", stuff like that)
  • enemies spawner: instead of trying to spawn enemies with strict constraints (into plausible positions, not too close to view center so enemies do not pop into existence too obviously...), on first frame enemies can be placed more freely inside player view.
Not only this condition should be cleared after one frame, but it would be very important that it's set very early so that all changes to the scene happen exactly as player transitions from one scene to the next.
Mastodon: @pango@fosstodon.org
When a measure becomes a target, it ceases to be a good measure.
-- Charles Goodhart

Post Reply