37 lines
1.4 KiB
Ucode
Raw Normal View History

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