From 59e733b47fcac2c5ee07b92984292f9d3ba2a72a Mon Sep 17 00:00:00 2001 From: Ziktofel Date: Tue, 29 Oct 2024 22:29:36 +0100 Subject: [PATCH] Fix a race condition for the intro cinematic in Lab Rat --- .../HotS/ap_lab_rat.SC2Map/DocumentHeader | Bin 18723 -> 18723 bytes .../HotS/ap_lab_rat.SC2Map/MapScript.galaxy | 5 +- .../HotS/ap_lab_rat.SC2Map/Triggers | 57 ++++++++++++++++++ .../HotS/ap_lab_rat.SC2Map/Triggers.version | Bin 44 -> 44 bytes 4 files changed, 61 insertions(+), 1 deletion(-) diff --git a/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/DocumentHeader b/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/DocumentHeader index e53b805d8b1dea4560057d8d52a64efc48af6900..6f90b6b1710a4a9ae554f6cd9c1cb602785bc58a 100644 GIT binary patch delta 21 acmZ2HiE;5H#tAYU^=*yaAiPoKzXt$d{|R3J delta 21 acmZ2HiE;5H#tAYU_N%+KL3pFee-8jz`3QXg diff --git a/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/MapScript.galaxy b/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/MapScript.galaxy index e54772d8b..16bc110a1 100644 --- a/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/MapScript.galaxy +++ b/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/MapScript.galaxy @@ -8191,7 +8191,7 @@ bool gt_IntroQ_Func (bool testConds, bool runActions) { TriggerEnable(TriggerGetCurrent(), false); TriggerQueueEnter(); TriggerExecute(gt_IntroSetup, true, true); - if ((libABFE498B_gv_aP_Triggers_skipCutscenes == false)) { + if ((libABFE498B_gv_aP_Triggers_skipCutscenes == false) && (libABFE498B_gv_aP_Triggers_Option_overridePlayerRace == "Neut")) { TriggerExecute(gt_IntroCinematic, true, true); TriggerExecute(gt_IntroCinematicEnd, true, true); } @@ -8227,6 +8227,9 @@ bool gt_IntroSetup_Func (bool testConds, bool runActions) { return true; } + while (!((gv_workerUnitType != null))) { + Wait(0.1, c_timeGame); + } CinematicFade(false, 0.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, false); libSwaC_gf_CinematicModeSwarmCampaign(true, 0.0); libNtve_gf_GlobalCinematicSetting(true); diff --git a/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/Triggers b/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/Triggers index 13c973ebc..66902fe89 100644 --- a/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/Triggers +++ b/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/Triggers @@ -59912,6 +59912,7 @@ + @@ -59993,8 +59994,30 @@ false + + + + + + + + + + + + + + + + + + Neut + + + + @@ -60032,6 +60055,40 @@ Fade out and start cinematic mode. + + + + + + + + + 0.1 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/Triggers.version b/Maps/ArchipelagoCampaign/HotS/ap_lab_rat.SC2Map/Triggers.version index 088a1e1d307417920f772bf36ca2ef188a294920..86a4485dd3527858456de7bb2ca8379c1f98f806 100644 GIT binary patch delta 17 WcmdPVnV`UKq!<7g)&fWX delta 17 XcmdPVnV`TU$H>62&s;GbNHG8a96AEB