From ab7dd77649cb7e8ace2727fe538364bc49d8fe52 Mon Sep 17 00:00:00 2001 From: beu Date: Sun, 9 Feb 2025 10:49:51 +0100 Subject: [PATCH] fix first eliminated score to be reseted --- TM_MultiLivesKnockout.Script.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TM_MultiLivesKnockout.Script.txt b/TM_MultiLivesKnockout.Script.txt index 418c9b4..e61d1bf 100644 --- a/TM_MultiLivesKnockout.Script.txt +++ b/TM_MultiLivesKnockout.Script.txt @@ -4,7 +4,7 @@ #Extends "Modes/Nadeo/Trackmania/Base/TrackmaniaRoundsBase.Script.txt" #Const CompatibleMapTypes "TrackMania\\TM_Race,TM_Race" -#Const Version "2025-01-30" +#Const Version "2025-02-09" #Const ScriptName "Modes/TM2020-Gamemodes/TM_MultiLivesKnockout.Script.txt" // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ // @@ -509,7 +509,8 @@ if (Round_ForceEndRound || Round_SkipPauseRound || Round_Skipped) { LostLifeAccountIds.add(Score.User.WebServicesUserId); if (!ScoreIsAlive(Score)) { - Scores::SetPlayerMatchPoints(Score, ParticipantsNb - Rank); + // Registered Score must have at least 1 point or a best race time to not be reset at end of the map: https://forum.nadeo.com/viewtopic.php?t=4365 + Scores::SetPlayerMatchPoints(Score, ParticipantsNb + 1 - Rank); EliminatedAccountIds.add(Score.User.WebServicesUserId); EliminatedRanks.add(Rank);