diff --git a/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs b/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs index 94e8abb..73d093f 100644 --- a/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs +++ b/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs @@ -34,6 +34,11 @@ namespace SPT.Custom.Patches _traitorChancePercent = JsonConvert.DeserializeObject(json); } + if (_traitorChancePercent == 0) + { + return true; // Do original method + } + WildSpawnType role = bot.Profile.Info.Settings.Role; if (AiHelpers.BotIsPlayerScav(role, bot.Profile.Info.Nickname) && new Random().Next(1, 100) < _traitorChancePercent) {