From b32676fbac4cdea310853e2451cb9c09c7658abc Mon Sep 17 00:00:00 2001 From: David Vogel Date: Mon, 16 Jul 2018 18:21:24 +0200 Subject: [PATCH] Refinement of the todo --- lua/autorun/server/pointsaving_mapstats.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lua/autorun/server/pointsaving_mapstats.lua b/lua/autorun/server/pointsaving_mapstats.lua index 66c2ae6..e4fbc14 100644 --- a/lua/autorun/server/pointsaving_mapstats.lua +++ b/lua/autorun/server/pointsaving_mapstats.lua @@ -64,6 +64,14 @@ local function postStatistics(mapParams, timesPlayed, freqMult, zombiePercentCal end -- TODO: When round is lost, take away points from human players that were there at the beginning of the game (All Human players that were there at the end of round 1, when late joiners join as zombies) +--[[ + Cases: + - When round is lost: + - Only players from the end of Wave 1 (online or disconnected) get the 85% reduction of points. But online players get some additional points + - When round is won: + - All humans get points + jackpot + - Zombies get a few points (but a reduction of 85% if they were there since the end of wave 1) +]]-- hook.Add("PostEndRound", "pointsave_givedapoints", function(winner) timer.Destroy("pointsave_zombieintervalcounter")