From c340023378bba7780e7cac1981ffe417c2c724e1 Mon Sep 17 00:00:00 2001 From: Kaeno Date: Mon, 12 Feb 2024 12:01:27 +0000 Subject: [PATCH] Some more fixes preventing scav raids from working also btr fix --- project/Aki.Custom/BTR/Patches/BTRBotInitPatch.cs | 2 +- .../Patches/ScavMode/LoadOfflineRaidScreenPatch.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/Aki.Custom/BTR/Patches/BTRBotInitPatch.cs b/project/Aki.Custom/BTR/Patches/BTRBotInitPatch.cs index 61d51a6..971e2d4 100644 --- a/project/Aki.Custom/BTR/Patches/BTRBotInitPatch.cs +++ b/project/Aki.Custom/BTR/Patches/BTRBotInitPatch.cs @@ -22,7 +22,7 @@ namespace Aki.Custom.BTR.Patches { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BTRTurretView), nameof(BTRTurretView.method_1)); + return AccessTools.Method(typeof(BTRTurretView), nameof(BTRTurretView.method_3)); } [PatchPrefix] diff --git a/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs b/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs index 4a21862..6c9a7fd 100644 --- a/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs +++ b/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs @@ -32,7 +32,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode _ = GClass3172.MAX_SCAV_COUNT; // UPDATE REFS TO THIS CLASS BELOW !!! // `MatchmakerInsuranceScreen` OnShowNextScreen - _onReadyScreenMethod = AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_42)); + _onReadyScreenMethod = AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_43)); _isLocalField = AccessTools.Field(typeof(MainMenuController), "bool_0"); _menuControllerField = typeof(TarkovApplication).GetFields(PatchConstants.PrivateFlags).FirstOrDefault(x => x.FieldType == typeof(MainMenuController)); @@ -46,7 +46,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode protected override MethodBase GetTargetMethod() { // `MatchMakerSelectionLocationScreen` OnShowNextScreen - return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_68)); + return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_69)); } [PatchTranspiler]