Server side hint/globalchat fix (REsec)

maca134

Well-Known Member
Here is a fix to allow you to do hint/globalchat/titleCut on server side. This should fix death messages and allow you to show hint's, etc on client side.

Disclamer: This has only been tested on Epoch but it uses the same REsec.sqf which prevent all but titletext from being RE'ed

It allows you to specify either all players or a single player. (globalchat can only be sent to a single user)

Here is the script: https://dl.dropboxusercontent.com/u/135243/dayz_epoch/remote_messages.sqf

To install open init.sqf, add
Code:
_nil = [] execVM "custom\remote_messages.sqf";

To

Code:
if (!isDedicated) then {
//Conduct map operations
0 fadeSound 0;
waitUntil {!isNil "dayz_loadScreenMsg"};
dayz_loadScreenMsg = (localize "STR_AUTHENTICATING");
....
_nil = [] execVM "custom\remote_messages.sqf";
};

Here are the example uses (server files):

Code:
customRemoteMessage = ["globalChat", "say something in globalChat", _unit];
publicVariable "customRemoteMessage";
 
customRemoteMessage = ["titleCut", "say something in titleCut", _unit];
publicVariable "customRemoteMessage";
 
customRemoteMessage = ["hint", "say something in hint", _unit];
publicVariable "customRemoteMessage";
 
customRemoteMessage = ["titleCut", "say something in titleCut"];
publicVariable "customRemoteMessage";
 
customRemoteMessage = ["hint", "say something in hint"];
publicVariable "customRemoteMessage";
 
customRemoteMessage = ["titleText", "say something in hint"];
publicVariable "customRemoteMessage";
 
customRemoteMessage = ["titleText", "say something in hint", _unit];
publicVariable "customRemoteMessage";

This should fix death messages too (at least it works on Epoch)
 
Back
Top