mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 22:30:44 -05:00
28965
This commit is contained in:
parent
469591abfe
commit
0429799dea
@ -13,7 +13,6 @@ using System.Linq;
|
||||
using System.Reflection;
|
||||
using UnityEngine;
|
||||
using Random = UnityEngine.Random;
|
||||
using BotEventHandler = GClass598;
|
||||
|
||||
namespace Aki.Custom.BTR
|
||||
{
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -4,7 +4,6 @@ using EFT;
|
||||
using EFT.Vehicle;
|
||||
using HarmonyLib;
|
||||
using System.Reflection;
|
||||
using BotEventHandler = GClass598;
|
||||
|
||||
namespace Aki.Custom.BTR.Patches
|
||||
{
|
||||
|
@ -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]
|
||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user