From 5aaddd2aefa180f02df2fa8a1637100e8496f23a Mon Sep 17 00:00:00 2001 From: LoneWolfHT Date: Wed, 24 Jan 2024 08:50:46 -0800 Subject: [PATCH] Try out new team balance code --- mods/ctf/ctf_modebase/features.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/mods/ctf/ctf_modebase/features.lua b/mods/ctf/ctf_modebase/features.lua index 7294b45797..23640ada58 100644 --- a/mods/ctf/ctf_modebase/features.lua +++ b/mods/ctf/ctf_modebase/features.lua @@ -14,8 +14,13 @@ ctf_core.testing = { avg = actual_kd_diff end return (best_kd.kills + worst_kd.kills >= 30 and best_kd.t == best_players.t) or - (pkd >= math.min(1, kd_diff/2) and avg >= 0.4 and (players_diff <= one_fourth or - (pkd >= 1.5 and players_diff <= one_third))) + ( + pkd >= math.min(1, kd_diff/2) and avg >= 0.4 and + ( + players_diff <= math.min(one_fourth, 3) or + (pkd >= 1.5 and players_diff <= math.min(one_third, 6)) + ) + ) end }