File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -331,11 +331,12 @@ def server_points(server):
331
331
points = server ["clients" ] / 4
332
332
333
333
# Penalize highly loaded servers to improve player distribution.
334
- # Note: This doesn't just make more than 16 players stop
334
+ # Note: This doesn't just make more than 90% of max players stop
335
335
# increasing your points, it can actually reduce your points
336
336
# if you have guests.
337
- if server ["clients" ] > 16 :
338
- points -= server ["clients" ] - 16
337
+ cap = int (server ["clients_max" ] * 0.90 )
338
+ if server ["clients" ] > cap :
339
+ points -= server ["clients" ] - cap
339
340
340
341
# 1 per month of age, limited to 8
341
342
points += min (8 , server ["game_time" ] / (60 * 60 * 24 * 30 ))
@@ -344,7 +345,7 @@ def server_points(server):
344
345
points += min (4 , server ["pop_v" ] / 2 )
345
346
346
347
# -8 for unrealistic max_clients
347
- if server ["clients_max" ] >= 128 :
348
+ if server ["clients_max" ] > 200 :
348
349
points -= 8
349
350
350
351
# -8 per second of ping over 0.4s
You can’t perform that action at this time.
0 commit comments