mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-20 01:46:19 +00:00
Hot fix 3
This commit is contained in:
1 parent
ef9f192364
commit
25bfa341f2
4 files changed
+11
-8
No files matched your search
@@ -243,7 +243,7 @@ class AntiCheat
|
||||
if (target != null)
|
||||
{
|
||||
if (IsCrewmate || !player.IsAlive() || player.IsInVanish() || !target.IsAlive() || target.IsImpostorTeam()
|
||||
/*|| ExtendedPlayerInfo.TimeSinceKill.TryGetValue(player, out var value) && value < (float)GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown - 1.5f*/)
|
||||
|| ExtendedPlayerInfo.TimeSinceKill.TryGetValue(player, out var value) && value < (float)GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown)
|
||||
{
|
||||
BetterNotificationManager.NotifyCheat(player, $"Invalid Action RPC: {Enum.GetName((RpcCalls)callId)}");
|
||||
}
|
||||
|
||||
@@ -107,7 +107,7 @@ class BetterHostManager
|
||||
&& !player.shapeshifting
|
||||
&& !player.onLadder
|
||||
&& !player.MyPhysics.Animations.IsPlayingAnyLadderAnimation()
|
||||
&& ExtendedPlayerInfo.TimeSinceKill.TryGetValue(player, out var value) && value >= (float)GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown - 1.5f
|
||||
&& ExtendedPlayerInfo.TimeSinceKill.TryGetValue(player, out var value) && value >= (float)GameOptionsManager.Instance.currentNormalGameOptions.KillCooldown
|
||||
&& CheckRange(player.GetCustomPosition(), target.GetCustomPosition(), 3f))
|
||||
{
|
||||
if (target.IsAlive()
|
||||
|
||||
+8
-5
@@ -34,13 +34,16 @@ internal class RPCHandlerPatch
|
||||
}
|
||||
|
||||
var canceled = false;
|
||||
if (GameStates.IsHost && BetterHostManager.CheckRPCAsHost(__instance, callId, reader, ref canceled) != true)
|
||||
if (GameStates.IsHost)
|
||||
{
|
||||
if (canceled)
|
||||
if (BetterHostManager.CheckRPCAsHost(__instance, callId, reader, ref canceled) != true)
|
||||
{
|
||||
Logger.LogCheat($"RPC canceled by Host: {Enum.GetName((RpcCalls)callId)}{Enum.GetName((CustomRPC)callId)} - {callId}");
|
||||
}
|
||||
return false;
|
||||
if (canceled)
|
||||
{
|
||||
Logger.LogCheat($"RPC canceled by Host: {Enum.GetName((RpcCalls)callId)}{Enum.GetName((CustomRPC)callId)} - {callId}");
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
AntiCheat.CheckRPC(__instance, callId, reader);
|
||||
|
||||
@@ -23,7 +23,7 @@ public class Main : BasePlugin
|
||||
{
|
||||
public const ReleaseTypes ReleaseBuildType = ReleaseTypes.Canary;
|
||||
public const string CanaryNum = "5";
|
||||
public const string HotfixNum = "2";
|
||||
public const string HotfixNum = "3";
|
||||
public const bool IsHotFix = true;
|
||||
public const string PluginGuid = "com.d1gq.betteramongus";
|
||||
public const string PluginVersion = "1.0.0";
|
||||
|
||||
Reference in new issue
Block a user