mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
more Platform checks
This commit is contained in:
1 parent
65ba51d10a
commit
12f790d1da
2 files changed
+13
-2
No files matched your search
@@ -3,6 +3,7 @@ using BetterAmongUs.Patches;
|
||||
using HarmonyLib;
|
||||
using Hazel;
|
||||
using InnerNet;
|
||||
using Sentry.Internal.Extensions;
|
||||
|
||||
namespace BetterAmongUs;
|
||||
|
||||
@@ -89,6 +90,11 @@ class AntiCheat
|
||||
Logger.LogCheat($"{player.BetterData().RealName} Platform Spoofer: {__instance.PsnPlatformId}");
|
||||
}
|
||||
}
|
||||
|
||||
if (__instance.Platform is Platforms.Unknown || !Enum.IsDefined(__instance.Platform))
|
||||
{
|
||||
BetterNotificationManager.NotifyCheat(player, $"Platform Spoofer", newText: "Has been detected with a cheat");
|
||||
}
|
||||
}
|
||||
}, 3.5f, shoudLog: false);
|
||||
}
|
||||
|
||||
+7
-2
@@ -1,5 +1,6 @@
|
||||
using AmongUs.GameOptions;
|
||||
using InnerNet;
|
||||
using Sentry.Internal.Extensions;
|
||||
using System.Reflection;
|
||||
using System.Security.Cryptography;
|
||||
using System.Text;
|
||||
@@ -298,11 +299,15 @@ public static class Utils
|
||||
PlatformName = "IPhone";
|
||||
Tag = "Mobile";
|
||||
break;
|
||||
case Platforms p when !Enum.IsDefined(p):
|
||||
case Platforms.Unknown:
|
||||
PlatformName = "None";
|
||||
PlatformName = "Unknown";
|
||||
useTag = false;
|
||||
break;
|
||||
default:
|
||||
return string.Empty;
|
||||
PlatformName = "None";
|
||||
useTag = false;
|
||||
break;
|
||||
}
|
||||
|
||||
if (useTag == false)
|
||||
|
||||
Reference in new issue
Block a user