KF2-YetAnotherScoreboard/ScoreboardExt/Classes/KF1HUD_ChatBoxWidget.uc
2021-05-16 06:26:35 +03:00

14 lines
478 B
Ucode

class KF1HUD_ChatBoxWidget extends KFGFxHUD_ChatBoxWidget;
function AddChatMessage(string NewMessage, string HexVal)
{
Super.AddChatMessage(NewMessage, HexVal);
if( InStr(NewMessage, "<"$class'KFCommon_LocalizedStrings'.default.TeamString$">") != INDEX_NONE || InStr(NewMessage, "<"$class'KFCommon_LocalizedStrings'.default.AllString$">") != INDEX_NONE )
LocalPlayer(GetPC().Player).ViewportClient.ViewportConsole.OutputText(NewMessage);
}
defaultproperties
{
}