mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2025-04-17 15:02:27 +03:00
Update player's HUD after round restart time expires, not before it
This commit is contained in:
parent
35082b5f26
commit
a4d74392f0
@ -1817,6 +1817,11 @@ void EXT_FUNC CHalfLifeMultiplay::__API_HOOK(RestartRound)()
|
|||||||
if (!UTIL_IsValidPlayer(pPlayer))
|
if (!UTIL_IsValidPlayer(pPlayer))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
#ifdef REGAMEDLL_FIXES
|
||||||
|
if (!pPlayer->IsBot())
|
||||||
|
pPlayer->ForceClientDllUpdate();
|
||||||
|
#endif
|
||||||
|
|
||||||
pPlayer->Reset();
|
pPlayer->Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3246,19 +3251,6 @@ void CHalfLifeMultiplay::CareerRestart()
|
|||||||
}
|
}
|
||||||
|
|
||||||
m_bSkipSpawn = false;
|
m_bSkipSpawn = false;
|
||||||
|
|
||||||
for (int i = 1; i <= gpGlobals->maxClients; i++)
|
|
||||||
{
|
|
||||||
CBasePlayer *pPlayer = UTIL_PlayerByIndex(i);
|
|
||||||
|
|
||||||
if (!UTIL_IsValidPlayer(pPlayer))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!pPlayer->IsBot())
|
|
||||||
{
|
|
||||||
pPlayer->ForceClientDllUpdate();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
BOOL CHalfLifeMultiplay::IsMultiplayer()
|
BOOL CHalfLifeMultiplay::IsMultiplayer()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user