HL2DM Mod Chat Color

From Valve Developer Community
Revision as of 15:42, 5 January 2024 by WhatDidYouExpect (talk | contribs) (did a fuckup)
Jump to navigation Jump to search

To customize the chat color to white, follow these simple steps within your solution:

Open the "hud_basechat.cpp" file in your project.

Locate the section under "const int kChatFilterVersion = 1;" where color is defined.

Add the following line underneath:

Color g_ColorWhite(255, 255, 255, 255);

Now navigate to the function "Color CBaseHudChat::GetDefaultTextColor(void)" within the same file. Replace the line "return g_ColorYellow;" with "return g_ColorWhite;" in that function. Compile the Solution, And You should be good to go!