From 860a466f826f5ec7450cdcd7a168edc48a927469 Mon Sep 17 00:00:00 2001 From: Ryan <80224521+Rxann@users.noreply.github.com> Date: Fri, 24 May 2024 17:19:32 -0400 Subject: [PATCH] Remove Unknown Player OOM Kick False Positives (#3170) --- src/hooks/protections/receive_net_message.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/hooks/protections/receive_net_message.cpp b/src/hooks/protections/receive_net_message.cpp index ef75f05c..18a98cd5 100644 --- a/src/hooks/protections/receive_net_message.cpp +++ b/src/hooks/protections/receive_net_message.cpp @@ -240,14 +240,14 @@ namespace big case rage::eNetMessage::MsgScriptMigrateHost: return true; case rage::eNetMessage::MsgRadioStationSyncRequest: { - static rate_limiter unk_player_radio_requests{2s, 2}; + static rate_limiter unk_player_radio_requests{1s, 6}; if (unk_player_radio_requests.process()) { if (unk_player_radio_requests.exceeded_last_process()) { // Make a translation for this new OOM kick protection - g_notification_service.push_error("PROTECTIONS"_T.data(), "OOM_KICK"_T.data()); + g_notification_service.push_error("PROTECTIONS"_T.data(), "OOM_KICK_UNK"_T.data()); } return true; } @@ -259,7 +259,7 @@ namespace big if (g.debug.logs.packet_logs) [[unlikely]] { if (g.debug.logs.packet_logs == 1 || //ALL - (g.debug.logs.packet_logs == 2 && msgType != rage::eNetMessage::MsgCloneSync && msgType != rage::eNetMessage::MsgPackedCloneSyncACKs && msgType != rage::eNetMessage::MsgPackedEvents && msgType != rage::eNetMessage::MsgPackedReliables && msgType != rage::eNetMessage::MsgPackedEventReliablesMsgs && msgType != rage::eNetMessage::MsgNetArrayMgrUpdate && msgType != rage::eNetMessage::MsgNetArrayMgrSplitUpdateAck && msgType != rage::eNetMessage::MsgNetArrayMgrUpdateAck && msgType != rage::eNetMessage::MsgScriptHandshakeAck && msgType != rage::eNetMessage::MsgScriptHandshake && msgType != rage::eNetMessage::MsgScriptJoin && msgType != rage::eNetMessage::MsgScriptJoinAck && msgType != rage::eNetMessage::MsgScriptJoinHostAck && msgType != rage::eNetMessage::MsgRequestObjectIds && msgType != rage::eNetMessage::MsgInformObjectIds && msgType != rage::eNetMessage::MsgNetTimeSync)) //FILTERED + (g.debug.logs.packet_logs == 2 && msgType != rage::eNetMessage::MsgCloneSync && msgType != rage::eNetMessage::MsgPackedCloneSyncACKs && msgType != rage::eNetMessage::MsgPackedEvents && msgType != rage::eNetMessage::MsgPackedReliables && msgType != rage::eNetMessage::MsgPackedEventReliablesMsgs && msgType != rage::eNetMessage::MsgNetArrayMgrUpdate && msgType != rage::eNetMessage::MsgNetArrayMgrSplitUpdateAck && msgType != rage::eNetMessage::MsgNetArrayMgrUpdateAck && msgType != rage::eNetMessage::MsgScriptHandshakeAck && msgType != rage::eNetMessage::MsgScriptHandshake && msgType != rage::eNetMessage::MsgScriptJoin && msgType != rage::eNetMessage::MsgScriptJoinAck && msgType != rage::eNetMessage::MsgScriptJoinHostAck && msgType != rage::eNetMessage::MsgRequestObjectIds && msgType != rage::eNetMessage::MsgInformObjectIds && msgType != rage::eNetMessage::MsgNetTimeSync)) //FILTERED { const char* packet_type = ""; for (const auto& p : packet_types)