mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 05:50:44 -05:00
Disable BTR patches.Make raidmode local for scavs and pmcs
This commit is contained in:
parent
7cda91e0a8
commit
bfff4108f4
@ -59,22 +59,22 @@ namespace SPT.Custom
|
|||||||
new RagfairFeePatch().Enable();
|
new RagfairFeePatch().Enable();
|
||||||
new ScavQuestPatch().Enable();
|
new ScavQuestPatch().Enable();
|
||||||
new FixBrokenSpawnOnSandboxPatch().Enable();
|
new FixBrokenSpawnOnSandboxPatch().Enable();
|
||||||
new BTRControllerInitPatch().Enable();
|
//new BTRControllerInitPatch().Enable();
|
||||||
new BTRPathLoadPatch().Enable();
|
//new BTRPathLoadPatch().Enable();
|
||||||
new BTRActivateTraderDialogPatch().Enable();
|
//new BTRActivateTraderDialogPatch().Enable();
|
||||||
new BTRInteractionPatch().Enable();
|
//new BTRInteractionPatch().Enable();
|
||||||
new BTRExtractPassengersPatch().Enable();
|
//new BTRExtractPassengersPatch().Enable();
|
||||||
new BTRBotAttachPatch().Enable();
|
//new BTRBotAttachPatch().Enable();
|
||||||
new BTRReceiveDamageInfoPatch().Enable();
|
//new BTRReceiveDamageInfoPatch().Enable();
|
||||||
new BTRTurretCanShootPatch().Enable();
|
//new BTRTurretCanShootPatch().Enable();
|
||||||
new BTRTurretDefaultAimingPositionPatch().Enable();
|
//new BTRTurretDefaultAimingPositionPatch().Enable();
|
||||||
new BTRIsDoorsClosedPath().Enable();
|
//new BTRIsDoorsClosedPath().Enable();
|
||||||
new BTRPatch().Enable();
|
//new BTRPatch().Enable();
|
||||||
new BTRTransferItemsPatch().Enable();
|
//new BTRTransferItemsPatch().Enable();
|
||||||
new BTREndRaidItemDeliveryPatch().Enable();
|
//new BTREndRaidItemDeliveryPatch().Enable();
|
||||||
new BTRDestroyAtRaidEndPatch().Enable();
|
//new BTRDestroyAtRaidEndPatch().Enable();
|
||||||
new BTRVehicleMovementSpeedPatch().Enable();
|
//new BTRVehicleMovementSpeedPatch().Enable();
|
||||||
new BTRPathConfigMapPrefixPatch().Enable();
|
//new BTRPathConfigMapPrefixPatch().Enable();
|
||||||
new ScavItemCheckmarkPatch().Enable();
|
new ScavItemCheckmarkPatch().Enable();
|
||||||
new ResetTraderServicesPatch().Enable();
|
new ResetTraderServicesPatch().Enable();
|
||||||
new CultistAmuletRemovalPatch().Enable();
|
new CultistAmuletRemovalPatch().Enable();
|
||||||
|
@ -117,6 +117,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
|||||||
|
|
||||||
// Get fields from MainMenuController.cs
|
// Get fields from MainMenuController.cs
|
||||||
var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>();
|
var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>();
|
||||||
|
raidSettings.RaidMode = ERaidMode.Local;
|
||||||
|
|
||||||
// Find the private field of type `MatchmakerPlayerControllerClass`
|
// Find the private field of type `MatchmakerPlayerControllerClass`
|
||||||
var matchmakerPlayersController = menuController.GetType()
|
var matchmakerPlayersController = menuController.GetType()
|
||||||
@ -143,6 +144,8 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
|||||||
raidSettings.WavesSettings.IsBosses = true;
|
raidSettings.WavesSettings.IsBosses = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
raidSettings.RaidMode = ERaidMode.Local;
|
||||||
|
|
||||||
// Set offline raid values
|
// Set offline raid values
|
||||||
_isLocalField.SetValue(menuController, raidSettings.Local);
|
_isLocalField.SetValue(menuController, raidSettings.Local);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user