From cb91330927770da94c6082738d51c2e28470a96b Mon Sep 17 00:00:00 2001 From: strafe Date: Sat, 9 Mar 2019 12:42:55 +0000 Subject: [PATCH] Replace tier with track name in non-main start zones and indent text --- addons/sourcemod/scripting/shavit-hud.sp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/addons/sourcemod/scripting/shavit-hud.sp b/addons/sourcemod/scripting/shavit-hud.sp index 0a11240f3..2dd493f06 100644 --- a/addons/sourcemod/scripting/shavit-hud.sp +++ b/addons/sourcemod/scripting/shavit-hud.sp @@ -1173,7 +1173,17 @@ int AddHUDToBuffer_CSGO(int client, huddata_t data, char[] buffer, int maxlen) { if(gB_Rankings && (gI_HUD2Settings[client] & HUD2_MAPTIER) == 0) { - FormatEx(sZoneHUD, 32, "%T\n\n", "HudZoneTier", client, Shavit_GetMapTier(gS_Map)); + if(data.iTrack == Track_Main) + { + FormatEx(sZoneHUD, 32, "%T", "HudZoneTier", client, Shavit_GetMapTier(gS_Map)); + } + + else + { + GetTrackName(client, data.iTrack, sZoneHUD, 32); + } + + Format(sZoneHUD, 32, "\t\t%s\n\n", sZoneHUD); AddHUDLine(buffer, maxlen, sZoneHUD, iLines); iLines++; }