From 14a0217ef952efa42fe1e37018da8850f2a3e798 Mon Sep 17 00:00:00 2001 From: TotallyNotElite <1yourexperiment@protonmail.com> Date: Tue, 24 Nov 2020 10:12:34 +0100 Subject: [PATCH] Fix: Do not reply to auth requests by raged users --- src/hooks/SendNetMsg.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks/SendNetMsg.cpp b/src/hooks/SendNetMsg.cpp index 74594fe6..1eda1cde 100644 --- a/src/hooks/SendNetMsg.cpp +++ b/src/hooks/SendNetMsg.cpp @@ -80,7 +80,7 @@ void ProcessSendline(IGameEvent *kv) return; // CA7 = Reply and change state // CA8 = Change state - if (id == CAT_IDENTIFY && *answerIdentify && player_idx != g_pLocalPlayer->entity_idx) + if (id == CAT_IDENTIFY && *answerIdentify && player_idx != g_pLocalPlayer->entity_idx && playerlist::AccessData(info.friendsID).state != playerlist::k_EState::RAGE) send_drawline_reply = true; if (playerlist::ChangeState(info.friendsID, playerlist::k_EState::CAT)) PrintChat("\x07%06X%s\x01 Marked as CAT (Cathook user)", 0xe05938, info.name);