only counting all cvars in real players now
This commit is contained in:
parent
ef15dfc71c
commit
2b9224f11a
@ -947,7 +947,16 @@ public Action CS_OnTerminateRound(float &delay, CSRoundEndReason &reason)
|
|||||||
int timeleft;
|
int timeleft;
|
||||||
GetMapTimeLeft(timeleft);
|
GetMapTimeLeft(timeleft);
|
||||||
//yeah sure why not just do it on every round end anyways.
|
//yeah sure why not just do it on every round end anyways.
|
||||||
if (GetClientCount(false) > g_iDontCooldownMap && !g_first_map_no_cooldown)
|
|
||||||
|
int NumPlayers = GetClientCount(false);
|
||||||
|
for (int i = 1; i <= MaxClients; i++)
|
||||||
|
{
|
||||||
|
if (IsValidClient(i) && IsFakeClient(i))
|
||||||
|
{
|
||||||
|
NumPlayers--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (NumPlayers > g_iDontCooldownMap && !g_first_map_no_cooldown)
|
||||||
{
|
{
|
||||||
static char map[PLATFORM_MAX_PATH];
|
static char map[PLATFORM_MAX_PATH];
|
||||||
GetCurrentMap(map, PLATFORM_MAX_PATH);
|
GetCurrentMap(map, PLATFORM_MAX_PATH);
|
||||||
@ -3289,6 +3298,14 @@ stock bool InternalAreRestrictionsActive()
|
|||||||
|
|
||||||
// a lot more simplified again so its easier to understand.
|
// a lot more simplified again so its easier to understand.
|
||||||
int NumPlayers = GetClientCount(false);
|
int NumPlayers = GetClientCount(false);
|
||||||
|
|
||||||
|
for (int i = 1; i <= MaxClients; i++)
|
||||||
|
{
|
||||||
|
if (IsValidClient(i) && IsFakeClient(i))
|
||||||
|
{
|
||||||
|
NumPlayers--;
|
||||||
|
}
|
||||||
|
}
|
||||||
if (NumPlayers <= g_iSkipAllRestrictions)
|
if (NumPlayers <= g_iSkipAllRestrictions)
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user