Made !hud less confusing.

This commit is contained in:
shavit 2019-02-01 23:08:25 +02:00
parent daa291f8ba
commit 055eb29509
2 changed files with 4 additions and 4 deletions

View File

@ -155,7 +155,8 @@ public void OnPluginStart()
else else
{ {
gI_NameLength = 14; // 14 because long names will make it look spammy in CS:GO due to the font // long names make it look bad in CS:GO due to the font size
gI_NameLength = 14;
} }
if(gEV_Type == Engine_TF2) if(gEV_Type == Engine_TF2)
@ -576,12 +577,12 @@ public int MenuHandler_HUD(Menu menu, MenuAction action, int param1, int param2)
if(type == 1) if(type == 1)
{ {
Format(sDisplay, 64, "[%c] %s", ((gI_HUDSettings[param1] & StringToInt(sInfo)) > 0)? '+':' ', sDisplay); Format(sDisplay, 64, "[%s] %s", ((gI_HUDSettings[param1] & StringToInt(sInfo)) > 0)? "":"", sDisplay);
} }
else else
{ {
Format(sDisplay, 64, "[%c] %s", ((gI_HUD2Settings[param1] & StringToInt(sInfo)) > 0)? '-':' ', sDisplay); Format(sDisplay, 64, "[%s] %s", ((gI_HUD2Settings[param1] & StringToInt(sInfo)) == 0)? "":"", sDisplay);
} }
return RedrawMenuItem(sDisplay); return RedrawMenuItem(sDisplay);

View File

@ -577,7 +577,6 @@ void LoadZoneSettings()
gI_HaloSprite = PrecacheModel("sprites/glow01.vmt", true); gI_HaloSprite = PrecacheModel("sprites/glow01.vmt", true);
} }
} }
} }
public void OnMapStart() public void OnMapStart()