HL2DM Mod Chat Color

From Valve Developer Community
Jump to: navigation, search
Wikipedia - Letter.png
This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these template messages)
Dead End - Icon.png
This article has no Wikipedia icon links to other VDC articles. Please help improve this article by adding links Wikipedia icon that are relevant to the context within the existing text.
January 2024

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 in the function

"return g_ColorYellow;"

with

"return g_ColorWhite;"

Compile the Solution, And You should be good to go!

Wikipedia - Letter.png
This article has not been added to any content Wikipedia icon categories. Please help out by Wikipedia icon adding categories.
January 2024