2017-10-20 02:00:49 +00:00
|
|
|
class xVoteBroadcast extends BroadcastHandler;
|
|
|
|
|
|
|
|
var BroadcastHandler NextBroadcaster;
|
|
|
|
var xVotingHandler Handler;
|
|
|
|
|
|
|
|
function UpdateSentText()
|
|
|
|
{
|
|
|
|
NextBroadcaster.UpdateSentText();
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
function Broadcast(Actor Sender, coerce string Msg, optional name Type)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
2020-11-28 20:12:58 +00:00
|
|
|
if ((Type=='Say' || Type=='TeamSay') && Left(Msg,1)=="!" && PlayerController(Sender)!=None)
|
2017-10-20 02:00:49 +00:00
|
|
|
Handler.ParseCommand(Mid(Msg,1),PlayerController(Sender));
|
|
|
|
NextBroadcaster.Broadcast(Sender,Msg,Type);
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
function BroadcastTeam(Controller Sender, coerce string Msg, optional name Type)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
2020-11-28 20:12:58 +00:00
|
|
|
if ((Type=='Say' || Type=='TeamSay') && Left(Msg,1)=="!" && PlayerController(Sender)!=None)
|
2017-10-20 02:00:49 +00:00
|
|
|
Handler.ParseCommand(Mid(Msg,1),PlayerController(Sender));
|
|
|
|
NextBroadcaster.BroadcastTeam(Sender,Msg,Type);
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
function AllowBroadcastLocalized(actor Sender, class<LocalMessage> Message, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
NextBroadcaster.AllowBroadcastLocalized(Sender,Message,Switch,RelatedPRI_1,RelatedPRI_2,OptionalObject);
|
|
|
|
}
|
|
|
|
|
2020-11-28 20:04:55 +00:00
|
|
|
event AllowBroadcastLocalizedTeam(int TeamIndex, actor Sender, class<LocalMessage> Message, optional int Switch, optional PlayerReplicationInfo RelatedPRI_1, optional PlayerReplicationInfo RelatedPRI_2, optional Object OptionalObject)
|
2017-10-20 02:00:49 +00:00
|
|
|
{
|
|
|
|
NextBroadcaster.AllowBroadcastLocalizedTeam(TeamIndex,Sender,Message,Switch,RelatedPRI_1,RelatedPRI_2,OptionalObject);
|
|
|
|
}
|
|
|
|
|
|
|
|
defaultproperties
|
|
|
|
{
|
2023-05-14 02:49:12 +00:00
|
|
|
|
2017-10-20 02:00:49 +00:00
|
|
|
}
|