Commit 24cd5328 authored by Kegan's avatar Kegan

Changes to global chat

parent 90db6144
......@@ -73,7 +73,6 @@ class BattleRoyale extends BattleRoyaleBase
{
Param2< string , string> data;
if( !ctx.Read( data ) ) return;
if( !ctx.Read( data ) ) return;
if(type == CallType.Client)
{
......
modded class Chat
{
override void Add(ChatMessageEventParams params)
{
BRLOG("Chat message received");
super.Add(params);
}
//custom BR method for adding text to chat
void Add(string text)
{
BRLOG("Add #1: " + text);
ChatMessageEventParams msgParams = new ChatMessageEventParams(0,text,"","");
Add(msgParams);
}
void Add(string name, string text)
{
BRLOG("Add #2: " + name + ": " + text);
ChatMessageEventParams msgParams = new ChatMessageEventParams(0,name,text,"");
Add(msgParams);
}
......
......@@ -46,15 +46,11 @@ class BrChatMenu extends ChatInputMenu
{
if(BrChatMenu.m_current_channel == 1)
{
//Global Chat RPC
BRLOG("GLOBAL CHAT");
ref Param2<string,string> value_strings = new Param2<string,string>(text,"");
ref Param2<string,string> value_strings = new Param2<string,string>(text,"not_used");
GetRPCManager().SendRPC( RPC_DAYZBR_NAMESPACE, "GlobalChat", value_strings, false, null, GetGame().GetPlayer() );
}
else
{
//Local chat
BRLOG("LOCAL CHAT");
GetGame().ChatPlayer(0, text);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment