mirror of
https://github.com/rei-2/Amalgam
synced 2026-10-10 04:43:09 +08:00
don't attempt to retry to avoid autobalance in demos
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user