Skip to content

Commit

Permalink
untested In Start/End zone speed removal if !hud removed speed...
Browse files Browse the repository at this point in the history
  • Loading branch information
rtldg committed Aug 8, 2023
1 parent 60c4f39 commit f6fdd7b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/shavit-hud.sp
Original file line number Diff line number Diff line change
Expand Up @@ -1313,11 +1313,11 @@ int AddHUDToBuffer_Source2013(int client, huddata_t data, char[] buffer, int max

if(data.iZoneHUD == ZoneHUD_Start)
{
FormatEx(sLine, 128, "%T ", "HudInStartZone", client, data.iSpeed);
FormatEx(sLine, 128, "%T ", (gI_HUD2Settings[client] & HUD2_SPEED) ? "HudInStartZoneNoSpeed" : "HudInStartZone", client, data.iSpeed);
}
else
{
FormatEx(sLine, 128, "%T ", "HudInEndZone", client, data.iSpeed);
FormatEx(sLine, 128, "%T ", (gI_HUD2Settings[client] & HUD2_SPEED) ? "HudInEndZoneNoSpeed" : "HudInEndZone", client, data.iSpeed);
}

AddHUDLine(buffer, maxlen, sLine, iLines);
Expand Down
10 changes: 10 additions & 0 deletions addons/sourcemod/translations/shavit-hud.phrases.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
"#format" "{1:d}"
"en" "In Start Zone\n\n{1}"
}
"HudInStartZoneNoSpeed"
{
"#format" "{1:d}"
"en" "In Start Zone"
}
"HudInStartZoneCSGO"
{
"#format" "{1:d}"
Expand All @@ -30,6 +35,11 @@
"#format" "{1:d}"
"en" "In End Zone\n\n{1}"
}
"HudInEndZoneNoSpeed"
{
"#format" "{1:d}"
"en" "In End Zone"
}
"HudInEndZoneCSGO"
{
"#format" "{1:d}"
Expand Down

0 comments on commit f6fdd7b

Please sign in to comment.