0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:30:44 -05:00
This commit is contained in:
Dev 2024-02-27 18:57:49 +00:00
parent 469591abfe
commit 0429799dea
6 changed files with 4 additions and 7 deletions

View File

@ -13,7 +13,6 @@ using System.Linq;
using System.Reflection;
using UnityEngine;
using Random = UnityEngine.Random;
using BotEventHandler = GClass598;
namespace Aki.Custom.BTR
{

View File

@ -5,7 +5,6 @@ using EFT.GlobalEvents;
using EFT.Vehicle;
using HarmonyLib;
using System.Reflection;
using GlobalEventHandler = GClass2915;
namespace Aki.Custom.BTR.Patches
{
@ -38,7 +37,7 @@ namespace Aki.Custom.BTR.Patches
if (btrBot.BotsGroup.Enemies.ContainsKey(__instance))
{
// Notify player they are blacklisted from entering BTR
GlobalEventHandler.CreateEvent<BtrNotificationInteractionMessageEvent>().Invoke(__instance.Id, EBtrInteractionStatus.Blacklisted);
GlobalEventHandlerClass.CreateEvent<BtrNotificationInteractionMessageEvent>().Invoke(__instance.Id, EBtrInteractionStatus.Blacklisted);
return;
}

View File

@ -4,7 +4,6 @@ using EFT;
using EFT.Vehicle;
using HarmonyLib;
using System.Reflection;
using BotEventHandler = GClass598;
namespace Aki.Custom.BTR.Patches
{

View File

@ -17,7 +17,7 @@ namespace Aki.Custom.Patches
//Update GClass ref and Possibly name GClass
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(GClass456), nameof(GClass456.method_4));
return AccessTools.Method(typeof(CultistEventsClass), nameof(CultistEventsClass.method_4));
}
[PatchPostfix]

View File

@ -29,7 +29,7 @@ namespace Aki.SinglePlayer.Patches.ScavMode
_ = nameof(TimeAndWeatherSettings.IsRandomWeather);
_ = nameof(BotControllerSettings.IsScavWars);
_ = nameof(WavesSettings.IsBosses);
_ = GClass3172.MAX_SCAV_COUNT; // UPDATE REFS TO THIS CLASS BELOW !!!
_ = MatchmakerPlayerControllerClass.MAX_SCAV_COUNT; // UPDATE REFS TO THIS CLASS BELOW !!!
// `MatchmakerInsuranceScreen` OnShowNextScreen
_onReadyScreenMethod = AccessTools.Method(typeof(MainMenuController), nameof(MainMenuController.method_43));
@ -116,7 +116,7 @@ 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($"{nameof(GClass3172).ToLowerInvariant()}_0").GetValue<GClass3172>();
var matchmakerPlayersController = Traverse.Create(menuController).Field($"{nameof(MatchmakerPlayerControllerClass).ToLowerInvariant()}_0").GetValue<MatchmakerPlayerControllerClass>();
var gclass = new MatchmakerOfflineRaidScreen.GClass3160(profile?.Info, ref raidSettings, matchmakerPlayersController);

Binary file not shown.