mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-26 14:45:38 +03:00
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:
parent
2a0e54bbf7
commit
8cd9086937
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user