ctf_stats: Tweak scoring algorithm a bit (#538)
This commit is contained in:
parent
c908af6ccd
commit
123695cd0e
1 changed files with 8 additions and 8 deletions
|
@ -351,20 +351,20 @@ local function calculateKillReward(victim, killer)
|
||||||
|
|
||||||
-- 30 * K/D ratio, with variable based on player's score
|
-- 30 * K/D ratio, with variable based on player's score
|
||||||
local kdreward = 30 * vmain.kills / (vmain.deaths + 1)
|
local kdreward = 30 * vmain.kills / (vmain.deaths + 1)
|
||||||
local max = vmain.score / 6
|
local max = vmain.score / 5
|
||||||
if kdreward > max then
|
if kdreward > max then
|
||||||
kdreward = max
|
kdreward = max
|
||||||
end
|
end
|
||||||
if kdreward > 80 then
|
if kdreward > 100 then
|
||||||
kdreward = 80
|
kdreward = 100
|
||||||
end
|
end
|
||||||
reward = reward + kdreward
|
reward = reward + kdreward
|
||||||
|
|
||||||
-- Limited to 0 <= X <= 200
|
-- Limited to 5 <= X <= 250
|
||||||
if reward > 200 then
|
if reward > 250 then
|
||||||
reward = 200
|
reward = 250
|
||||||
elseif reward < 14 then
|
elseif reward < 5 then
|
||||||
reward = 14
|
reward = 5
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Half if no good weapons
|
-- Half if no good weapons
|
||||||
|
|
Loading…
Reference in a new issue