]> git.deb.at Git - rhonda/impostor.git/commit
Implement new MurderPlayer logic
authorminiduikboot <mini@duikbo.at>
Mon, 22 Nov 2021 21:12:34 +0000 (22:12 +0100)
committerminiduikboot <mini@duikbo.at>
Mon, 22 Nov 2021 21:12:34 +0000 (22:12 +0100)
commitaeaffc849ac8669c77e2ac9cf2eca1555891c937
tree2ce0c0c189c396c174a39aab8fd5920d3c9bb314
parenta15f1b6a4c81dba18e96dd2b4cea6b6a598c22fb
Implement new MurderPlayer logic

In 2021.11.9, the host now uses MurderPlayer instead of impostors.
Impostor now use CheckMurder to request the host to kill a player. This
allows the host to prevent the target of the Guardian Angel from dying.

However, if the impostor that is checking the kill is also the host, AU
internally processes the CheckMurder RPC and sends the MurderPlayer RPC
first, *then* it sends the CheckMurder RPC.
src/Impostor.Api/Net/Messages/Rpcs/Rpc47CheckMurder.cs [new file with mode: 0644]
src/Impostor.Server/Net/Inner/Objects/InnerPlayerControl.cs