From d17b249c4f1d1b46850e631b0689526509487a7a Mon Sep 17 00:00:00 2001 From: Beu Date: Thu, 7 Sep 2023 17:24:00 +0200 Subject: [PATCH] add PB and WR --- TM_ClimbTheMap.Script.txt | 195 ++++++++++++++++++++++++++------------ 1 file changed, 135 insertions(+), 60 deletions(-) diff --git a/TM_ClimbTheMap.Script.txt b/TM_ClimbTheMap.Script.txt index f5b8e9b..4bc4e35 100644 --- a/TM_ClimbTheMap.Script.txt +++ b/TM_ClimbTheMap.Script.txt @@ -147,6 +147,9 @@ CarRank::Reset(); ***Match_InitMap*** *** declare Integer Map_NextUpdate; +declare netwrite Integer Net_ClimbTheMap_AltitudeOfWR for Teams[0]; +declare netwrite Text Net_ClimbTheMap_NamefWR for Teams[0]; + declare netwrite Integer[Text] Net_ClimbTheMap_AltitudePerName for Teams[0]; declare netwrite Integer Net_ClimbTheMap_AltitudePerName_Update for Teams[0]; @@ -225,7 +228,20 @@ if (Now > Map_NextUpdate) { if (Player.User == Null) continue; if (Player.SpawnStatus == CSmPlayer::ESpawnStatus::NotSpawned) continue; - AltitudePerName[Player.User.Name] = ML::FloorInteger(Player.Position.Y); + declare Integer Altitude = ML::FloorInteger(Player.Position.Y); + + if (Net_ClimbTheMap_AltitudeOfWR < Altitude) { + Net_ClimbTheMap_AltitudeOfWR = Altitude; + Net_ClimbTheMap_NamefWR = Player.User.Name; + } + + declare netwrite Integer Net_ClimbTheMap_AltitudeOfPB for Player; + + if (Net_ClimbTheMap_AltitudeOfPB < Altitude) { + Net_ClimbTheMap_AltitudeOfPB = Altitude; + } + + AltitudePerName[Player.User.Name] = Altitude; } Net_ClimbTheMap_AltitudePerName = AltitudePerName; Net_ClimbTheMap_AltitudePerName_Update += 1; @@ -280,7 +296,7 @@ Void SetMl() { declare Text FrameInstances; for (I, 0, 100) { - FrameInstances ^= """"""; + FrameInstances ^= """