- 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.
This commit is contained in:
Christoph Oelckers 2021-04-26 01:27:04 +02:00
parent 21aa5c9234
commit f077359196
1 changed files with 22 additions and 26 deletions

View File

@ -97,6 +97,14 @@ class DukeCutscenes
//---------------------------------------------------------------------------
static void BuildE3End(ScreenJobRunner runner)
{
if (gameinfo.gameType & GAMEFLAG_DUKEDC)
{
Array<int> soundinfo;
soundinfo.Pushv(144, DukeSnd.ENDSEQVOL3SND3 + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("radlogo.anm", soundinfo, 0, 10, 10, 10));
}
else
{
Array<int> soundinfo;
soundinfo.Pushv(
@ -113,18 +121,6 @@ class DukeCutscenes
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<int> soundinfo;
soundinfo.Pushv(144, DukeSnd.ENDSEQVOL3SND3 + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("radlogo.anm", soundinfo, 0, 10, 10, 10));
}
//---------------------------------------------------------------------------