Skip to content

Commit 5aaddd2

Browse files
committed
Try out new team balance code
1 parent e3802cc commit 5aaddd2

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

mods/ctf/ctf_modebase/features.lua

+7-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,13 @@ ctf_core.testing = {
1414
avg = actual_kd_diff
1515
end
1616
return (best_kd.kills + worst_kd.kills >= 30 and best_kd.t == best_players.t) or
17-
(pkd >= math.min(1, kd_diff/2) and avg >= 0.4 and (players_diff <= one_fourth or
18-
(pkd >= 1.5 and players_diff <= one_third)))
17+
(
18+
pkd >= math.min(1, kd_diff/2) and avg >= 0.4 and
19+
(
20+
players_diff <= math.min(one_fourth, 3) or
21+
(pkd >= 1.5 and players_diff <= math.min(one_third, 6))
22+
)
23+
)
1924
end
2025
}
2126

0 commit comments

Comments
 (0)