From 81fa9f6ee46d26c477150e8d713acccb7b3d0fbb Mon Sep 17 00:00:00 2001 From: Lacyway <20912169+Lacyway@users.noreply.github.com> Date: Wed, 27 Nov 2024 05:21:52 +0100 Subject: [PATCH] Fix raid presence getting reset after transit - Should be handled on the server later --- .../LocalGame/TarkovApplication_LocalGameCreator_Patch.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Fika.Core/Coop/Patches/LocalGame/TarkovApplication_LocalGameCreator_Patch.cs b/Fika.Core/Coop/Patches/LocalGame/TarkovApplication_LocalGameCreator_Patch.cs index d0ad1540..3bdea63c 100644 --- a/Fika.Core/Coop/Patches/LocalGame/TarkovApplication_LocalGameCreator_Patch.cs +++ b/Fika.Core/Coop/Patches/LocalGame/TarkovApplication_LocalGameCreator_Patch.cs @@ -8,6 +8,7 @@ using Fika.Core.Modding; using Fika.Core.Modding.Events; using Fika.Core.Networking.Http; +using Fika.Core.UI.Custom; using HarmonyLib; using JsonType; using SPT.Reflection.Patching; @@ -131,6 +132,12 @@ public static async Task CreateFikaGame(TarkovApplication instance, TimeAndWeath instance.MatchmakerPlayerControllerClass.UpdateMatchingStatus("Creating coop game..."); } + // This gets incorrectly reset by the server, update it manually here during transit + if (isTransit && MainMenuUIScript.Exist) + { + MainMenuUIScript.Instance.UpdatePresence(UI.FikaUIGlobals.EFikaPlayerPresence.IN_RAID); + } + StartHandler startHandler = new(instance, session.Profile, session.ProfileOfPet, raidSettings.SelectedLocation); TimeSpan raidLimits = instance.method_47(raidSettings.SelectedLocation.EscapeTimeLimit);