0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 01:50:45 -05:00

noting what patches are needed/need looking into

This commit is contained in:
CWX 2024-07-06 10:23:41 +01:00
parent 0bc05f80d4
commit d78ec90e6c
5 changed files with 65 additions and 56 deletions

View File

@ -17,8 +17,7 @@ namespace SPT.Custom.Patches
[PatchPrefix] [PatchPrefix]
private static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState) private static bool PatchPrefix(ESessionMode sessionMode, Profile profile, ref GameObject ____notAvailableState)
{ {
____notAvailableState.SetActive(true); ____notAvailableState.SetActive(false);
____notAvailableState.GetComponent<HoverTooltipArea>().SetMessageText("<color=#51c6db>SPT</color> is already PvE.");
return false; return false;
} }
} }

View File

@ -8,7 +8,7 @@ using System.Threading.Tasks;
namespace SPT.Custom.Patches namespace SPT.Custom.Patches
{ {
/// <summary> /// <summary>
/// Redirects Trader and quest images to the SPT folder, not the app data /// Redirects Trader and quest images to the SPT folder, not the app data
/// </summary> /// </summary>
/// ///

View File

@ -19,12 +19,14 @@ namespace SPT.Custom.Patches
if (!bot.Profile.Info.Settings.IsBoss() && !CustomAI.AiHelpers.BotIsSptPmc(bot.Profile.Info.Settings.Role, bot)) if (!bot.Profile.Info.Settings.IsBoss() && !CustomAI.AiHelpers.BotIsSptPmc(bot.Profile.Info.Settings.Role, bot))
{ {
return; return;
} }
// is a boss and follower and a pmc // is a boss and follower and a pmc
if (bot.SpawnProfileData.SpawnParams == null) if (bot.SpawnProfileData.SpawnParams == null)
{ {
bot.SpawnProfileData.SpawnParams = new BotSpawnParams(); bot.SpawnProfileData.SpawnParams = new BotSpawnParams();
} }
if (bot.SpawnProfileData.SpawnParams.ShallBeGroup == null) if (bot.SpawnProfileData.SpawnParams.ShallBeGroup == null)
{ {
bot.SpawnProfileData.SpawnParams.ShallBeGroup = new ShallBeGroupParams(false, false); bot.SpawnProfileData.SpawnParams.ShallBeGroup = new ShallBeGroupParams(false, false);

View File

@ -18,41 +18,45 @@ namespace SPT.Custom
try try
{ {
// Bundle patches should always load first // Bundle patches should always load first - DO NOT REMOVE
new EasyAssetsPatch().Enable(); new EasyAssetsPatch().Enable();
new EasyBundlePatch().Enable(); new EasyBundlePatch().Enable();
new BossSpawnChancePatch().Enable();
new BotDifficultyPatch().Enable(); // TODO: check if these patches are needed
new CoreDifficultyPatch().Enable(); new QTEPatch().Enable();
new OfflineRaidMenuPatch().Enable();
new VersionLabelPatch().Enable();
new IsEnemyPatch().Enable(); new IsEnemyPatch().Enable();
new BotCalledDataTryCallPatch().Enable(); new BotCalledDataTryCallPatch().Enable();
new BotCallForHelpCallBotPatch().Enable(); new BotCallForHelpCallBotPatch().Enable();
new BotOwnerDisposePatch().Enable(); new BotOwnerDisposePatch().Enable();
new LocationLootCacheBustingPatch().Enable();
new CheckAndAddEnemyPatch().Enable(); new CheckAndAddEnemyPatch().Enable();
new BotSelfEnemyPatch().Enable(); // needed
new AddEnemyToAllGroupsInBotZonePatch().Enable(); new AddEnemyToAllGroupsInBotZonePatch().Enable();
new CustomAiPatch().Enable(); new CustomAiPatch().Enable();
new AddTraitorScavsPatch().Enable(); new AddTraitorScavsPatch().Enable();
new ExitWhileLootingPatch().Enable(); new ExitWhileLootingPatch().Enable();
new QTEPatch().Enable();
new PmcFirstAidPatch().Enable(); new PmcFirstAidPatch().Enable();
new SettingsLocationPatch().Enable(); new SettingsLocationPatch().Enable();
new SetLocationIdOnRaidStartPatch().Enable(); new SetLocationIdOnRaidStartPatch().Enable();
new RagfairFeePatch().Enable(); new RagfairFeePatch().Enable();
new ScavQuestPatch().Enable(); new ScavQuestPatch().Enable();
new FixBrokenSpawnOnSandboxPatch().Enable(); new FixBrokenSpawnOnSandboxPatch().Enable();
new ScavItemCheckmarkPatch().Enable();
new ResetTraderServicesPatch().Enable(); new ResetTraderServicesPatch().Enable();
new ScavItemCheckmarkPatch().Enable();
new CultistAmuletRemovalPatch().Enable(); new CultistAmuletRemovalPatch().Enable();
new HalloweenExtractPatch().Enable(); new HalloweenExtractPatch().Enable();
new ClampRagdollPatch().Enable();
new DisablePvEPatch().Enable(); // Still need
new InsurancePlaceItem().Enable();
new FileCachePatch().Enable(); new FileCachePatch().Enable();
new BotSelfEnemyPatch().Enable();
new DisablePvEPatch().Enable();
new ClampRagdollPatch().Enable();
new PMCSpawnParamPatch().Enable(); new PMCSpawnParamPatch().Enable();
new InsurancePlaceItem().Enable();
new OfflineRaidMenuPatch().Enable();
new CoreDifficultyPatch().Enable();
new BotDifficultyPatch().Enable();
new BossSpawnChancePatch().Enable();
new LocationLootCacheBustingPatch().Enable();
new VersionLabelPatch().Enable();
HookObject.AddOrGetComponent<MenuNotificationManager>(); HookObject.AddOrGetComponent<MenuNotificationManager>();
} }

View File

@ -23,53 +23,57 @@ namespace SPT.SinglePlayer
// TODO: check if these patches are needed // TODO: check if these patches are needed
new MidRaidQuestChangePatch().Enable(); new MidRaidQuestChangePatch().Enable();
new MidRaidAchievementChangePatch().Enable(); new MidRaidAchievementChangePatch().Enable();
new TinnitusFixPatch().Enable();
new SmokeGrenadeFuseSoundFixPatch().Enable();
new EmptyInfilFixPatch().Enable();
new VoIPTogglerPatch().Enable();
new ScavExperienceGainPatch().Enable();
new DogtagPatch().Enable();
new MainMenuControllerPatch().Enable();
new HealthControllerPatch().Enable();
new PlayerPatch().Enable();
new MaxBotPatch().Enable();
new PostRaidHealingPricePatch().Enable();
new InRaidQuestAvailablePatch().Enable();
new ExfilPointManagerPatch().Enable();
new ScavEncyclopediaPatch().Enable();
new HideoutQuestIgnorePatch().Enable();
new PlayerToggleSoundFixPatch().Enable();
new SpawnProcessNegativeValuePatch().Enable();
new SpawnPmcPatch().Enable();
new ScavProfileLoadPatch().Enable();
new ScavPrefabLoadPatch().Enable();
new ScavExfilPatch().Enable();
new LighthouseBridgePatch().Enable();
new LighthouseTransmitterPatch().Enable();
new InsuredItemManagerStartPatch().Enable();
new GetTraderServicesPatch().Enable();
new PurchaseTraderServicePatch().Enable();
new LightKeeperServicesPatch().Enable();
// Still need
new DisableReadyLocationReadyPatch().Enable();
new BotTemplateLimitPatch().Enable();
new LoadOfflineRaidScreenPatch().Enable();
new AmmoUsedCounterPatch().Enable();
new ArmorDamageCounterPatch().Enable();
new ScavRepAdjustmentPatch().Enable();
new PluginErrorNotifierPatch().Enable();
new GetNewBotTemplatesPatch().Enable();
new ScavLateStartPatch().Enable();
new LabsKeycardRemovalPatch().Enable();
new MapReadyButtonPatch().Enable();
new RemoveUsedBotProfilePatch().Enable();
new ScavSellAllPriceStorePatch().Enable(); new ScavSellAllPriceStorePatch().Enable();
new ScavSellAllRequestPatch().Enable(); new ScavSellAllRequestPatch().Enable();
new ScavExperienceGainPatch().Enable(); // 3.10.0
new MainMenuControllerPatch().Enable();
new PlayerPatch().Enable();
new DisableReadyLocationReadyPatch().Enable();
new BotTemplateLimitPatch().Enable();
new GetNewBotTemplatesPatch().Enable();
new RemoveUsedBotProfilePatch().Enable();
new DogtagPatch().Enable();
new LoadOfflineRaidScreenPatch().Enable();
new ScavPrefabLoadPatch().Enable();
new ScavProfileLoadPatch().Enable();
new ScavExfilPatch().Enable();
new ExfilPointManagerPatch().Enable();
new TinnitusFixPatch().Enable();
new MaxBotPatch().Enable();
new SpawnPmcPatch().Enable();
new PostRaidHealingPricePatch().Enable();
new InRaidQuestAvailablePatch().Enable();
new VoIPTogglerPatch().Enable();
new HealthControllerPatch().Enable();
new LighthouseBridgePatch().Enable();
new LighthouseTransmitterPatch().Enable();
new EmptyInfilFixPatch().Enable();
new SmokeGrenadeFuseSoundFixPatch().Enable();
new PlayerToggleSoundFixPatch().Enable();
new PluginErrorNotifierPatch().Enable();
new SpawnProcessNegativeValuePatch().Enable();
new InsuredItemManagerStartPatch().Enable();
new MapReadyButtonPatch().Enable();
new LabsKeycardRemovalPatch().Enable();
new ScavLateStartPatch().Enable();
new GetTraderServicesPatch().Enable();
new PurchaseTraderServicePatch().Enable();
new HideoutQuestIgnorePatch().Enable();
new LightKeeperServicesPatch().Enable();
new ScavEncyclopediaPatch().Enable();
new ScavRepAdjustmentPatch().Enable();
new AmmoUsedCounterPatch().Enable();
new ArmorDamageCounterPatch().Enable();
new PVEModeWelcomeMessagePatch().Enable(); new PVEModeWelcomeMessagePatch().Enable();
new DisableMatchmakerPlayerPreviewButtonsPatch().Enable(); new DisableMatchmakerPlayerPreviewButtonsPatch().Enable();
new EnableRefForPVEPatch().Enable(); new EnableRefForPVEPatch().Enable();
new EnableRefIntermScreenPatch().Enable(); new EnableRefIntermScreenPatch().Enable();
new EnablePlayerScavPatch().Enable(); new EnablePlayerScavPatch().Enable();
} }
catch (Exception ex) catch (Exception ex)
{ {