diff --git a/project/Aki.Custom/BTR/BTRManager.cs b/project/Aki.Custom/BTR/BTRManager.cs index 36a7d80..06a8b7b 100644 --- a/project/Aki.Custom/BTR/BTRManager.cs +++ b/project/Aki.Custom/BTR/BTRManager.cs @@ -349,8 +349,8 @@ namespace Aki.Custom.BTR btrDataPacket.rotation = btrServerSide.transform.rotation; if (btrTurretServer != null && btrTurretServer.gunsBlockRoot != null) { - btrDataPacket.turretRotation = btrTurretServer.transform.rotation; - btrDataPacket.gunsBlockRotation = btrTurretServer.gunsBlockRoot.rotation; + btrDataPacket.turretRotation = btrTurretServer.transform.localEulerAngles.y; + btrDataPacket.gunsBlockRotation = btrTurretServer.gunsBlockRoot.localEulerAngles.x; } btrDataPacket.State = (byte)btrServerSide.BtrState; btrDataPacket.RouteState = (byte)btrServerSide.VehicleRouteState; diff --git a/project/Aki.Custom/BTR/BTRRoadKillTrigger.cs b/project/Aki.Custom/BTR/BTRRoadKillTrigger.cs index 8b819eb..44e2896 100644 --- a/project/Aki.Custom/BTR/BTRRoadKillTrigger.cs +++ b/project/Aki.Custom/BTR/BTRRoadKillTrigger.cs @@ -8,7 +8,7 @@ namespace Aki.Custom.BTR { public override bool IsStatic => false; - public override void AddPenalty(GInterface94 player) + public override void AddPenalty(GInterface106 player) { } @@ -16,7 +16,7 @@ namespace Aki.Custom.BTR { } - public override void ProceedDamage(GInterface94 player, BodyPartCollider bodyPart) + public override void ProceedDamage(GInterface106 player, BodyPartCollider bodyPart) { bodyPart.ApplyInstantKill(new DamageInfo() { @@ -31,7 +31,7 @@ namespace Aki.Custom.BTR }); } - public override void RemovePenalty(GInterface94 player) + public override void RemovePenalty(GInterface106 player) { } } diff --git a/project/Aki.Custom/BTR/Patches/BTRActivateTraderDialogPatch.cs b/project/Aki.Custom/BTR/Patches/BTRActivateTraderDialogPatch.cs index d0c44a1..9bafd5b 100644 --- a/project/Aki.Custom/BTR/Patches/BTRActivateTraderDialogPatch.cs +++ b/project/Aki.Custom/BTR/Patches/BTRActivateTraderDialogPatch.cs @@ -6,7 +6,7 @@ using EFT.Vehicle; using HarmonyLib; using System; using System.Reflection; -using BTRDialog = EFT.UI.TraderDialogScreen.GClass3132; +using BTRDialog = EFT.UI.TraderDialogScreen.GClass3149; namespace Aki.Custom.BTR.Patches { diff --git a/project/Aki.Custom/BTR/Patches/BTRDestroyAtRaidEndPatch.cs b/project/Aki.Custom/BTR/Patches/BTRDestroyAtRaidEndPatch.cs index ab399eb..f1decf4 100644 --- a/project/Aki.Custom/BTR/Patches/BTRDestroyAtRaidEndPatch.cs +++ b/project/Aki.Custom/BTR/Patches/BTRDestroyAtRaidEndPatch.cs @@ -11,7 +11,7 @@ namespace Aki.Custom.BTR.Patches { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); + return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); } [PatchPrefix] diff --git a/project/Aki.Custom/Patches/ExitWhileLootingPatch.cs b/project/Aki.Custom/Patches/ExitWhileLootingPatch.cs index c4ecb70..4cb2fe3 100644 --- a/project/Aki.Custom/Patches/ExitWhileLootingPatch.cs +++ b/project/Aki.Custom/Patches/ExitWhileLootingPatch.cs @@ -13,7 +13,7 @@ namespace Aki.Custom.Patches { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); + return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); } // Look at BaseLocalGame and find a method named "Stop" @@ -31,7 +31,7 @@ namespace Aki.Custom.Patches var player = Singleton.Instance.MainPlayer; if (profileId == player?.Profile.Id) { - GClass3107.Instance.CloseAllScreensForced(); + GClass3123.Instance.CloseAllScreensForced(); } return true; diff --git a/project/Aki.Custom/Patches/LocationLootCacheBustingPatch.cs b/project/Aki.Custom/Patches/LocationLootCacheBustingPatch.cs index ed4e38d..b988e2f 100644 --- a/project/Aki.Custom/Patches/LocationLootCacheBustingPatch.cs +++ b/project/Aki.Custom/Patches/LocationLootCacheBustingPatch.cs @@ -12,7 +12,7 @@ namespace Aki.Custom.Patches { protected override MethodBase GetTargetMethod() { - var desiredType = typeof(BaseLocalGame); + var desiredType = typeof(BaseLocalGame); var desiredMethod = desiredType.GetMethods(BindingFlags.Instance | BindingFlags.DeclaredOnly | BindingFlags.Public).SingleCustom(IsTargetMethod); // method_6 Logger.LogDebug($"{this.GetType().Name} Type: {desiredType?.Name}"); diff --git a/project/Aki.Custom/Patches/RagfairFeePatch.cs b/project/Aki.Custom/Patches/RagfairFeePatch.cs index 188ee5e..fd105e4 100644 --- a/project/Aki.Custom/Patches/RagfairFeePatch.cs +++ b/project/Aki.Custom/Patches/RagfairFeePatch.cs @@ -17,8 +17,8 @@ namespace Aki.Custom.Patches public RagfairFeePatch() { // Remember to update prefix parameter if below lines are broken - _ = nameof(GClass3069.IsAllSelectedItemSame); - _ = nameof(GClass3069.AutoSelectSimilar); + _ = nameof(GClass3083.IsAllSelectedItemSame); + _ = nameof(GClass3083.AutoSelectSimilar); } protected override MethodBase GetTargetMethod() @@ -30,18 +30,18 @@ namespace Aki.Custom.Patches /// Calculate tax to charge player and send to server before the offer is sent /// /// Item sold - /// OfferItemCount + /// OfferItemCount /// RequirementsPrice /// SellInOnePiece [PatchPrefix] - private static void PatchPrefix(ref Item ___item_0, ref GClass3069 ___gclass3069_0, ref double ___double_0, ref bool ___bool_0) + private static void PatchPrefix(ref Item ___item_0, ref GClass3083 ___gclass3083_0, ref double ___double_0, ref bool ___bool_0) { RequestHandler.PutJson("/client/ragfair/offerfees", new { id = ___item_0.Id, tpl = ___item_0.TemplateId, - count = ___gclass3069_0.OfferItemCount, - fee = Mathf.CeilToInt((float)GClass2089.CalculateTaxPrice(___item_0, ___gclass3069_0.OfferItemCount, ___double_0, ___bool_0)) + count = ___gclass3083_0.OfferItemCount, + fee = Mathf.CeilToInt((float)GClass2100.CalculateTaxPrice(___item_0, ___gclass3083_0.OfferItemCount, ___double_0, ___bool_0)) }.ToJson()); } } diff --git a/project/Aki.Custom/Patches/ResetTraderServicesPatch.cs b/project/Aki.Custom/Patches/ResetTraderServicesPatch.cs index ff8731d..64c6287 100644 --- a/project/Aki.Custom/Patches/ResetTraderServicesPatch.cs +++ b/project/Aki.Custom/Patches/ResetTraderServicesPatch.cs @@ -10,7 +10,7 @@ namespace Aki.Custom.Patches { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); + return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); } [PatchPrefix] diff --git a/project/Aki.Custom/Patches/SessionIdPatch.cs b/project/Aki.Custom/Patches/SessionIdPatch.cs index ef2190e..4bcf5ea 100644 --- a/project/Aki.Custom/Patches/SessionIdPatch.cs +++ b/project/Aki.Custom/Patches/SessionIdPatch.cs @@ -14,7 +14,7 @@ namespace Aki.Custom.Patches protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.method_5)); + return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.method_5)); } [PatchPostfix] diff --git a/project/Aki.Debugging/Patches/BTRDebugCommandPatch.cs b/project/Aki.Debugging/Patches/BTRDebugCommandPatch.cs index a9b7a37..a59c1f4 100644 --- a/project/Aki.Debugging/Patches/BTRDebugCommandPatch.cs +++ b/project/Aki.Debugging/Patches/BTRDebugCommandPatch.cs @@ -5,7 +5,7 @@ using EFT; using EFT.UI; using HarmonyLib; using System.Reflection; -using DialogControlClass = GClass1957; +using DialogControlClass = GClass1968; namespace Aki.Debugging.Patches { diff --git a/project/Aki.Debugging/Patches/CoordinatesPatch.cs b/project/Aki.Debugging/Patches/CoordinatesPatch.cs index 70927d5..c553a92 100644 --- a/project/Aki.Debugging/Patches/CoordinatesPatch.cs +++ b/project/Aki.Debugging/Patches/CoordinatesPatch.cs @@ -14,11 +14,11 @@ namespace Aki.Debugging.Patches protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Update)); + return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Update)); } [PatchPrefix] - private static void PatchPrefix(BaseLocalGame __instance) + private static void PatchPrefix(BaseLocalGame __instance) { if (!Input.GetKeyDown(KeyCode.LeftControl)) return; diff --git a/project/Aki.Debugging/Patches/ExfilDumper.cs b/project/Aki.Debugging/Patches/ExfilDumper.cs index d665687..abe1156 100644 --- a/project/Aki.Debugging/Patches/ExfilDumper.cs +++ b/project/Aki.Debugging/Patches/ExfilDumper.cs @@ -9,7 +9,7 @@ using System.Collections.Generic; using System.IO; using System.Linq; using System.Reflection; -using ExitSettingsClass = GClass1225; +using ExitSettingsClass = GClass1233; namespace Aki.Debugging.Patches { diff --git a/project/Aki.Debugging/Patches/PMCBotSpawnLocationPatch.cs b/project/Aki.Debugging/Patches/PMCBotSpawnLocationPatch.cs index 68edd96..8c7ea94 100644 --- a/project/Aki.Debugging/Patches/PMCBotSpawnLocationPatch.cs +++ b/project/Aki.Debugging/Patches/PMCBotSpawnLocationPatch.cs @@ -17,11 +17,11 @@ namespace Aki.Debugging.Patches { private readonly List playerSpawnPoints; private readonly Random _rnd = new Random(); - private readonly GStruct380 _spawnSettings = new GStruct380(); + private readonly GStruct381 _spawnSettings = new GStruct381(); public SptSpawnHelper() { - IEnumerable locationSpawnPoints = GClass2928.CreateFromScene(); + IEnumerable locationSpawnPoints = GClass2942.CreateFromScene(); var playerSpawns = locationSpawnPoints.Where(x => x.Categories.HasFlag(ESpawnCategoryMask.Player)).ToList(); this.playerSpawnPoints = locationSpawnPoints.Where(x => x.Categories.HasFlag(ESpawnCategoryMask.Player)).ToList(); @@ -62,7 +62,7 @@ namespace Aki.Debugging.Patches } [PatchPrefix] - public static bool PatchPrefix(GClass1472 __instance, GClass591 data) + public static bool PatchPrefix(GClass1480 __instance, GClass590 data) { var firstBotRole = data.Profiles[0].Info.Settings.Role; diff --git a/project/Aki.Debugging/Patches/ReloadClientPatch.cs b/project/Aki.Debugging/Patches/ReloadClientPatch.cs index 4904417..247864d 100644 --- a/project/Aki.Debugging/Patches/ReloadClientPatch.cs +++ b/project/Aki.Debugging/Patches/ReloadClientPatch.cs @@ -38,7 +38,7 @@ namespace Aki.Debugging.Patches { tarkovapp.HideoutControllerAccess.UnloadHideout(); } - tarkovapp.method_48(); + tarkovapp.method_49(); } } } diff --git a/project/Aki.PrePatch/AkiBotsPrePatcher.cs b/project/Aki.PrePatch/AkiBotsPrePatcher.cs index d96d32a..ce91eee 100644 --- a/project/Aki.PrePatch/AkiBotsPrePatcher.cs +++ b/project/Aki.PrePatch/AkiBotsPrePatcher.cs @@ -7,8 +7,8 @@ namespace Aki.PrePatch { public static IEnumerable TargetDLLs { get; } = new[] { "Assembly-CSharp.dll" }; - public static int sptUsecValue = 47; - public static int sptBearValue = 48; + public static int sptUsecValue = 49; + public static int sptBearValue = 50; public static void Patch(ref AssemblyDefinition assembly) { diff --git a/project/Aki.SinglePlayer/Patches/Quests/EndByTimerPatch.cs b/project/Aki.SinglePlayer/Patches/Quests/EndByTimerPatch.cs index 1c1184d..d441547 100644 --- a/project/Aki.SinglePlayer/Patches/Quests/EndByTimerPatch.cs +++ b/project/Aki.SinglePlayer/Patches/Quests/EndByTimerPatch.cs @@ -14,7 +14,7 @@ namespace Aki.SinglePlayer.Patches.Quests { protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); + return AccessTools.Method(typeof(BaseLocalGame), nameof(BaseLocalGame.Stop)); } // Unused, but left here in case patch breaks and finding the intended method is difficult diff --git a/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs b/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs index c330e25..e6780a8 100644 --- a/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs +++ b/project/Aki.SinglePlayer/Patches/RaidFix/GetNewBotTemplatesPatch.cs @@ -44,7 +44,7 @@ namespace Aki.SinglePlayer.Patches.RaidFix /// BotsPresets.GetNewProfile() /// [PatchPrefix] - private static bool PatchPrefix(ref Task __result, BotsPresets __instance, List ___list_0, GClass591 data, ref bool withDelete) + private static bool PatchPrefix(ref Task __result, BotsPresets __instance, List ___list_0, GClass590 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) diff --git a/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs b/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs index 28ff7ea..86bc468 100644 --- a/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs +++ b/project/Aki.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs @@ -123,7 +123,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode .Single(field => field.FieldType == typeof(MatchmakerPlayerControllerClass)) ?.GetValue(menuController) as MatchmakerPlayerControllerClass; - var gclass = new MatchmakerOfflineRaidScreen.GClass3155(profile?.Info, ref raidSettings, matchmakerPlayersController); + var gclass = new MatchmakerOfflineRaidScreen.GClass3174(profile?.Info, ref raidSettings, matchmakerPlayersController); gclass.OnShowNextScreen += LoadOfflineRaidNextScreen; diff --git a/project/Aki.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs b/project/Aki.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs index 2543b21..69317b5 100644 --- a/project/Aki.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs +++ b/project/Aki.SinglePlayer/Patches/ScavMode/ScavRepAdjustmentPatch.cs @@ -12,7 +12,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode // TODO: REMAP/UPDATE GCLASS REF protected override MethodBase GetTargetMethod() { - return AccessTools.Method(typeof(GClass1790), nameof(GClass1790.OnEnemyKill)); + return AccessTools.Method(typeof(GClass1798), nameof(GClass1798.OnEnemyKill)); } [PatchPrefix] diff --git a/project/Aki.SinglePlayer/Utils/TraderServices/TraderServicesManager.cs b/project/Aki.SinglePlayer/Utils/TraderServices/TraderServicesManager.cs index b1758e2..4d5be56 100644 --- a/project/Aki.SinglePlayer/Utils/TraderServices/TraderServicesManager.cs +++ b/project/Aki.SinglePlayer/Utils/TraderServices/TraderServicesManager.cs @@ -10,9 +10,9 @@ using System.Linq; using System.Reflection; using UnityEngine; using static BackendConfigSettingsClass; -using TraderServiceClass = GClass1794; -using QuestDictClass = GClass2133; -using StandingListClass = GClass2135; +using TraderServiceClass = GClass1802; +using QuestDictClass = GClass2141; +using StandingListClass = GClass2143; namespace Aki.SinglePlayer.Utils.TraderServices {