From f077359196556481b5c008c5769dc21d40f32524 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 26 Apr 2021 01:27:04 +0200 Subject: [PATCH] - merge DukeDC's end of episode cutscene into BuildE3End. This will make things a bit easier on the setup side because it eliminates the need for mission pack specific definitions. --- .../static/zscript/games/duke/ui/cutscenes.zs | 48 +++++++++---------- 1 file changed, 22 insertions(+), 26 deletions(-) diff --git a/wadsrc/static/zscript/games/duke/ui/cutscenes.zs b/wadsrc/static/zscript/games/duke/ui/cutscenes.zs index abe63c188..dba1c0e51 100644 --- a/wadsrc/static/zscript/games/duke/ui/cutscenes.zs +++ b/wadsrc/static/zscript/games/duke/ui/cutscenes.zs @@ -98,33 +98,29 @@ class DukeCutscenes static void BuildE3End(ScreenJobRunner runner) { - Array soundinfo; - soundinfo.Pushv( - 1, DukeSnd.WIND_REPEAT + 1, - 98, DukeSnd.DUKE_GRUNT + 1, - 102, DukeSnd.THUD + 1, - 102, DukeSnd.SQUISHED + 1, - 124, DukeSnd.ENDSEQVOL3SND3 + 1, - 134, DukeSnd.ENDSEQVOL3SND2 + 1, - 158, DukeSnd.PIPEBOMB_EXPLODE + 1); + if (gameinfo.gameType & GAMEFLAG_DUKEDC) + { + Array soundinfo; + soundinfo.Pushv(144, DukeSnd.ENDSEQVOL3SND3 + 1); + runner.Append(MoviePlayerJob.CreateWithSoundinfo("radlogo.anm", soundinfo, 0, 10, 10, 10)); + } + else + { + Array soundinfo; + soundinfo.Pushv( + 1, DukeSnd.WIND_REPEAT + 1, + 98, DukeSnd.DUKE_GRUNT + 1, + 102, DukeSnd.THUD + 1, + 102, DukeSnd.SQUISHED + 1, + 124, DukeSnd.ENDSEQVOL3SND3 + 1, + 134, DukeSnd.ENDSEQVOL3SND2 + 1, + 158, DukeSnd.PIPEBOMB_EXPLODE + 1); - runner.Append(MoviePlayerJob.CreateWithSoundinfo("cineov3.anm", soundinfo, 0, 10, 10, 10)); - runner.Append(BlackScreen.Create(200, ScreenJob.stopsound)); - runner.Append(new("Episode3End").Init()); - if (!Raze.isPlutoPak()) runner.Append(ImageScreen.CreateNamed("DUKETEAM.ANM", ScreenJob.fadein | ScreenJob.fadeout | ScreenJob.stopsound, 0x7fffffff)); - } - - //--------------------------------------------------------------------------- - // - // - // - //--------------------------------------------------------------------------- - - static void BuildDCEnd(ScreenJobRunner runner) - { - Array soundinfo; - soundinfo.Pushv(144, DukeSnd.ENDSEQVOL3SND3 + 1); - runner.Append(MoviePlayerJob.CreateWithSoundinfo("radlogo.anm", soundinfo, 0, 10, 10, 10)); + runner.Append(MoviePlayerJob.CreateWithSoundinfo("cineov3.anm", soundinfo, 0, 10, 10, 10)); + runner.Append(BlackScreen.Create(200, ScreenJob.stopsound)); + runner.Append(new("Episode3End").Init()); + if (!Raze.isPlutoPak()) runner.Append(ImageScreen.CreateNamed("DUKETEAM.ANM", ScreenJob.fadein | ScreenJob.fadeout | ScreenJob.stopsound, 0x7fffffff)); + } } //---------------------------------------------------------------------------