mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 22:50:44 -05:00
23122
This commit is contained in:
parent
3eac6591d4
commit
a7d29409c8
@ -33,7 +33,7 @@ namespace Aki.Custom.Patches
|
|||||||
var player = Singleton<GameWorld>.Instance.MainPlayer;
|
var player = Singleton<GameWorld>.Instance.MainPlayer;
|
||||||
if (profileId == player?.Profile.Id)
|
if (profileId == player?.Profile.Id)
|
||||||
{
|
{
|
||||||
GClass2730.Instance.CloseAllScreensForced();
|
GClass2728.Instance.CloseAllScreensForced();
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using System;
|
using System;
|
||||||
using System.Reflection;
|
using System.Reflection;
|
||||||
using TraderInfo = EFT.Profile.GClass1667;
|
using TraderInfo = EFT.Profile.GClass1665;
|
||||||
|
|
||||||
namespace Aki.SinglePlayer.Patches.RaidFix
|
namespace Aki.SinglePlayer.Patches.RaidFix
|
||||||
{
|
{
|
||||||
|
@ -112,8 +112,8 @@ namespace Aki.SinglePlayer.Patches.ScavMode
|
|||||||
var profile = PatchConstants.BackEndSession.Profile;
|
var profile = PatchConstants.BackEndSession.Profile;
|
||||||
var menuController = (object)GetMenuController();
|
var menuController = (object)GetMenuController();
|
||||||
var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>();
|
var raidSettings = Traverse.Create(menuController).Field("raidSettings_0").GetValue<RaidSettings>();
|
||||||
var matchmakerPlayersController = Traverse.Create(menuController).Field("gclass2783_0").GetValue<GClass2783>();
|
var matchmakerPlayersController = Traverse.Create(menuController).Field("gclass2781_0").GetValue<GClass2781>();
|
||||||
var gclass = new MatchmakerOfflineRaidScreen.GClass2772(profile?.Info, ref raidSettings, matchmakerPlayersController);
|
var gclass = new MatchmakerOfflineRaidScreen.GClass2770(profile?.Info, ref raidSettings, matchmakerPlayersController);
|
||||||
|
|
||||||
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;
|
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;
|
||||||
|
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user