Allow custom intermissions to link to another map

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

Moderator: GZDoom Developers

User avatar
Jimmy
 
 
Posts: 4720
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Allow custom intermissions to link to another map

Post by Jimmy »

Defining custom intermissions like Hexen's end cutscene is great to be able to do, but they seem to come with the caveat of not being at all able to resume the game upon finishing - you can only link them to other intermissions, or the title screen. It'd be nice to be able to use Link, or some other property, at the end of an intermission definition, so that gameplay can be resumed on a new map.

I mean, arguing semantically, an "intermission" is merely a break in proceedings, isn't it? :P

But yeah here's an example of what I propose:

Code: Select all

Intermission E1Finished
{
	// Episode 1 text.
	TextScreen
	{
		Music = "D_ENDE1"
		Background = "$bgcastcall"
		TextSpeed = 2
		TextLump = "E1TEXT"
	}
	Link = E2M1
}
Once you've defined a custom intermission for the end of episode 1 of your mapset, you could then tell the intermission to go along to the next episode.

"Link" may not be the function for this, so maybe something like NextMap (or GotoMap to avoid syntax clashes with map definitions) would suffice.

I would also account for keeping inventory across maps - default behavior, if possible, probably ought to carry the player's inventory, and the modder can decide if the next map should then have the "resetinventory" MAPINFO flag.

Feasible?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Allow custom intermissions to link to another map

Post by Graf Zahl »

Not like this. The intermission system can move on to the next level, but the feature apparently never got exposed to MAPINFO. I think a better approach would be to add a new option to the recently improved intermission text system that lets you assign an intermission to any defined map transition as well so that it's the map itself that determines what to do, not the intermission.
User avatar
Jimmy
 
 
Posts: 4720
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Re: Allow custom intermissions to link to another map

Post by Jimmy »

Oh, that was improved? What does the syntax look like for that?
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49071
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Allow custom intermissions to link to another map

Post by Graf Zahl »

Look for the recent commit message. In short: You can now attach intermission texts to maps, not just to clusters.
User avatar
Major Cooke
Posts: 8176
Joined: Sun Jan 28, 2007 3:55 pm
Preferred Pronouns: He/Him
Location: QZDoom Maintenance Team

Re: Allow custom intermissions to link to another map

Post by Major Cooke »

User avatar
Jimmy
 
 
Posts: 4720
Joined: Mon Apr 10, 2006 1:49 pm
Preferred Pronouns: He/Him
Contact:

Re: Allow custom intermissions to link to another map

Post by Jimmy »

Cooke: Found it on the Git page, but yeah, cheers.

Graf: Interesting, that might serve me well. Any word on exposing that intermission feature to MAPINFO? For my purposes it'd still be really useful.
Post Reply

Return to “Feature Suggestions [GZDoom]”