From c6042632dd3b8d54512cd25608e8de70349c124a Mon Sep 17 00:00:00 2001 From: RaidMax Date: Thu, 2 Jun 2022 18:30:22 -0500 Subject: [PATCH] add default anticheat detection types --- Plugins/Stats/Config/AnticheatConfiguration.cs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Plugins/Stats/Config/AnticheatConfiguration.cs b/Plugins/Stats/Config/AnticheatConfiguration.cs index ed6b8ea7..26d10cee 100644 --- a/Plugins/Stats/Config/AnticheatConfiguration.cs +++ b/Plugins/Stats/Config/AnticheatConfiguration.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Linq; using static IW4MAdmin.Plugins.Stats.Cheat.Detection; using static SharedLibraryCore.Server; @@ -10,7 +11,13 @@ namespace Stats.Config public bool Enable { get; set; } [Obsolete] public IDictionary ServerDetectionTypes { get; set; } = new Dictionary(); - public IDictionary GameDetectionTypes { get; set; } = new Dictionary(); + + public IDictionary GameDetectionTypes { get; set; } = + new Dictionary() + { + { Game.IW4, Enum.GetValues(typeof(DetectionType)).Cast().ToArray() }, + { Game.T6, new[] { DetectionType.Offset, DetectionType.Snap, DetectionType.Strain } } + }; public IList IgnoredClientIds { get; set; } = new List(); public IDictionary> IgnoredDetectionSpecification{ get; set; } = new Dictionary> {