Page 1 of 1

Exit Level Delay With HudMessage Animation?

PostPosted: Mon Apr 05, 2021 3:04 am
by Aerosplinter
Is there a way to delay the end of a level after pressing the exit switch, with a graphic animation?

Re: Exit Level Delay With HudMessage Animation?

PostPosted: Mon Apr 05, 2021 3:45 am
by Cherno
Of course. Make the switch run an ACS script that does whatever animation you want, and only after a delay actually exits the level.

Re: Exit Level Delay With HudMessage Animation?

PostPosted: Mon Apr 05, 2021 5:18 am
by Aerosplinter
Cherno wrote:Of course. Make the switch run an ACS script that does whatever animation you want, and only after a delay actually exits the level.


I am wanting this to be compatible with any Doom map. Can this actually be done this way?

Re: Exit Level Delay With HudMessage Animation?

PostPosted: Mon Apr 05, 2021 10:28 am
by Jarewill
Not with ACS-alone as far I as am aware.
You can make an event handler in ZScript and override WorldLinePreActivated:
Spoiler:

NTMAI did it this way and I have adapted it to work on exit switches.
Next for the scripts:
Spoiler:

Finally you need a MAPINFO file with this:
Spoiler:

This doesn't stop the player from pressing [Use] again, which will skip the animation and jump straight to the next level.
There's no way to stop the player's [Use] action as far as I know, but it might be better left like this so the player can skip them.