From 36c3656883f92d9c9c27e4cb0f573ff644f945c4 Mon Sep 17 00:00:00 2001 From: bencie Date: Wed, 25 Sep 2024 18:19:45 +0200 Subject: [PATCH] Make cl_show_direction change alpha with cl_show_others_alpha --- src/game/client/components/nameplates.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/client/components/nameplates.cpp b/src/game/client/components/nameplates.cpp index b5ec8a65d..59366afe5 100644 --- a/src/game/client/components/nameplates.cpp +++ b/src/game/client/components/nameplates.cpp @@ -60,7 +60,10 @@ void CNamePlates::RenderNameplate(vec2 Position, const CNetObj_PlayerInfo *pPlay Jump = Character.m_Cur.m_Jumped & 1; } - Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f); + if(OtherTeam && !ForceAlpha) + Graphics()->SetColor(1.0f, 1.0f, 1.0f, g_Config.m_ClShowOthersAlpha / 100.0f); + else + Graphics()->SetColor(1.0f, 1.0f, 1.0f, 1.0f); const float ShowDirectionImgSize = 22.0f; YOffset -= ShowDirectionImgSize;