mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 06:10:45 -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 BossSpawnChancePatch().Enable();
|
||||||
new BotDifficultyPatch().Enable();
|
new BotDifficultyPatch().Enable();
|
||||||
new CoreDifficultyPatch().Enable();
|
new CoreDifficultyPatch().Enable();
|
||||||
new OfflineRaidMenuPatch().Enable();
|
// new OfflineRaidMenuPatch().Enable();
|
||||||
|
|
||||||
// Fixed in live, no need for patch
|
// Fixed in live, no need for patch
|
||||||
//new RaidSettingsWindowPatch().Enable();
|
// new RaidSettingsWindowPatch().Enable();
|
||||||
new OfflineRaidSettingsMenuPatch().Enable();
|
|
||||||
// new SessionIdPatch().Enable();
|
// new SessionIdPatch().Enable();
|
||||||
|
|
||||||
|
// Unused in PvE mode
|
||||||
|
// new OfflineRaidSettingsMenuPatch().Enable();
|
||||||
new VersionLabelPatch().Enable();
|
new VersionLabelPatch().Enable();
|
||||||
new IsEnemyPatch().Enable();
|
new IsEnemyPatch().Enable();
|
||||||
new BotCalledDataTryCallPatch().Enable();
|
new BotCalledDataTryCallPatch().Enable();
|
||||||
|
@ -32,7 +32,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
|
|||||||
// this.method_41();
|
// this.method_41();
|
||||||
//}
|
//}
|
||||||
|
|
||||||
return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_74));
|
return AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_76));
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
|
@ -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 ScavExperienceGainPatch().Enable();
|
||||||
new MainMenuControllerPatch().Enable();
|
new MainMenuControllerPatch().Enable();
|
||||||
new PlayerPatch().Enable();
|
new PlayerPatch().Enable();
|
||||||
new SelectLocationScreenPatch().Enable();
|
new DisableReadyLocationReadyPatch().Enable();
|
||||||
new InsuranceScreenPatch().Enable();
|
|
||||||
|
// No longer required with PVE offline mode
|
||||||
|
// new InsuranceScreenPatch().Enable();
|
||||||
|
|
||||||
new BotTemplateLimitPatch().Enable();
|
new BotTemplateLimitPatch().Enable();
|
||||||
new GetNewBotTemplatesPatch().Enable();
|
new GetNewBotTemplatesPatch().Enable();
|
||||||
new RemoveUsedBotProfilePatch().Enable();
|
new RemoveUsedBotProfilePatch().Enable();
|
||||||
@ -69,6 +72,7 @@ namespace SPT.SinglePlayer
|
|||||||
new ScavRepAdjustmentPatch().Enable();
|
new ScavRepAdjustmentPatch().Enable();
|
||||||
new AmmoUsedCounterPatch().Enable();
|
new AmmoUsedCounterPatch().Enable();
|
||||||
new ArmorDamageCounterPatch().Enable();
|
new ArmorDamageCounterPatch().Enable();
|
||||||
|
new PVEModeWelcomeMessagePatch().Enable();
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user