• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

[Error] Color codes from mutators end up on chat screen

Ducky

Super Moderator
May 22, 2011
6,358
237
Netherlands
If a mutator uses the color definition code for his messages, then those codes will end up on the chat screen. The message will be displayed in the correct color, but it looks like:

{Color=0,255,50,1.1000}This message should be in green

The root of this bug can be found in ROHUDColoredChat.uc at line 139.
Code:
function SetColorAndSize(PlayerReplicationInfo PRI, coerce string MessageString, name MessageType, int type, out TextAttr attr)

Should be:
Code:
function SetColorAndSize(PlayerReplicationInfo PRI, [COLOR=Cyan]out[/COLOR] coerce string  MessageString, name MessageType, int type, out TextAttr attr)