Pass next level to WorldUnloaded

Moderator: GZDoom Developers

User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Pass next level to WorldUnloaded

Post by Marisa the Magician »

Bit of a convenience thing, really, so one can for example look up the levelinfo of the next map and check if we're traversing between maps in same/different hub, or check if the next map resets inventory and run special code for that, and so on. The only alternative would be to use a static thinker to transfer data between one WorldUnloaded event and the next WorldLoaded, but this wouldn't allow you to do stuff BEFORE the actual map transition.

If this is feasible and acceptable, I'd gladly implement it myself, as it's fairly straightforward to add with how things are currently structured (just adding an extra parameter, basically).
User avatar
Nash
 
 
Posts: 17449
Joined: Mon Oct 27, 2003 12:07 am
Location: Kuala Lumpur, Malaysia

Re: Pass next level to WorldUnloaded

Post by Nash »

Sounds useful, just do the PR hahaha
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: Pass next level to WorldUnloaded

Post by Marisa the Magician »

Very well. I'll do this one and three other extra features in separate posts afterwards.
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia

Re: Pass next level to WorldUnloaded

Post by Marisa the Magician »

And as promised here's the pull request.
User avatar
Major Cooke
Posts: 8182
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Pass next level to WorldUnloaded

Post by Major Cooke »

Added by Graf.

Return to “Closed Feature Suggestions [GZDoom]”