mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-27 07:05:38 +03:00
Implement game_round_start
& game_entity_restart
triggers (#754)
* Added `game_entity_restart` for entities and `game_round_start` for round start Co-authored-by: Sergey Shorokhov <wopox1337@ya.ru>
This commit is contained in:
parent
9a001cabd1
commit
15e7d4a11e
@ -2035,6 +2035,10 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(RestartRound)()
|
||||
#endif
|
||||
|
||||
pPlayer->RoundRespawn();
|
||||
|
||||
#ifdef REGAMEDLL_ADD
|
||||
FireTargets("game_entity_restart", pPlayer, nullptr, USE_TOGGLE, 0.0);
|
||||
#endif
|
||||
}
|
||||
|
||||
// Gooseman : The following code fixes the HUD icon bug
|
||||
@ -2073,6 +2077,10 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(RestartRound)()
|
||||
m_bTargetBombed = m_bBombDefused = false;
|
||||
m_bLevelInitialized = false;
|
||||
m_bCompleteReset = false;
|
||||
|
||||
#ifdef REGAMEDLL_ADD
|
||||
FireTargets("game_round_start", nullptr, nullptr, USE_TOGGLE, 0.0);
|
||||
#endif
|
||||
}
|
||||
|
||||
BOOL CHalfLifeMultiplay::IsThereABomber()
|
||||
|
@ -1497,6 +1497,10 @@ void UTIL_RestartOther(const char *szClassname)
|
||||
while ((pEntity = UTIL_FindEntityByClassname(pEntity, szClassname)))
|
||||
{
|
||||
pEntity->Restart();
|
||||
|
||||
#ifdef REGAMEDLL_ADD
|
||||
FireTargets("game_entity_restart", pEntity, nullptr, USE_TOGGLE, 0.0);
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user