KF2-YetAnotherScoreboard/Src/KFClassicHUD/Classes/KF1HUD_ChatBoxWidget.uc

14 lines
478 B
Ucode
Raw Normal View History

2020-01-10 13:14:11 +00:00
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
{
}