using EFT; namespace SPT.Custom.CustomAI { public static class AiHelpers { /// /// Bot is a PMC when it has IsStreamerModeAvailable flagged and has a wildspawn type of 'pmcBEAR' or 'pmcUSEC' /// /// Bots role /// Bot details /// public static bool BotIsSptPmc(WildSpawnType botRoleToCheck, BotOwner ___botOwner_0) { if (___botOwner_0.Profile.Info.IsStreamerModeAvailable) { // PMCs can sometimes have thier role changed to 'assaultGroup' by the client, we need a alternate way to figure out if they're a spt pmc return true; } return botRoleToCheck == WildSpawnType.pmcBEAR || botRoleToCheck == WildSpawnType.pmcUSEC; } 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) return true; } return false; } public static bool BotIsNormalAssaultScav(WildSpawnType role, BotOwner ___botOwner_0) { // Is assault + no ( if (!___botOwner_0.Profile.Info.Nickname.Contains("(") && role == WildSpawnType.assault) { return true; } return false; } } }