Additional level state options
I'm opening this issue to point out a few features I had in mind for a while, which I think would be useful for modders, and would like to discuss about it.
- An option to save the map state inside the save slot, much like Doom used to.
- Cross-level state persistence, would allow to save previous levels' states, and resume them when returning back to said levels, much like Hexen's hubs, or S3&K's special/bonus stages.
My proposals for them are respectively:
- A MAINCFG field for mods would do the trick for the first one. In order to save the state, one could either access the pause menu and use a Save Game option for it (another MAINCFG field?), or use a Lua function call or a linedef special.
- Through a special map change function via Lua or a linedef special, one could specify when are previous levels saved in memory, and when using a regular means to switch maps, all previous level states would be wiped in order to clear the memory.
This is currently a draft and I would appreciate any feedback or ideas on the matter.