mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 03:30:44 -05:00
24696
This commit is contained in:
parent
5cd5caa557
commit
cf30659225
@ -23,7 +23,7 @@ git config --local user.email "USERNAME@SOMETHING.com"
|
|||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Escape From Tarkov 24605
|
- Escape From Tarkov 24696
|
||||||
- BepInEx 5.4.19
|
- BepInEx 5.4.19
|
||||||
- Visual Studio Code
|
- Visual Studio Code
|
||||||
- .NET 6 SDK
|
- .NET 6 SDK
|
||||||
|
@ -42,6 +42,12 @@ namespace Aki.Custom.Patches
|
|||||||
private static bool PatchPrefix(ref bool __result, BotGroupClass __instance, IAIDetails requester)
|
private static bool PatchPrefix(ref bool __result, BotGroupClass __instance, IAIDetails requester)
|
||||||
{
|
{
|
||||||
var isEnemy = false; // default not an enemy
|
var isEnemy = false; // default not an enemy
|
||||||
|
if (requester == null)
|
||||||
|
{
|
||||||
|
__result = isEnemy;
|
||||||
|
|
||||||
|
return true; // Skip original
|
||||||
|
}
|
||||||
|
|
||||||
// Check existing enemies list
|
// Check existing enemies list
|
||||||
if (__instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id))
|
if (__instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id))
|
||||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user