mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 04:50:45 -05:00
Cleaned up of AiHelpers
logic to improve consistency
This commit is contained in:
parent
d37c38b2b9
commit
51aa599a4e
@ -1,5 +1,4 @@
|
|||||||
using EFT;
|
using EFT;
|
||||||
using EFT.UI;
|
|
||||||
|
|
||||||
namespace SPT.Custom.CustomAI
|
namespace SPT.Custom.CustomAI
|
||||||
{
|
{
|
||||||
@ -19,18 +18,13 @@ namespace SPT.Custom.CustomAI
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return botRoleToCheck == WildSpawnType.pmcBEAR || botRoleToCheck == WildSpawnType.pmcUSEC;
|
return botRoleToCheck is WildSpawnType.pmcBEAR or WildSpawnType.pmcUSEC;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool BotIsPlayerScav(WildSpawnType role, string nickname)
|
public static bool BotIsPlayerScav(WildSpawnType role, string nickname)
|
||||||
{
|
|
||||||
if (role == WildSpawnType.assault && nickname.Contains("("))
|
|
||||||
{
|
{
|
||||||
// Check bot is pscav by looking for the opening parentheses of their nickname e.g. scavname (pmc name)
|
// Check bot is pscav by looking for the opening parentheses of their nickname e.g. scavname (pmc name)
|
||||||
return true;
|
return role == WildSpawnType.assault && nickname.Contains("(");
|
||||||
}
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static bool BotIsSimulatedPlayerScav(WildSpawnType role, BotOwner botOwner)
|
public static bool BotIsSimulatedPlayerScav(WildSpawnType role, BotOwner botOwner)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user