Skip to content

Commit

Permalink
Implement game_round_end and game_round_freeze_end triggers (#949)
Browse files Browse the repository at this point in the history
* Implement `game_round_end` and `game_round_freeze_end` triggers
  • Loading branch information
overl4y authored May 8, 2024
1 parent 2a0e54b commit 8cd9086
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 8cd9086

Please sign in to comment.