mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 01:50:45 -05:00
25206
This commit is contained in:
parent
83ea79c56c
commit
4a6b658b28
@ -23,7 +23,7 @@ git config --local user.email "USERNAME@SOMETHING.com"
|
||||
|
||||
## Requirements
|
||||
|
||||
- Escape From Tarkov 24964
|
||||
- Escape From Tarkov 25206
|
||||
- BepInEx 5.4.19
|
||||
- Visual Studio Code
|
||||
- .NET 6 SDK
|
||||
|
@ -15,7 +15,7 @@ namespace Aki.Core.Patches
|
||||
{
|
||||
try
|
||||
{
|
||||
var type = PatchConstants.EftTypes.Single(t => t.Name == "Class226");
|
||||
var type = PatchConstants.EftTypes.Single(t => t.Name == "Class227");
|
||||
var value = Traverse.Create(type).Field("TransportPrefixes").GetValue<Dictionary<ETransportProtocolType, string>>();
|
||||
value[ETransportProtocolType.HTTPS] = "http://";
|
||||
value[ETransportProtocolType.WSS] = "ws://";
|
||||
|
@ -33,7 +33,7 @@ namespace Aki.Custom.Patches
|
||||
var player = Singleton<GameWorld>.Instance.MainPlayer;
|
||||
if (profileId == player?.Profile.Id)
|
||||
{
|
||||
GClass2975.Instance.CloseAllScreensForced();
|
||||
GClass2977.Instance.CloseAllScreensForced();
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -14,7 +14,7 @@ namespace Aki.Custom.Patches
|
||||
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
return typeof(GClass397).GetMethod(methodName);
|
||||
return typeof(GClass399).GetMethod(methodName, BindingFlags.Instance | BindingFlags.NonPublic);
|
||||
}
|
||||
|
||||
[PatchPrefix]
|
||||
|
@ -7,8 +7,8 @@ namespace Aki.PrePatch
|
||||
{
|
||||
public static IEnumerable<string> TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" };
|
||||
|
||||
public static int sptUsecValue = 33;
|
||||
public static int sptBearValue = 34;
|
||||
public static int sptUsecValue = 34;
|
||||
public static int sptBearValue = 35;
|
||||
|
||||
public static void Patch(ref AssemblyDefinition assembly)
|
||||
{
|
||||
|
@ -33,6 +33,7 @@ namespace Aki.SinglePlayer.Patches.Progression
|
||||
{
|
||||
// GClass1812 as of 17349
|
||||
// GClass1886 as of 18876
|
||||
// Remapped to SpawnSystemClass
|
||||
return (type.GetMethods(PatchConstants.PrivateFlags).Any(x => x.Name.IndexOf("CheckFarthestFromOtherPlayers", StringComparison.OrdinalIgnoreCase) != -1)
|
||||
&& type.IsClass);
|
||||
}
|
||||
|
@ -55,7 +55,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix
|
||||
/// BotsPresets.GetNewProfile()
|
||||
/// </summary>
|
||||
[PatchPrefix]
|
||||
private static bool PatchPrefix(ref Task<Profile> __result, BotsPresets __instance, List<Profile> ___list_0, GClass626 data, ref bool withDelete)
|
||||
private static bool PatchPrefix(ref Task<Profile> __result, BotsPresets __instance, List<Profile> ___list_0, GClass628 data, ref bool withDelete)
|
||||
{
|
||||
/*
|
||||
When client wants new bot and GetNewProfile() return null (if not more available templates or they don't satisfy by Role and Difficulty condition)
|
||||
|
@ -2,7 +2,7 @@
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using TraderInfo = EFT.Profile.GClass1727;
|
||||
using TraderInfo = EFT.Profile.GClass1729;
|
||||
|
||||
namespace Aki.SinglePlayer.Patches.RaidFix
|
||||
{
|
||||
|
@ -39,8 +39,10 @@ namespace Aki.SinglePlayer.Patches.RaidFix
|
||||
return _targetInterface.IsAssignableFrom(type) && _targetInterface.IsAssignableFrom(type.BaseType);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// BotsPresets.GetNewProfile()
|
||||
[PatchPrefix]
|
||||
private static bool PatchPrefix(ref Profile __result, object __instance, GClass626 data, ref bool withDelete)
|
||||
private static bool PatchPrefix(ref Profile __result, object __instance, GClass628 data, ref bool withDelete)
|
||||
{
|
||||
withDelete = true;
|
||||
|
||||
|
@ -114,9 +114,9 @@ namespace Aki.SinglePlayer.Patches.ScavMode
|
||||
|
||||
// Get fields from MainMenuController.cs
|
||||
var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>();
|
||||
var matchmakerPlayersController = Traverse.Create(menuController).Field("gclass3028_0").GetValue<GClass3028>();
|
||||
var matchmakerPlayersController = Traverse.Create(menuController).Field("gclass3030_0").GetValue<GClass3030>();
|
||||
|
||||
var gclass = new MatchmakerOfflineRaidScreen.GClass3017(profile?.Info, ref raidSettings, matchmakerPlayersController);
|
||||
var gclass = new MatchmakerOfflineRaidScreen.GClass3019(profile?.Info, ref raidSettings, matchmakerPlayersController);
|
||||
|
||||
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;
|
||||
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user