Define a map as an EndSequence

Remember, just because you request it, that doesn't mean you'll get it.

Moderator: GZDoom Developers

Define a map as an EndSequence

Postby Enjay » Sat Apr 27, 2019 6:11 pm

In a similar way to how TITLEMAP can be used as a completely non-interactive map where pressing any key brings up the menu and nothing else (no game saved message on starting the map, nothing), I suggest that it might be useful to set up other maps so that they can be used as EndSequences once the game is finished.

I just realised that I suggested something very similar a long time ago (almost 10 years). viewtopic.php?f=18&t=23368&p=456467

It was closed with a [No] then (not sure why) so perhaps it's not likely to happen?

User avatar
Everyone is a moon, and has a dark side which he never shows to anybody. Twain
Joined: 15 Jul 2003
Location: Scotland

Re: Define a map as an EndSequence

Postby Rachael » Sat Apr 27, 2019 8:20 pm

It's more likely to happen now than 10 years ago so I say leave it open.

ZDoom's (and by proxy GZDoom's) tech has changed quite a lot in the intervening time.
User avatar
Joined: 13 Jan 2004
Discord: Rachael#3767
Twitch ID: madamerachelle
Github ID: madame-rachelle
Graphics Processor: nVidia with Vulkan support

Re: Define a map as an EndSequence

Postby Nash » Sun Apr 28, 2019 3:59 am

Last I source-dived, if I'm not wrong, it's literally just some 'gamestate' variable checks to enable the "non interactive" behaviour of loaded maps, so maybe a new GS_ENDLEVEL constant maybe? Unless I'm missing something, it seems pretty straightforward to add.

EDIT: even better, it seems G_InitNew has a "true" bool as the 2nd parameter, it looks like this will tell whatever next map to load to be non-interactive. So there are two options here for the front-facing/user side - either a MAPINFO flag, or add a new bool parameter to existing level change functions to mark the next map change as non-interactive.
User avatar
Joined: 27 Oct 2003
Location: Kuala Lumpur, Malaysia
Github ID: nashmuhandes

Return to Feature Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest