EXIT Script type

Moderator: GZDoom Developers

Post Reply
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

EXIT Script type

Post by Collegia Titanica »

A script type that triggers whenever a map ends, regardless of what way it ends. This happens before the default intermission screen.
[UNLOADING doesn't work]

Usage:

A very easy and convenient way of creating custom intermissions in a mod that can overwrite/skip the default ones regardless of what wad is being played.

Imagine this: A variable in an ENTER script logs the name of the nextmap which is set up via the PRINTNAME_NEXTLEVEL

Map xx ends and the Exit script Always changes map to INTERMAP (defined in mod) in which very relevant custom stats and images can be displayed while freezing the player and disabling the hud.
After that, the intermission map changes to the map in the variable above, effectively bypassing the default intermission.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: EXIT Script type

Post by Graf Zahl »

I don't really think that ACS is the right tool for such stuff...
Collegia Titanica
Posts: 83
Joined: Thu Jan 25, 2018 1:37 pm

Re: EXIT Script type

Post by Collegia Titanica »

I'm just going with what I know, acs is usually used for level stuff so it seems fitting.And I figured implementing what I wrote above should be simple.

If not that, then how would this be done in Z ? Suppose I somehow Scriptcall the value from the ACS variable above, move it to some zscript class, some EventHandler and then ... ?

If I can get this to work, I can easily make a great intermission for a popular mod, I really want to get this working somehow :/
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49066
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: EXIT Script type

Post by Graf Zahl »

If you cannot do what you need in an UNLOADING script, any other type won't help you either. Because that gets called when the map exits.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”