mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
More cheat detections
This commit is contained in:
1 parent
0817644423
commit
ef5ac59955
3 files changed
+24
-1
No files matched your search
+22
-1
@@ -56,7 +56,7 @@ class AntiCheat
|
||||
|
||||
public static void PauseAntiCheat()
|
||||
{
|
||||
float time = 4f;
|
||||
float time = 2.5f;
|
||||
if (IsEnabled)
|
||||
{
|
||||
IsEnabled = false;
|
||||
@@ -227,6 +227,27 @@ class AntiCheat
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
if (callId is unchecked((byte)CustomRPC.KillnetworkChat))
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!Main.AntiCheat.Value || !BetterGameSettings.DetectCheatClients.GetBool()) return;
|
||||
|
||||
var flag = KNData.ContainsKey(Utils.GetHashPuid(player));
|
||||
|
||||
if (!flag)
|
||||
{
|
||||
player.ReportPlayer(ReportReasons.Cheating_Hacking);
|
||||
KNData[Utils.GetHashPuid(player)] = player.Data.FriendCode;
|
||||
BetterDataManager.SaveCheatData(Utils.GetHashPuid(player), player.Data.FriendCode, player.Data.PlayerName, "knData", "KN RPC");
|
||||
BetterNotificationManager.NotifyCheat(player, Translator.GetString("AntiCheat.Cheat.KNC"), Translator.GetString("AntiCheat.HasBeenDetectedWithCheat2"));
|
||||
}
|
||||
}
|
||||
catch { }
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Check and notify for invalid rpcs
|
||||
|
||||
@@ -12,6 +12,7 @@ enum CustomRPC : int
|
||||
AUM = 42069, // Results in 85
|
||||
AUMChat = 101,
|
||||
Killnetwork = 250,
|
||||
KillnetworkChat = 119,
|
||||
|
||||
// TOHE
|
||||
VersionCheck = 80,
|
||||
|
||||
@@ -116,6 +116,7 @@
|
||||
"AntiCheat.Cheat.Sicko": "Sicko Menu",
|
||||
"AntiCheat.Cheat.AUM": "AUM",
|
||||
"AntiCheat.Cheat.KN": "Kill Network",
|
||||
"AntiCheat.Cheat.KNC": "KN Chat",
|
||||
"AntiCheat.Reason.InvalidFriendCode": "Invalid Friend Code",
|
||||
"AntiCheat.Reason.PlatformSpoofer": "Platform Spoofer",
|
||||
"AntiCheat.Reason.SickoMenuUser": "Known Sicko User",
|
||||
|
||||
Reference in new issue
Block a user