From cc56169ff92a0512007d08178dca18ac5f29227e Mon Sep 17 00:00:00 2001 From: jenz Date: Sun, 17 Sep 2023 19:33:58 +0200 Subject: [PATCH] removed non afk requirement when counting active players --- discord_verificiation/scripting/unloze_player_time.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index b771efe5..9d5bb1df 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -157,7 +157,7 @@ public int GetAveragePlayerActiveTimeServer() { //checking player count before deciding if including or excluding spectators from actual average //the purpose of this is me (jenz) not boosting the hour average insanely when the server is very empty. (i often sit spec without playing and that ruins the generated average when low population because the count gets way too high due to me. But if i were actually playing it would instead be fine) - if (IsValidClient(i) && !IsFakeClient(i) && !IsClientSourceTV(i) && !is_bot_player[i] && PM_IsPlayerSteam(i) && GetClientIdleTime(i) < g_iPlayerAFKTime + if (IsValidClient(i) && !IsFakeClient(i) && !IsClientSourceTV(i) && !is_bot_player[i] && PM_IsPlayerSteam(i) && (GetClientTeam(i) == CS_TEAM_T || GetClientTeam(i) == CS_TEAM_CT)) { active_player_count++; @@ -167,7 +167,7 @@ public int GetAveragePlayerActiveTimeServer() { if (IsValidClient(i) && !IsFakeClient(i) && !IsClientSourceTV(i) && !is_bot_player[i] && PM_IsPlayerSteam(i) && GetClientIdleTime(i) < g_iPlayerAFKTime) { - if (active_player_count <= g_iPlayerCount_excludeSpec && GetClientTeam(i) != CS_TEAM_T && GetClientTeam(i) != CS_TEAM_CT) + if (active_player_count < g_iPlayerCount_excludeSpec && GetClientTeam(i) != CS_TEAM_T && GetClientTeam(i) != CS_TEAM_CT) { continue; }