We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bbd0482 commit a1af3b7Copy full SHA for a1af3b7
mods/ctf/ctf_modebase/bounty_algo.lua
@@ -6,13 +6,13 @@ function ctf_modebase.bounty_algo.kd.get_next_bounty(team_members)
6
local recent = ctf_modebase:get_current_mode().recent_rankings.players()
7
8
for _, pname in ipairs(team_members) do
9
- local kd = 0.1
10
if recent[pname] then
11
- kd = math.max(kd, (recent[pname].kills or 0) / (recent[pname].deaths or 1))
+ local kd = (recent[pname].kills or 0) / (recent[pname].deaths or 1)
+ if kd >= 0.8 then
12
+ table.insert(kd_list, kd)
13
+ sum = sum + kd
14
+ end
15
end
-
- table.insert(kd_list, kd)
- sum = sum + kd
16
17
18
local random = math.random() * sum
0 commit comments