From 1e1241cf05e36edfd0b57ca8958665175ff61abd Mon Sep 17 00:00:00 2001 From: jenz Date: Wed, 28 Jan 2026 19:30:42 +0100 Subject: [PATCH] reintroducing the 5k hour limit but placing it only in the function for calculating the average hour this time around. this is to prevent the average hour count from being skewed by players with a too high playercount. 5000 should be considered good enough hopefully --- discord_verificiation/scripting/unloze_player_time.sp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/discord_verificiation/scripting/unloze_player_time.sp b/discord_verificiation/scripting/unloze_player_time.sp index 9eaaca5..3350268 100644 --- a/discord_verificiation/scripting/unloze_player_time.sp +++ b/discord_verificiation/scripting/unloze_player_time.sp @@ -161,7 +161,12 @@ public int GetAveragePlayerActiveTimeServer() { continue; } - total_hours += g_iPlayerTimeServer[i]; + + //re-introducing the hour capacity but putting it here is better than putting it at the mysql query + //at the time of making this change its only affeting me jenz and nobody else. this is meant to prevent + //the average hour from being too skewed by high playtime people. + int added_hours = g_iPlayerTimeServer[i] > 5000 ? 5000 : g_iPlayerTimeServer[i]; + total_hours += added_hours; total_players++; } }