From bfff4108f47d5a3ac2e40c69aa05589b0eb2b3ff Mon Sep 17 00:00:00 2001 From: Kaeno Date: Fri, 5 Jul 2024 21:39:19 +0100 Subject: [PATCH] Disable BTR patches.Make raidmode local for scavs and pmcs --- project/SPT.Custom/SPTCustomPlugin.cs | 32 +++++++++---------- .../ScavMode/LoadOfflineRaidScreenPatch.cs | 3 ++ 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/project/SPT.Custom/SPTCustomPlugin.cs b/project/SPT.Custom/SPTCustomPlugin.cs index bd67f33..ebc75b6 100644 --- a/project/SPT.Custom/SPTCustomPlugin.cs +++ b/project/SPT.Custom/SPTCustomPlugin.cs @@ -59,22 +59,22 @@ namespace SPT.Custom new RagfairFeePatch().Enable(); new ScavQuestPatch().Enable(); new FixBrokenSpawnOnSandboxPatch().Enable(); - new BTRControllerInitPatch().Enable(); - new BTRPathLoadPatch().Enable(); - new BTRActivateTraderDialogPatch().Enable(); - new BTRInteractionPatch().Enable(); - new BTRExtractPassengersPatch().Enable(); - new BTRBotAttachPatch().Enable(); - new BTRReceiveDamageInfoPatch().Enable(); - new BTRTurretCanShootPatch().Enable(); - new BTRTurretDefaultAimingPositionPatch().Enable(); - new BTRIsDoorsClosedPath().Enable(); - new BTRPatch().Enable(); - new BTRTransferItemsPatch().Enable(); - new BTREndRaidItemDeliveryPatch().Enable(); - new BTRDestroyAtRaidEndPatch().Enable(); - new BTRVehicleMovementSpeedPatch().Enable(); - new BTRPathConfigMapPrefixPatch().Enable(); + //new BTRControllerInitPatch().Enable(); + //new BTRPathLoadPatch().Enable(); + //new BTRActivateTraderDialogPatch().Enable(); + //new BTRInteractionPatch().Enable(); + //new BTRExtractPassengersPatch().Enable(); + //new BTRBotAttachPatch().Enable(); + //new BTRReceiveDamageInfoPatch().Enable(); + //new BTRTurretCanShootPatch().Enable(); + //new BTRTurretDefaultAimingPositionPatch().Enable(); + //new BTRIsDoorsClosedPath().Enable(); + //new BTRPatch().Enable(); + //new BTRTransferItemsPatch().Enable(); + //new BTREndRaidItemDeliveryPatch().Enable(); + //new BTRDestroyAtRaidEndPatch().Enable(); + //new BTRVehicleMovementSpeedPatch().Enable(); + //new BTRPathConfigMapPrefixPatch().Enable(); new ScavItemCheckmarkPatch().Enable(); new ResetTraderServicesPatch().Enable(); new CultistAmuletRemovalPatch().Enable(); diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs index dc2c361..805e3a6 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs @@ -117,6 +117,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode // Get fields from MainMenuController.cs var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue(); + raidSettings.RaidMode = ERaidMode.Local; // Find the private field of type `MatchmakerPlayerControllerClass` var matchmakerPlayersController = menuController.GetType() @@ -143,6 +144,8 @@ namespace SPT.SinglePlayer.Patches.ScavMode raidSettings.WavesSettings.IsBosses = true; } + raidSettings.RaidMode = ERaidMode.Local; + // Set offline raid values _isLocalField.SetValue(menuController, raidSettings.Local);