]> git.deb.at Git - rhonda/impostor.git/commit
Debounce CheckMurder calls
authorminiduikboot <mini@duikbo.at>
Thu, 16 Nov 2023 16:55:50 +0000 (17:55 +0100)
committerminiduikboot <mini@duikbo.at>
Thu, 16 Nov 2023 16:55:50 +0000 (17:55 +0100)
commitc592bd1a9eb2f440a964c355289e5f318cc5d9e5
tree03dfce9f7e87e2458d7ff9440db0d2222e4aba04
parent104237b439bcb9afab78b574e6c55d6b47502e25
Debounce CheckMurder calls

In games where players have a high ping, they can get disconnected if
they try and murder a player twice. If a player tries to kill a player
again while they are still under a cooldown from their previous kill,
cancel their request if the game is server authoritive and don't process
it anymore if the game is host authoritive
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs