mirror of
https://github.com/s1lentq/ReGameDLL_CS.git
synced 2024-12-29 08:05:46 +03:00
parent
721624bf92
commit
09e714e339
@ -902,17 +902,17 @@ void EXT_FUNC PlayerBlind(CBasePlayer *pPlayer, entvars_t *pevInflictor, entvars
|
|||||||
{
|
{
|
||||||
UTIL_ScreenFade(pPlayer, color, fadeTime, fadeHold, alpha, 0);
|
UTIL_ScreenFade(pPlayer, color, fadeTime, fadeHold, alpha, 0);
|
||||||
|
|
||||||
|
if (!fadetoblack.value)
|
||||||
|
{
|
||||||
for (int i = 1; i <= gpGlobals->maxClients; ++i)
|
for (int i = 1; i <= gpGlobals->maxClients; ++i)
|
||||||
{
|
{
|
||||||
CBasePlayer *pObserver = UTIL_PlayerByIndex(i);
|
CBasePlayer *pObserver = UTIL_PlayerByIndex(i);
|
||||||
if (!pObserver || !pObserver->IsObservingPlayer(pPlayer))
|
if (pObserver && pObserver->IsObservingPlayer(pPlayer))
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!fadetoblack.value)
|
|
||||||
{
|
{
|
||||||
UTIL_ScreenFade(pObserver, color, fadeTime, fadeHold, alpha, 0);
|
UTIL_ScreenFade(pObserver, color, fadeTime, fadeHold, alpha, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
pPlayer->Blind(fadeTime * 0.33, fadeHold, fadeTime, alpha);
|
pPlayer->Blind(fadeTime * 0.33, fadeHold, fadeTime, alpha);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user