From d02118fb7addfb8f687a43b5062cc655522d36d0 Mon Sep 17 00:00:00 2001 From: "theastropath@gmail.com" Date: Thu, 3 Aug 2023 20:49:52 -0400 Subject: [PATCH] Maybe fix the issue where the intro conversation doesn't start and kicks you to the menu instead of a new game plus --- DXRando/DeusEx/Classes/DXRMissionIntro.uc | 25 +++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/DXRando/DeusEx/Classes/DXRMissionIntro.uc b/DXRando/DeusEx/Classes/DXRMissionIntro.uc index b11de5efd..70d098e68 100644 --- a/DXRando/DeusEx/Classes/DXRMissionIntro.uc +++ b/DXRando/DeusEx/Classes/DXRMissionIntro.uc @@ -7,16 +7,26 @@ var bool ran_first_frame; function Timer() { +local #var(prefix)BobPage bob; +local DXRando dxr; + #ifdef injections if( ran_first_frame == false ) { Level.Game.SetGameSpeed(0.05); SetTimer(0.075, True); } - if( ran_first_frame == true && started_conv == false ) { - Super.FirstFrame(); - started_conv = true; - Level.Game.SetGameSpeed(1); - SetTimer(checkTime, True); + if( ran_first_frame == true && started_conv == false && player!=None ) { + foreach AllActors(class'#var(prefix)BobPage',bob){break;} + if (bob!=None){ + Super.FirstFrame(); + started_conv = true; + Level.Game.SetGameSpeed(1); + SetTimer(checkTime, True); + foreach AllActors(class'DXRando',dxr){ + dxr.flags.SaveFlags(); + break; + } + } } #endif @@ -52,13 +62,12 @@ function InitStateMachine() function FirstFrame() { - ran_first_frame = true; - started_conv = false; - if( flags.GetBool('Intro_Played') ) { log("ERROR: "$self$": Intro_Played already set before FirstFrame?"); flags.SetBool('Intro_Played', false,, -999); } + ran_first_frame = true; + started_conv = false; } function PreTravel()