diff --git a/src/game/client/components/scoreboard.cpp b/src/game/client/components/scoreboard.cpp index 4234cd586..012d73fb2 100644 --- a/src/game/client/components/scoreboard.cpp +++ b/src/game/client/components/scoreboard.cpp @@ -15,6 +15,7 @@ #include #include #include +#include #include "scoreboard.h" @@ -133,7 +134,10 @@ void CScoreboard::RenderSpectators(float x, float y, float w) TextRender()->TextEx(&Cursor, ", ", 2); if(m_pClient->m_aClients[pInfo->m_ClientID].m_AuthLevel) - TextRender()->TextColor(0.78f, 1.0f, 0.8f, 1.0f); + { + vec4 Color = m_pClient->m_pSkins->GetColorV4(g_Config.m_ClAuthedPlayerColor); + TextRender()->TextColor(Color.r, Color.g, Color.b, Color.a); + } if(g_Config.m_ClShowIDs) { @@ -451,7 +455,10 @@ void CScoreboard::RenderScoreboard(float x, float y, float w, int Team, const ch // name TextRender()->SetCursor(&Cursor, NameOffset, y + (LineHeight - FontSize) / 2.f, FontSize, TEXTFLAG_RENDER|TEXTFLAG_STOP_AT_END); if(m_pClient->m_aClients[pInfo->m_ClientID].m_AuthLevel) - TextRender()->TextColor(0.78f, 1.0f, 0.8f, 1.0f); + { + vec4 Color = m_pClient->m_pSkins->GetColorV4(g_Config.m_ClAuthedPlayerColor); + TextRender()->TextColor(Color.r, Color.g, Color.b, Color.a); + } if(g_Config.m_ClShowIDs) { diff --git a/src/game/variables.h b/src/game/variables.h index 559b91552..fff0b607f 100644 --- a/src/game/variables.h +++ b/src/game/variables.h @@ -19,6 +19,7 @@ MACRO_CONFIG_INT(ClNameplatesClan, cl_nameplates_clan, 0, 0, 1, CFGFLAG_CLIENT|C MACRO_CONFIG_INT(ClNameplatesClanSize, cl_nameplates_clan_size, 30, 0, 100, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Size of the clan plates from 0 to 100%") MACRO_CONFIG_INT(ClNameplatesOwn, cl_nameplates_own, 0, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Show own name plate (useful for demo recording)") MACRO_CONFIG_INT(ClTextEntities, cl_text_entities, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Render textual entity data") +MACRO_CONFIG_INT(ClAuthedPlayerColor, cl_authed_player_color, 5898183, 0, 0xFFFFFF, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Color of name of authenticated player in scoreboard") #if defined(__ANDROID__) MACRO_CONFIG_INT(ClAutoswitchWeapons, cl_autoswitch_weapons, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Auto switch weapon on pickup") MACRO_CONFIG_INT(ClAutoswitchWeaponsOutOfAmmo, cl_autoswitch_weapons_out_of_ammo, 1, 0, 1, CFGFLAG_CLIENT|CFGFLAG_SAVE, "Auto switch weapon when out of ammo")