mirror of
https://github.com/Impostor/Impostor.git
synced 2026-10-19 15:51:42 +00:00
Allow host-only mods to desync kill timeouts
This commit is contained in:
1 parent
7f943e6b2e
commit
5dafd9fe5b
1 file changed
+6
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user