@@ -22,13 +22,14 @@ new g_iFwRoundEnd;
2222new g_iFwRoundExpired;
2323new g_iFwRoundRestart;
2424new g_iFwRoundTimerTick;
25+ new g_iFwCheckWinConditions;
2526
2627new Array: g_irgCheckWinConditionHooks;
2728
2829new g_pCvarRoundEndDelay;
2930
3031public plugin_init () {
31- register_plugin (" [API] Rounds" , " 2.0 .0" , " Hedgehog Fog" );
32+ register_plugin (" [API] Rounds" , " 2.1 .0" , " Hedgehog Fog" );
3233
3334 register_event (" HLTV" , " Event_NewRound" , " a" , " 1=0" , " 2=0" );
3435 RegisterHookChain (RG_CSGameRules_RestartRound, " HC_RestartRound" , .post = 0 );
@@ -42,6 +43,7 @@ public plugin_init() {
4243 g_iFwRoundExpired = CreateMultiForward (" Round_Fw_RoundExpired" , ET_IGNORE);
4344 g_iFwRoundRestart = CreateMultiForward (" Round_Fw_RoundRestart" , ET_IGNORE);
4445 g_iFwRoundTimerTick = CreateMultiForward (" Round_Fw_RoundTimerTick" , ET_IGNORE);
46+ g_iFwCheckWinConditions = CreateMultiForward (" Round_Fw_CheckWinCondition" , ET_STOP);
4547
4648 g_irgCheckWinConditionHooks = ArrayCreate (Hook);
4749
@@ -140,6 +142,12 @@ public HC_CheckWinConditions() {
140142 }
141143 }
142144
145+ static iReturn;
146+ ExecuteForward (g_iFwCheckWinConditions, iReturn);
147+ if (iReturn != PLUGIN_CONTINUE) {
148+ return HC_SUPERCEDE;
149+ }
150+
143151 return HC_CONTINUE;
144152}
145153
0 commit comments