Implement game_round_end and game_round_freeze_end triggers (#949)

* Implement `game_round_end` and `game_round_freeze_end` triggers
This commit is contained in:
肯定龙 2024-05-08 13:59:27 +00:00 committed by GitHub
parent 2a0e54bbf7
commit 8cd9086937
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -267,6 +267,10 @@ void CHalfLifeMultiplay::EndRoundMessage(const char *sentence, ScenarioEventEndR
} }
UTIL_LogPrintf("World triggered \"Round_End\"\n"); UTIL_LogPrintf("World triggered \"Round_End\"\n");
#ifdef REGAMEDLL_ADD
FireTargets("game_round_end", nullptr, nullptr, USE_TOGGLE, 0.0);
#endif
} }
void CHalfLifeMultiplay::ReadMultiplayCvars() void CHalfLifeMultiplay::ReadMultiplayCvars()
@ -2852,6 +2856,10 @@ void EXT_FUNC CHalfLifeMultiplay::OnRoundFreezeEnd()
{ {
TheCareerTasks->HandleEvent(EVENT_ROUND_START); TheCareerTasks->HandleEvent(EVENT_ROUND_START);
} }
#ifdef REGAMEDLL_ADD
FireTargets("game_round_freeze_end", nullptr, nullptr, USE_TOGGLE, 0.0);
#endif
} }
void CHalfLifeMultiplay::CheckFreezePeriodExpired() void CHalfLifeMultiplay::CheckFreezePeriodExpired()