@@ -691,6 +691,26 @@ bool CScoreboard::RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart,
691691 {
692692 TextRender ()->TextColor (color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClAuthedPlayerColor )));
693693 }
694+ // PulseStuff===========
695+ if (ClientData.m_AuthLevel )
696+ {
697+ ColorRGBA Color = color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClAuthedPlayerColor ));
698+ TextRender ()->TextColor (Color);
699+ }
700+ else if (ClientData.m_Friend )
701+ {
702+ ColorRGBA Color = color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClFriendColor ));
703+ TextRender ()->TextColor (Color);
704+ }
705+
706+ TextRender ()->SetCursor (&Cursor, NameOffset, Row.y + (Row.h - FontSize) / 2 .f , FontSize, TEXTFLAG_RENDER | TEXTFLAG_ELLIPSIS_AT_END);
707+ if (ClientData.m_Foe )
708+ {
709+ ColorRGBA Color = color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClFoeColor ));
710+ TextRender ()->TextColor (Color);
711+ }
712+
713+
694714 if (g_Config.m_ClShowIds )
695715 {
696716 char aClientId[16 ];
@@ -709,14 +729,31 @@ bool CScoreboard::RenderScoreboard(CUIRect Scoreboard, int Team, int CountStart,
709729
710730 // clan
711731 {
712- if (GameClient ()->m_aLocalIds [g_Config.m_ClDummy ] >= 0 && str_comp (ClientData.m_aClan , GameClient ()->m_aClients [GameClient ()->m_aLocalIds [g_Config.m_ClDummy ]].m_aClan ) == 0 )
732+ // clan
733+
734+ if (str_comp (ClientData.m_aClan , GameClient ()->m_aClients [GameClient ()->m_aLocalIds [g_Config.m_ClDummy ]].m_aClan ) == 0 )
713735 {
714- TextRender ()->TextColor (color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClSameClanColor )));
736+ ColorRGBA Color = color_cast<ColorRGBA>(ColorHSLA (g_Config.m_ClSameClanColor ));
737+ TextRender ()->TextColor (Color);
738+
739+ std::string SpecialClan = " Inner peace" ;
740+ if (ClientData.m_aClan == SpecialClan)
741+ {
742+ float Time = LocalTime ();
743+ float PulseSpeed = 0 .2f ;
744+ float PulseIntensity = 0 .5f ;
745+
746+ float Hue = fmod (Time * PulseSpeed, 1 .0f );
747+ float Saturation = 0 .8f + 0 .2f * sinf (Time * PulseSpeed * 2 .0f );
748+ float Value = 0 .8f + 0 .2f * sinf (Time * PulseSpeed * 1 .5f );
749+
750+ ColorRGBA Special = color_cast<ColorRGBA>(ColorHSVA (Hue, Saturation, Value));
751+ TextRender ()->TextColor (Special);
752+ }
715753 }
716754 else
717- {
718- TextRender ()->TextColor (TextColor);
719- }
755+ TextRender ()->TextColor (1 .0f , 1 .0f , 1 .0f , 1 .0f );
756+
720757 CTextCursor Cursor;
721758 TextRender ()->SetCursor (&Cursor, ClanOffset + (ClanLength - minimum (TextRender ()->TextWidth (FontSize, ClientData.m_aClan ), ClanLength)) / 2 .0f , Row.y + (Row.h - FontSize) / 2 .0f , FontSize, TEXTFLAG_RENDER | TEXTFLAG_ELLIPSIS_AT_END);
722759 Cursor.m_LineWidth = ClanLength;
0 commit comments