mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 16:50:43 -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
|
||||
|
||||
- Escape From Tarkov 24605
|
||||
- Escape From Tarkov 24696
|
||||
- BepInEx 5.4.19
|
||||
- Visual Studio Code
|
||||
- .NET 6 SDK
|
||||
|
@ -42,7 +42,13 @@ namespace Aki.Custom.Patches
|
||||
private static bool PatchPrefix(ref bool __result, BotGroupClass __instance, IAIDetails requester)
|
||||
{
|
||||
var isEnemy = false; // default not an enemy
|
||||
|
||||
if (requester == null)
|
||||
{
|
||||
__result = isEnemy;
|
||||
|
||||
return true; // Skip original
|
||||
}
|
||||
|
||||
// Check existing enemies list
|
||||
if (__instance.Enemies.Any(x=> x.Value.Player.Id == requester.Id))
|
||||
{
|
||||
|
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user