From 8cd9086937a2ea8e530cba11f08d86970036765d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=82=AF=E5=AE=9A=E9=BE=99?= <52111952+overl4y@users.noreply.github.com> Date: Wed, 8 May 2024 13:59:27 +0000 Subject: [PATCH] Implement `game_round_end` and `game_round_freeze_end` triggers (#949) * Implement `game_round_end` and `game_round_freeze_end` triggers --- regamedll/dlls/multiplay_gamerules.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/regamedll/dlls/multiplay_gamerules.cpp b/regamedll/dlls/multiplay_gamerules.cpp index e0d27dfb2..dc7bde074 100644 --- a/regamedll/dlls/multiplay_gamerules.cpp +++ b/regamedll/dlls/multiplay_gamerules.cpp @@ -267,6 +267,10 @@ void CHalfLifeMultiplay::EndRoundMessage(const char *sentence, ScenarioEventEndR } UTIL_LogPrintf("World triggered \"Round_End\"\n"); + +#ifdef REGAMEDLL_ADD + FireTargets("game_round_end", nullptr, nullptr, USE_TOGGLE, 0.0); +#endif } void CHalfLifeMultiplay::ReadMultiplayCvars() @@ -2852,6 +2856,10 @@ void EXT_FUNC CHalfLifeMultiplay::OnRoundFreezeEnd() { TheCareerTasks->HandleEvent(EVENT_ROUND_START); } + +#ifdef REGAMEDLL_ADD + FireTargets("game_round_freeze_end", nullptr, nullptr, USE_TOGGLE, 0.0); +#endif } void CHalfLifeMultiplay::CheckFreezePeriodExpired()