Skip to content

Commit

Permalink
Implement game_round_end and game_round_freeze_end triggers
Browse files Browse the repository at this point in the history
  • Loading branch information
overl4y committed Feb 22, 2024
1 parent 5d2174f commit a1fd386
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions regamedll/dlls/gamerules.h
Original file line number Diff line number Diff line change
Expand Up @@ -907,6 +907,10 @@ inline void CHalfLifeMultiplay::TerminateRound(float tmDelay, int iWinStatus)
m_iRoundWinStatus = iWinStatus;
m_flRestartRoundTime = gpGlobals->time + tmDelay;
m_bRoundTerminating = true;

#ifdef REGAMEDLL_ADD
FireTargets("game_round_end", nullptr, nullptr, USE_TOGGLE, 0.0);
#endif
}

inline float CHalfLifeMultiplay::GetRoundRemainingTimeReal() const
Expand Down
4 changes: 4 additions & 0 deletions regamedll/dlls/multiplay_gamerules.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2852,6 +2852,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 a1fd386

Please sign in to comment.