From: miniduikboot Date: Sat, 9 Mar 2024 11:51:57 +0000 (+0100) Subject: Allow host-only mods to desync kill timeouts X-Git-Tag: v1.9.2~7^2~3 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=5dafd9fe5b774f2a9ba346e7a0007c46961ac224;p=rhonda%2Fimpostor.git Allow host-only mods to desync kill timeouts --- diff --git a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs index a45af1d..958d8a9 100644 --- a/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs +++ b/src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs @@ -798,9 +798,13 @@ namespace Impostor.Server.Net.Inner.Objects // This request was made too quickly by spamming the kill button, cancel it if we're in server authoritive mode return _game.IsHostAuthoritive; } - else if (await sender.Client.ReportCheatAsync(RpcCalls.CheckMurder, CheatCategory.GameFlow, "Client tried to murder too fast")) + else if (!_game.IsHostAuthoritive) { - return false; + // Host-only mods may desync the kill timeout between players + if (await sender.Client.ReportCheatAsync(RpcCalls.CheckMurder, CheatCategory.GameFlow, "Client tried to murder too fast")) + { + return false; + } } }