From c50f770ba806873cab3027afd2097a1f1faddd0c Mon Sep 17 00:00:00 2001 From: rei-2 <174158077+rei-2@users.noreply.github.com> Date: Wed, 1 Jul 2026 16:25:25 -0400 Subject: [PATCH] don't attempt to retry to avoid autobalance in demos --- Amalgam/src/Hooks/CHLClient_DispatchUserMessage.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Amalgam/src/Hooks/CHLClient_DispatchUserMessage.cpp b/Amalgam/src/Hooks/CHLClient_DispatchUserMessage.cpp index 21517809..386446da 100644 --- a/Amalgam/src/Hooks/CHLClient_DispatchUserMessage.cpp +++ b/Amalgam/src/Hooks/CHLClient_DispatchUserMessage.cpp @@ -97,7 +97,8 @@ MAKE_HOOK(CHLClient_DispatchUserMessage, U::Memory.GetVirtual(I::Client, 36), bo } #endif - if (Vars::Misc::Automation::AntiAutobalance.Value && FNV1A::Hash32(sMsg.c_str()) == FNV1A::Hash32Const("#TF_Autobalance_TeamChangePending")) + if (Vars::Misc::Automation::AntiAutobalance.Value + && FNV1A::Hash32(sMsg.c_str()) == FNV1A::Hash32Const("#TF_Autobalance_TeamChangePending") && !I::EngineClient->IsPlayingDemo()) I::EngineClient->ClientCmd_Unrestricted("retry"); } break;