KF2-YetAnotherScoreboard/Src/KFClassicHUD/Classes/KF1HUD_ChatBoxWidget.uc
2020-01-10 07:14:11 -06: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
{
}