Skip to content

Commit

Permalink
Try out new team balance code
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneWolfHT committed Jan 24, 2024
1 parent e3802cc commit 5aaddd2
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions mods/ctf/ctf_modebase/features.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 5aaddd2

Please sign in to comment.