Skip to content

Commit

Permalink
- added missing declarations for RR's intro movies.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed May 17, 2021
1 parent eae97de commit 98bb8c5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 14 deletions.
4 changes: 4 additions & 0 deletions wadsrc/static/filter/redneck.redneck/engine/rmapinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ map { 2, 8 }

cutscenes
{
intro
{
function = RRCutscenes.BuildIntro
}
loadscreen
{
function = DukeCutscenes.BuildLoading // identical with Duke's
Expand Down
4 changes: 4 additions & 0 deletions wadsrc/static/filter/redneck.ridesagain/engine/rmapinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ map { 2, 7 }

cutscenes
{
intro
{
function = RRCutscenes.BuildRAIntro
}
loadscreen
{
function = DukeCutscenes.BuildLoading // identical with Duke's
Expand Down
4 changes: 4 additions & 0 deletions wadsrc/static/filter/redneck.route66/engine/rmapinfo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ map { 2, 7 }

cutscenes
{
intro
{
function = RRCutscenes.BuildIntro
}
loadscreen
{
function = DukeCutscenes.BuildLoading // identical with Duke's
Expand Down
36 changes: 22 additions & 14 deletions wadsrc/static/zscript/games/duke/ui/cutscenes.zs
Original file line number Diff line number Diff line change
Expand Up @@ -274,22 +274,30 @@ class RRCutscenes
{
if (!userConfig.nologo)
{
if (!Raze.isRRRA())
{
Array<int> soundinfo;
soundinfo.Pushv(1, RRSnd.URANUS + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("rr_intro.anm", soundinfo, 0, 9, 9, 9));
Array<int> soundinfo;
soundinfo.Pushv(1, RRSnd.URANUS + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("rr_intro.anm", soundinfo, 0, 9, 9, 9));

soundinfo.Pushv(1, RRSnd.REDNECK2 + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("redneck.anm", soundinfo, 0, 9, 9, 9));
soundinfo.Pushv(1, RRSnd.REDNECK2 + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("redneck.anm", soundinfo, 0, 9, 9, 9));

soundinfo.Pushv(1, RRSnd.XATRIX + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("xatlogo.anm", soundinfo, 0, 9, 9, 9));
}
else
{
runner.Append(MoviePlayerJob.Create("redint.mve", 0));
}
soundinfo.Pushv(1, RRSnd.XATRIX + 1);
runner.Append(MoviePlayerJob.CreateWithSoundinfo("xatlogo.anm", soundinfo, 0, 9, 9, 9));
}
}


//---------------------------------------------------------------------------
//
//
//
//---------------------------------------------------------------------------

static void BuildRAIntro(ScreenJobRunner runner)
{
if (!userConfig.nologo)
{
runner.Append(MoviePlayerJob.Create("redint.mve", 0));
}
}

Expand Down

0 comments on commit 98bb8c5

Please sign in to comment.