1
0
KF2-Dev-Scripts/WebAdmin/Classes/TeamChatProxy.uc
2020-12-13 18:01:13 +03:00

30 lines
637 B
Ucode

/**
* 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
}