[Added] Pass next level to WorldUnloaded

Moderator: GZDoom Developers

Pass next level to WorldUnloaded

Postby Marisa Kirisame » Wed Sep 08, 2021 9:43 am

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
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Pass next level to WorldUnloaded

Postby Nash » Wed Sep 08, 2021 10:01 am

Sounds useful, just do the PR hahaha
User avatar
Nash
Twitter/Facebook/Youtube: nashmuhandes
 
 
 
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Twitch ID: nashmuhandes
Github ID: nashmuhandes

Re: Pass next level to WorldUnloaded

Postby Marisa Kirisame » Thu Sep 09, 2021 10:30 am

Very well. I'll do this one and three other extra features in separate posts afterwards.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Pass next level to WorldUnloaded

Postby Marisa Kirisame » Mon Sep 27, 2021 11:52 am

And as promised here's the pull request.
User avatar
Marisa Kirisame
ZScript Crimester
 
 
 
Joined: 08 Feb 2008
Location: Vigo, Galicia
Discord: 霧雨魔理沙#1666
Twitch ID: MarisaDOOM
Github ID: OrdinaryMagician
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: Pass next level to WorldUnloaded

Postby Major Cooke » Fri Oct 01, 2021 7:21 pm

Added by Graf.
User avatar
Major Cooke
QZDoom Maintenance Team
 
Joined: 28 Jan 2007


Return to Closed Feature Suggestions

Who is online

Users browsing this forum: No registered users and 2 guests