mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 20:50:44 -05:00
expirementing with using existing PVE logic
disabled PVE first time message disabled insurance screen patch disabled offlineraid screen patch disabled raidsettingswindowpatch
This commit is contained in:
parent
3ae9e90424
commit
2383a402e5
@ -27,11 +27,14 @@ namespace SPT.Custom
|
||||
new BossSpawnChancePatch().Enable();
|
||||
new BotDifficultyPatch().Enable();
|
||||
new CoreDifficultyPatch().Enable();
|
||||
new OfflineRaidMenuPatch().Enable();
|
||||
// new OfflineRaidMenuPatch().Enable();
|
||||
|
||||
// Fixed in live, no need for patch
|
||||
//new RaidSettingsWindowPatch().Enable();
|
||||
new OfflineRaidSettingsMenuPatch().Enable();
|
||||
// new RaidSettingsWindowPatch().Enable();
|
||||
// new SessionIdPatch().Enable();
|
||||
|
||||
// Unused in PvE mode
|
||||
// new OfflineRaidSettingsMenuPatch().Enable();
|
||||
new VersionLabelPatch().Enable();
|
||||
new IsEnemyPatch().Enable();
|
||||
new BotCalledDataTryCallPatch().Enable();
|
||||
|
@ -32,7 +32,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
|
||||
// this.method_41();
|
||||
//}
|
||||
|
||||
return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_74));
|
||||
return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_76));
|
||||
}
|
||||
|
||||
[PatchPrefix]
|
||||
@ -40,7 +40,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
|
||||
{
|
||||
___raidSettings_0.RaidMode = ERaidMode.Online;
|
||||
}
|
||||
|
||||
|
||||
[PatchPostfix]
|
||||
private static void PostfixPatch(RaidSettings ___raidSettings_0)
|
||||
{
|
||||
|
@ -0,0 +1,26 @@
|
||||
using System.Reflection;
|
||||
using HarmonyLib;
|
||||
using SPT.Reflection.Patching;
|
||||
|
||||
namespace SPT.SinglePlayer.Patches.MainMenu
|
||||
{
|
||||
public class PVEModeWelcomeMessagePatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
return AccessTools.Method(typeof(GClass1849), nameof(GClass1849.GetBoolForProfile));
|
||||
}
|
||||
|
||||
[PatchPrefix]
|
||||
private static bool PatchPrefix(ref bool __result, string variable)
|
||||
{
|
||||
if (variable == "pve_first_time")
|
||||
{
|
||||
__result = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
@ -26,8 +26,11 @@ namespace SPT.SinglePlayer
|
||||
new ScavExperienceGainPatch().Enable();
|
||||
new MainMenuControllerPatch().Enable();
|
||||
new PlayerPatch().Enable();
|
||||
new SelectLocationScreenPatch().Enable();
|
||||
new InsuranceScreenPatch().Enable();
|
||||
new DisableReadyLocationReadyPatch().Enable();
|
||||
|
||||
// No longer required with PVE offline mode
|
||||
// new InsuranceScreenPatch().Enable();
|
||||
|
||||
new BotTemplateLimitPatch().Enable();
|
||||
new GetNewBotTemplatesPatch().Enable();
|
||||
new RemoveUsedBotProfilePatch().Enable();
|
||||
@ -69,6 +72,7 @@ namespace SPT.SinglePlayer
|
||||
new ScavRepAdjustmentPatch().Enable();
|
||||
new AmmoUsedCounterPatch().Enable();
|
||||
new ArmorDamageCounterPatch().Enable();
|
||||
new PVEModeWelcomeMessagePatch().Enable();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user