mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:50:43 -05:00
fix tratorpatch
This commit is contained in:
parent
fb33a0d1e0
commit
95de6c0175
@ -26,7 +26,7 @@ namespace SPT.Custom.Patches
|
|||||||
}
|
}
|
||||||
|
|
||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
public static bool PatchPrefix(ref BotsGroup __result, IBotGame ____game, DeadBodiesController ____deadBodiesController, BotOwner bot, BotZone zone)
|
public static bool PatchPrefix(ref BotsGroup __result, DeadBodiesController ____deadBodiesController, BotOwner bot, BotZone zone, BotSpawner __instance)
|
||||||
{
|
{
|
||||||
if (!_traitorChancePercent.HasValue)
|
if (!_traitorChancePercent.HasValue)
|
||||||
{
|
{
|
||||||
@ -43,7 +43,7 @@ namespace SPT.Custom.Patches
|
|||||||
var player = Singleton<GameWorld>.Instance.MainPlayer;
|
var player = Singleton<GameWorld>.Instance.MainPlayer;
|
||||||
var enemies = new List<BotOwner>();
|
var enemies = new List<BotOwner>();
|
||||||
var players = new List<Player>() { player };
|
var players = new List<Player>() { player };
|
||||||
var botsGroup = new BotsGroup(zone, ____game, bot, enemies, ____deadBodiesController, players, false);
|
var botsGroup = new BotsGroup(zone, __instance.BotGame, bot, enemies, ____deadBodiesController, players, false);
|
||||||
|
|
||||||
// Because we don't want to use the zone-specific group, we add the new group with no key. This is similar to free for all
|
// Because we don't want to use the zone-specific group, we add the new group with no key. This is similar to free for all
|
||||||
Singleton<IBotGame>.Instance.BotsController.BotSpawner.Groups.AddNoKey(botsGroup, zone);
|
Singleton<IBotGame>.Instance.BotsController.BotSpawner.Groups.AddNoKey(botsGroup, zone);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user