1
0
KF2-Dev-Scripts/WebAdmin/Classes/TeamChatProxy.uc

30 lines
637 B
Ucode
Raw Normal View History

2020-12-13 15:01:13 +00:00
/**
* Provides a proxy for team chat
*
* Copyright 2008 Epic Games, Inc. All Rights Reserved
*
* @author Michiel 'elmuerte' Hendriks
*/
class TeamChatProxy extends MessagingSpectator;
reliable client event TeamMessage( PlayerReplicationInfo PRI, coerce string S, name Type, optional float MsgLifeTime )
{
local delegate<ReceiveMessage> rm;
if (type != 'TeamSay') return;
foreach receivers(rm)
{
rm(pri, s, type);
}
}
function InitPlayerReplicationInfo()
{
super.InitPlayerReplicationInfo();
PlayerReplicationInfo.PlayerName = "<<TeamChatProxy>>";
}
defaultProperties
{
bKeepAlive=true
}