From 9d4bd9221a67eafeea849b1fa94abc551993293b Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Wed, 20 Apr 2016 11:53:30 -0400 Subject: [PATCH] Add exception in REsec for death messages --- CHANGE LOG 1.0.6.txt | 1 - Documents/1.0.6 Variable Name Changes.txt | 2 + SQF/dayz_code/compile/local_spawnObjects.sqf | 40 +++++++++++++++++++ .../compile/local_spawnTraderCities.sqf | 25 ------------ SQF/dayz_code/configVariables.sqf | 1 + SQF/dayz_code/init/compiles.sqf | 2 +- SQF/dayz_code/system/REsec.sqf | 9 ++++- SQF/dayz_code/system/mission/caribou.sqf | 2 +- SQF/dayz_code/system/mission/chernarus11.sqf | 2 +- SQF/dayz_code/system/mission/chernarus17.sqf | 2 +- SQF/dayz_code/system/mission/fapovo.sqf | 2 +- SQF/dayz_code/system/mission/fdf_isle1_a.sqf | 2 +- SQF/dayz_code/system/mission/isladuala.sqf | 2 +- SQF/dayz_code/system/mission/lingor.sqf | 2 +- SQF/dayz_code/system/mission/namalsk.sqf | 2 +- SQF/dayz_code/system/mission/napf.sqf | 2 +- SQF/dayz_code/system/mission/panthera2.sqf | 2 +- .../system/mission/provinggrounds_pmc.sqf | 2 +- SQF/dayz_code/system/mission/sauerland.sqf | 2 +- SQF/dayz_code/system/mission/shapur_baf.sqf | 2 +- .../system/mission/smd_sahrani_a2.sqf | 2 +- SQF/dayz_code/system/mission/takistan.sqf | 2 +- SQF/dayz_code/system/mission/tavi.sqf | 2 +- SQF/dayz_code/system/mission/utes.sqf | 2 +- SQF/dayz_code/system/mission/zargabad.sqf | 2 +- SQF/dayz_server/compile/server_playerDied.sqf | 8 ++-- 26 files changed, 74 insertions(+), 50 deletions(-) create mode 100644 SQF/dayz_code/compile/local_spawnObjects.sqf delete mode 100644 SQF/dayz_code/compile/local_spawnTraderCities.sqf diff --git a/CHANGE LOG 1.0.6.txt b/CHANGE LOG 1.0.6.txt index 038760c0b..cdcb82490 100644 --- a/CHANGE LOG 1.0.6.txt +++ b/CHANGE LOG 1.0.6.txt @@ -73,7 +73,6 @@ [FIXED] DZE_BuildingLimit now counts buildables only instead of all object types. Thanks jOoPs @ebaydayz [FIXED] Reworked death messages. Fixed messages not always showing, undefined errors and wrong distance bug. Added bled out, killed by zombie, etc. MPHit event handler (fnc_plyrHit) is no longer needed. @ebaydayz -[UPDATED] Keyboard eventhandler updated, dayz_spaceInterupt is no longer used [UPDATED] .hpp files updated in dayz_epoch_b CfgLootPos > CfgBuildingPos. @Uro1 [UPDATED] .bat files updated in Config-Examples @Raziel23x [UPDATED] Updated all config.cfg in Config-Examples, Added Default Steam Ports and Updated Layout. @Namindu diff --git a/Documents/1.0.6 Variable Name Changes.txt b/Documents/1.0.6 Variable Name Changes.txt index d01f5a81b..ef2cf8b0f 100644 --- a/Documents/1.0.6 Variable Name Changes.txt +++ b/Documents/1.0.6 Variable Name Changes.txt @@ -3,6 +3,7 @@ - Duplicate functions have been renamed: - dayz_HungerThirst --> dayz_NutritionSystem - dayz_objectUID3 --> dayz_objectUID2 + - DZE_getModelName --> fn_getModelName - fnc_usec_playerBleed --> fnc_usec_playerHandleBlood - object_handleServerKilled --> vehicle_handleServerKilled - object_setFixServer --> fnc_veh_setFixServer @@ -17,6 +18,7 @@ - dayz_fullMoonNights --> dayz_ForcefullmoonNights - dayz_updateObjects --> DayZ_GearedObjects - DZE_CanPickup --> canPickup + - DZE_trees --> dayz_trees - freeTarget --> OpenTarget - PVDZE_serverObjectMonitor --> dayz_serverObjectMonitor diff --git a/SQF/dayz_code/compile/local_spawnObjects.sqf b/SQF/dayz_code/compile/local_spawnObjects.sqf new file mode 100644 index 000000000..f55940bed --- /dev/null +++ b/SQF/dayz_code/compile/local_spawnObjects.sqf @@ -0,0 +1,40 @@ +/* + Spawns objects locally for improved performance. + - Recommend running on every machine including the server, so all units know about the object. + - Recommend running early during initialization, so units spawned on top do not fall through. + - Not recommended for destructible or removable objects. Damage and deleted status are not synced across machines. + - Not recommended for objects with animations (like gates). Anim status is not synced across machines. + + Params: + [ + ["ObjectType1", [position], dir], + ["ObjectType2", [position], dir], + ["ObjectType3", [position], dir] + ] call local_spawnObjects; +*/ + +private ["_fires","_object","_type"]; + +_fires = [ + "Base_Fire_DZ", + "flamable_DZ", + "Land_Camp_Fire_DZ", + "Land_Campfire", + "Land_Campfire_burning", + "Land_Fire", + "Land_Fire_burning", + "Land_Fire_DZ", + "Land_Fire_barrel", + "Land_Fire_barrel_burning", + "Misc_TyreHeap" +]; + +{ + _type = _x select 0; + _object = _type createVehicleLocal (_x select 1); + _object setDir (_x select 2); + _object setPos (_x select 1); + _object allowDamage false; + if !(_type in _fires) then {_object enableSimulation false;}; + _object setVariable ["", true]; // stops global setVariable by sched_townGenerator, checked in player_spawnCheck for loot spawn +} count _this; \ No newline at end of file diff --git a/SQF/dayz_code/compile/local_spawnTraderCities.sqf b/SQF/dayz_code/compile/local_spawnTraderCities.sqf deleted file mode 100644 index ce2472a74..000000000 --- a/SQF/dayz_code/compile/local_spawnTraderCities.sqf +++ /dev/null @@ -1,25 +0,0 @@ -private ["_fires","_object","_type"]; - -_fires = [ - "Base_Fire_DZ", - "flamable_DZ", - "Land_Camp_Fire_DZ", - "Land_Campfire", - "Land_Campfire_burning", - "Land_Fire", - "Land_Fire_burning", - "Land_Fire_DZ", - "Land_Fire_barrel", - "Land_Fire_barrel_burning", - "Misc_TyreHeap" -]; - -{ - _type = _x select 0; - _object = _type createVehicleLocal (_x select 1); - _object setDir (_x select 2); - _object setPos (_x select 1); - _object allowDamage false; - if !(_type in _fires) then {_object enableSimulation false;}; - _object setVariable ["", true]; // stops global setVariable by sched_townGenerator -} count _this; \ No newline at end of file diff --git a/SQF/dayz_code/configVariables.sqf b/SQF/dayz_code/configVariables.sqf index b007c993f..553d20614 100644 --- a/SQF/dayz_code/configVariables.sqf +++ b/SQF/dayz_code/configVariables.sqf @@ -22,6 +22,7 @@ DynamicVehicleFuelHigh = 100; // Max fuel random vehicles can spawn with DZE_AntiWallLimit = 3; // Number of activations before player_antiWall kills player for glitching attempt. Lower is stricter, but may result in false positives. DZE_DamageBeforeMaint = 0.09; // Minimum damage built items must have before they can be maintained +DZE_DeathMsgDynamicText = false; // Display death messages as dynamicText in the top left with weapon icons. DZE_DeathMsgGlobal = false; // Display death messages in global chat DZE_DeathMsgSide = false; // Display death messages in side chat DZE_DeathMsgTitleText = false; // Display death messages as title text diff --git a/SQF/dayz_code/init/compiles.sqf b/SQF/dayz_code/init/compiles.sqf index f5aba9880..3c38399fc 100644 --- a/SQF/dayz_code/init/compiles.sqf +++ b/SQF/dayz_code/init/compiles.sqf @@ -559,7 +559,7 @@ call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\psrnd.sqf"; // EPOCH ADDITIONS local_lockUnlock = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_lockUnlock.sqf"; //When vehicle is local to unit perform locking vehicle local_gutObjectZ = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_gutObjectZ.sqf"; //Generated on the server (or local to unit) when gutting an object -local_spawnTraderCities = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_spawnTraderCities.sqf"; +local_spawnObjects = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\local_spawnObjects.sqf"; FNC_GetPlayerUID = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fnc_getPlayerUID.sqf"; FNC_GetSetPos = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fnc_getSetPos.sqf"; FNC_GetPos = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\fnc_getPos.sqf"; diff --git a/SQF/dayz_code/system/REsec.sqf b/SQF/dayz_code/system/REsec.sqf index 0b4c685c4..97a048be8 100644 --- a/SQF/dayz_code/system/REsec.sqf +++ b/SQF/dayz_code/system/REsec.sqf @@ -17,7 +17,14 @@ private["_ofn","_nfn"]; }foreach TRACED_LIB; { _ofn=format["r%1code",_x]; - call compile format["%1={diag_log(""WARNING illegal RE %1 with args:""+str(_this));};",_ofn]; + _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 DZE_DeathMsgGlobal or DZE_DeathMsgSide}) 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]; + }; }foreach REMOVED_LIB; #ifndef SKIP_REMOTEEXECUTIONSERVER diff --git a/SQF/dayz_code/system/mission/caribou.sqf b/SQF/dayz_code/system/mission/caribou.sqf index 1828234e8..076380cdb 100644 --- a/SQF/dayz_code/system/mission/caribou.sqf +++ b/SQF/dayz_code/system/mission/caribou.sqf @@ -263,4 +263,4 @@ ["Land_Panelak",[3205.56,3115.54,4.57764e-005],22.4148], ["Land_Panelak",[2701.28,2857.08,-0.00298309],2.37132], ["Land_Panelak2",[2833.77,2849.69,-0.0144768],3.58606] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/chernarus11.sqf b/SQF/dayz_code/system/mission/chernarus11.sqf index f91eb8f0b..25690687e 100644 --- a/SQF/dayz_code/system/mission/chernarus11.sqf +++ b/SQF/dayz_code/system/mission/chernarus11.sqf @@ -169,4 +169,4 @@ ["MAP_R2_RockWall",[13881,11792.8,-14.3209],142.299], ["MAP_R2_RockTower",[13827.3,11770.9,-13.6761],0], ["MAP_R2_Rock1",[13817.8,11746.1,-27.2185],68.5491] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/chernarus17.sqf b/SQF/dayz_code/system/mission/chernarus17.sqf index c0dbc93a7..aaf7368af 100644 --- a/SQF/dayz_code/system/mission/chernarus17.sqf +++ b/SQF/dayz_code/system/mission/chernarus17.sqf @@ -315,4 +315,4 @@ ["MAP_R2_RockWall",[13881,11792.8,-14.3209],142.299], ["MAP_R2_RockTower",[13827.3,11770.9,-13.6761],0], ["MAP_R2_Rock1",[13817.8,11746.1,-27.2185],68.5491] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/fapovo.sqf b/SQF/dayz_code/system/mission/fapovo.sqf index 3c3d3ad15..805dbc102 100644 --- a/SQF/dayz_code/system/mission/fapovo.sqf +++ b/SQF/dayz_code/system/mission/fapovo.sqf @@ -169,4 +169,4 @@ ["Land_Fire_barrel",[4353.02,3655.65,0],48.8184], ["Land_Fire_barrel",[3390.93,4098.64,-1.52588e-005],153.856], ["Land_A_Hospital",[3307.93,1509.43,-1.14441e-005],0.916192] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/fdf_isle1_a.sqf b/SQF/dayz_code/system/mission/fdf_isle1_a.sqf index 1cf12806a..c2a31245c 100644 --- a/SQF/dayz_code/system/mission/fdf_isle1_a.sqf +++ b/SQF/dayz_code/system/mission/fdf_isle1_a.sqf @@ -156,4 +156,4 @@ ["Info_Board_EP1",[9761.01,4032.71,-3.52859e-005],57.3271], ["Info_Board_EP1",[13575.6,7499.29,0.000282288],90.123], ["HeliHCivil",[7990.66,10591.1,2.47955e-005],0] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/isladuala.sqf b/SQF/dayz_code/system/mission/isladuala.sqf index 5c3d67e6d..493039495 100644 --- a/SQF/dayz_code/system/mission/isladuala.sqf +++ b/SQF/dayz_code/system/mission/isladuala.sqf @@ -300,4 +300,4 @@ ["MAP_Barbedwire",[8410.45,3359.27,6.77109e-005],342.125], ["ASC_EU_LHSOld",[8410.74,3380.06,6.67572e-006],0], ["ASC_EU_LHSOld",[8418.09,3380.07,4.76837e-006],0] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/lingor.sqf b/SQF/dayz_code/system/mission/lingor.sqf index 4f674df62..5645b4610 100644 --- a/SQF/dayz_code/system/mission/lingor.sqf +++ b/SQF/dayz_code/system/mission/lingor.sqf @@ -243,4 +243,4 @@ ["HeliHEmpty",[9297.45,3854.4,1.33514e-005],0.000364386], ["HeliHCivil",[4210.44,1480.93,0],0], ["Land_HBarrier_large",[4148.3,1479.76,0.0176926],92.8137] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/namalsk.sqf b/SQF/dayz_code/system/mission/namalsk.sqf index 67fe6fd6b..84e979d67 100644 --- a/SQF/dayz_code/system/mission/namalsk.sqf +++ b/SQF/dayz_code/system/mission/namalsk.sqf @@ -114,4 +114,4 @@ ["Land_Fire_barrel_burning",[6294.21,9927.04,0.573409],0], ["FlagCarrierTFKnight_EP1",[6276.49,9401.92,-0.090519],82.954], ["Land_Fire_barrel_burning",[6275.86,9406.17,0],358.888] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/napf.sqf b/SQF/dayz_code/system/mission/napf.sqf index c10ee7a4c..7245f8e0e 100644 --- a/SQF/dayz_code/system/mission/napf.sqf +++ b/SQF/dayz_code/system/mission/napf.sqf @@ -260,4 +260,4 @@ ["Land_HBarrier3",[15473.1,13212.3,-0.00374699],106.213], ["Land_HBarrier3",[15455.8,13214.6,0.00995064],297.611], ["Land_HBarrier3",[15507,13213.2,0.228428],99.1406] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/panthera2.sqf b/SQF/dayz_code/system/mission/panthera2.sqf index 2406567ca..019a91f94 100644 --- a/SQF/dayz_code/system/mission/panthera2.sqf +++ b/SQF/dayz_code/system/mission/panthera2.sqf @@ -115,4 +115,4 @@ ["Land_Fire_barrel",[7223.86,733.89,0.000946999],0.0379978], ["Land_Fire_barrel",[4409.02,1627.98,0.000356674],122.863], ["Land_Fire_barrel",[3794.43,7652.93,3.1340871],0] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/provinggrounds_pmc.sqf b/SQF/dayz_code/system/mission/provinggrounds_pmc.sqf index e335f7452..6fb87aa81 100644 --- a/SQF/dayz_code/system/mission/provinggrounds_pmc.sqf +++ b/SQF/dayz_code/system/mission/provinggrounds_pmc.sqf @@ -290,4 +290,4 @@ ["FlagCarrierOPFOR_EP1",[931.994,1211.14,0.0169449],198.708], ["FlagCarrierOPFOR_EP1",[944.925,1178.76,5.71742],198.708], ["FlagCarrierOPFOR_EP1",[948.911,1174.81,5.66268],198.708] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/sauerland.sqf b/SQF/dayz_code/system/mission/sauerland.sqf index 31269d22d..18d585f3e 100644 --- a/SQF/dayz_code/system/mission/sauerland.sqf +++ b/SQF/dayz_code/system/mission/sauerland.sqf @@ -427,4 +427,4 @@ ["Misc_cargo_cont_net3",[2445.79,3894.76,0.0341797],264.582], ["FoldChair",[2446.56,3898.81,0.000793457],103.739], ["FoldTable",[2444.96,3899.14,0.000640869],267.556] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/shapur_baf.sqf b/SQF/dayz_code/system/mission/shapur_baf.sqf index c8de2dbfc..29c333ab6 100644 --- a/SQF/dayz_code/system/mission/shapur_baf.sqf +++ b/SQF/dayz_code/system/mission/shapur_baf.sqf @@ -61,4 +61,4 @@ ["BMP2Wreck",[472.932,1069.16,0.0105076],54.1738], ["Misc_palletsfoiled_heap",[496.077,1082.61,-0.00848007],62.6169], ["Info_Board_EP1",[505.839,1120,0.00104141],40.2667] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/smd_sahrani_a2.sqf b/SQF/dayz_code/system/mission/smd_sahrani_a2.sqf index f89351bf4..adda6c32e 100644 --- a/SQF/dayz_code/system/mission/smd_sahrani_a2.sqf +++ b/SQF/dayz_code/system/mission/smd_sahrani_a2.sqf @@ -145,4 +145,4 @@ ["Misc_cargo_cont_small2",[13246.9,11188.1,7.62939e-006],88.3989], ["AmmoCrate_NoInteractive_",[13244.1,11192.5,7.62939e-006],0], ["AmmoCrates_NoInteractive_Large",[13247.3,11189.7,-1.90735e-006],0] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/takistan.sqf b/SQF/dayz_code/system/mission/takistan.sqf index 117817a63..216872dec 100644 --- a/SQF/dayz_code/system/mission/takistan.sqf +++ b/SQF/dayz_code/system/mission/takistan.sqf @@ -308,4 +308,4 @@ ["LADAWreck",[10867.4,6319.59,0.00982666],359.859], ["FoldTable",[422.854,5589.3,0.00149536],17.7976], ["Misc_cargo_cont_net1",[428.667,5574.01,0.000213623],323.529] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/tavi.sqf b/SQF/dayz_code/system/mission/tavi.sqf index 43f7fabe4..28e0f5a3a 100644 --- a/SQF/dayz_code/system/mission/tavi.sqf +++ b/SQF/dayz_code/system/mission/tavi.sqf @@ -723,4 +723,4 @@ ["MAP_R2_RockWall",[7440.15,5567.71,-20.5011],112.729], ["MAP_R2_RockWall",[7494.54,5608.71,-20.677],290.173], ["MAP_R2_RockWall",[7512.41,5583.7,-12.2722],171.501] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/utes.sqf b/SQF/dayz_code/system/mission/utes.sqf index 0bec37a1a..104b317f3 100644 --- a/SQF/dayz_code/system/mission/utes.sqf +++ b/SQF/dayz_code/system/mission/utes.sqf @@ -58,4 +58,4 @@ ["Fort_StoneWall_EP1",[4022.83,2882.98,0.0588207],342.867], ["T72Wreck",[4022.61,2917.04,0.0561008],339.954], ["Info_Board_EP1",[4012.73,2897.31,0.00329018],262.568] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_code/system/mission/zargabad.sqf b/SQF/dayz_code/system/mission/zargabad.sqf index 4590f671b..863b354d9 100644 --- a/SQF/dayz_code/system/mission/zargabad.sqf +++ b/SQF/dayz_code/system/mission/zargabad.sqf @@ -84,4 +84,4 @@ ["Land_Fire_barrel",[3577.17,6830.6,0.000236511],359.997], ["Info_Board_EP1",[3612.99,6829.27,0.000593185],86.5122], ["Land_Fire_barrel",[4723.34,833.238,0.000152588],0.00214848] -] call local_spawnTraderCities; \ No newline at end of file +] call local_spawnObjects; \ No newline at end of file diff --git a/SQF/dayz_server/compile/server_playerDied.sqf b/SQF/dayz_server/compile/server_playerDied.sqf index ddb6b5eb6..0f08ebbfb 100644 --- a/SQF/dayz_server/compile/server_playerDied.sqf +++ b/SQF/dayz_server/compile/server_playerDied.sqf @@ -61,10 +61,10 @@ if (_killerMethod in ["starve","dehyd","sick","bled","crushed","rad","zombie"]) if ((_killerWeapon != "unknown weapon") or {_killerMethod != "unknown"} or {_killerName != "unknown"}) then { diag_log _message; - //if (DZE_DeathMsgGlobal) then {customRemoteMessage = ['globalChat',_message,_newObject]; publicVariable "customRemoteMessage";}; - if (DZE_DeathMsgGlobal) then {[nil,nil,rspawn,[_newObject,_message],{(_this select 0) globalChat (_this select 1)}] call RE;}; - if (DZE_DeathMsgSide) then {[nil,nil,rspawn,[_newObject,_message],{(_this select 0) sideChat (_this select 1)}] call RE;}; - if (DZE_DeathMsgTitleText) then {[nil,nil,"per",rTITLETEXT,_message,"PLAIN DOWN"] call RE;}; + // Use FunctionsManager logic unit (BIS_functions_mainscope) to send chat messages so no side or quotation marks are shown + if (DZE_DeathMsgGlobal) then {[nil,nil,rspawn,[BIS_functions_mainscope,_message],{(_this select 0) globalChat (_this select 1)}] call RE;}; + if (DZE_DeathMsgSide) then {[nil,nil,rspawn,[BIS_functions_mainscope,_message],{(_this select 0) sideChat (_this select 1)}] call RE;}; + if (DZE_DeathMsgTitleText) then {[nil,nil,"per",rTITLETEXT,("\n\n" + _message),"PLAIN DOWN"] call RE;}; // Store death messages to allow viewing at message board in trader citys. PlayerDeaths set [count PlayerDeaths,[_playerName,_killerName,_killerWeapon,_distance,ServerCurrentTime]];