mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-17 09:10:27 +03:00
Use PVEH instead of MPF for death messages
This way no exception needs to be added in REsec for rSpawn and dayz_rollingMessages can be used instead of rTitleText.
This commit is contained in:
@@ -17,14 +17,7 @@ private["_ofn","_nfn"];
|
||||
}foreach TRACED_LIB;
|
||||
{
|
||||
_ofn=format["r%1code",_x];
|
||||
_nfn=format["r%1code%2",_x,round(random(100000))];
|
||||
//rSpawn is needed on clients only if one of these death message types is enabled
|
||||
if (_x == "spawn" && {!isDedicated} && {DZE_DeathMsgDynamicText or (toLower DZE_DeathMsgChat != "none")}) then {
|
||||
// treat as traced on clients
|
||||
call compile format["%1=%2;%2={diag_log(""Allowed RE on clients for death message %2 args:""+str(_this));_this call %1};",_nfn,_ofn];
|
||||
} else {
|
||||
call compile format["%1={diag_log(""WARNING illegal RE %1 with args:""+str(_this));};",_ofn];
|
||||
};
|
||||
call compile format["%1={diag_log(""WARNING illegal RE %1 with args:""+str(_this));};",_ofn];
|
||||
}foreach REMOVED_LIB;
|
||||
|
||||
#ifndef SKIP_REMOTEEXECUTIONSERVER
|
||||
|
||||
Reference in New Issue
Block a user