This commit is contained in:
D1GQ committed 2024-08-16 16:41:11 -05:00
1 parent aef41e668b
commit 645ec0758e
2 files changed
+3 -11

No files matched your search

+1 -9
View File
@@ -2,6 +2,7 @@
using HarmonyLib;
using Hazel;
using InnerNet;
using UnityEngine;
using UnityEngine.Purchasing;
namespace BetterAmongUs;
@@ -308,15 +309,6 @@ class AntiCheat
player.BetterData().LastTaskId = taskId;
}
if (callId is (byte)RpcCalls.BootFromVent)
{
if (player.IsImpostorTeam() || player.myTasks.ToArray().Any(task => task.Id == (uint)TaskTypes.VentCleaning && !task.IsComplete))
{
BetterNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)}");
Logger.LogCheat($"{player.Data.PlayerName} {Enum.GetName((RpcCalls)callId)}: {player.IsImpostorTeam()} - {player.myTasks.ToArray().Any(task => task.Id == (uint)TaskTypes.VentCleaning && !task.IsComplete)}");
}
}
if (callId is (byte)RpcCalls.Pet or (byte)RpcCalls.CancelPet)
{
if (player?.CurrentOutfit?.PetId == "pet_EmptyPet")
+2 -2
View File
@@ -171,8 +171,8 @@ class BetterHostManager
{
_ = new LateTask(() =>
{
RPC.SyncAllNames();
}, 0.25f, shoudLog: false);
RPC.SyncAllNames(force: true);
}, 1f, shoudLog: false);
shouldReturn = true;
}