Please add an additional option to only allow player Scavs to loot. When implemented, this means the existing "Scav" checkbox will allow all non-player Scavs to loot.
The code I'm using to check which Scavs are player Scavs is:
string pattern = "\\w+.[(]\\w+[)]";
Regex regex = new Regex(pattern);
if (regex.Matches(botOwner.Profile.Nickname).Count > 0)
{
return BotType.PScav;
}
@Skwizzy I messed up the Regex pattern because I forgot that bot names can have special characters in them. This should fix it: string pattern = ".+[(].+[)]";.
Please add an additional option to only allow player Scavs to loot. When implemented, this means the existing "Scav" checkbox will allow all non-player Scavs to loot.
The code I'm using to check which Scavs are player Scavs is: