From c6c7472ab74f5ecf560e1b5cf0e34bcc3b4176ab Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Tue, 28 Mar 2017 14:31:29 -0400 Subject: [PATCH] Hide corpse markers for bodies that are hidden --- CHANGE LOG 1.0.6.2.txt | 1 + SQF/dayz_code/groups/groupMarkers.sqf | 16 +++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index 070418d7b..2ac8d3483 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -20,6 +20,7 @@ [FIXED] CFGMoves/Animation CTD on server. Thanks Choc [FIXED] DayZ_RollingMessage FPS impact. #1926 @BigEgg17 [FIXED] Random skin selection on new character creation with DZE_defaultSkin = [["Male skin1","Male skin2"],["Female skin1","Female skin2"]]; +[FIXED] Corpse markers are now deleted for bodies that are hidden. [NOTE] Fixes below are included in the mission file and server pbo as part of server package 1.0.6.1A (March 10th 2017) [FIXED] Fixed food and drink going down 10x faster from melee and other "working" actions. diff --git a/SQF/dayz_code/groups/groupMarkers.sqf b/SQF/dayz_code/groups/groupMarkers.sqf index 959904e28..54f0f8ede 100644 --- a/SQF/dayz_code/groups/groupMarkers.sqf +++ b/SQF/dayz_code/groups/groupMarkers.sqf @@ -50,13 +50,15 @@ while {true} do { _name = name player; { if (_x getVariable["bodyName",""] == _name) then { - _bodyCount = _bodyCount + 1; - _pos = [_x] call FNC_GetPos; - deleteMarkerLocal format["MyBody%1",_bodyCount]; - _marker = createMarkerLocal [format["MyBody%1",_bodyCount],_pos]; - _marker setMarkerTypeLocal "DestroyedVehicle"; - _marker setMarkerTextLocal localize "STR_EPOCH_RIP"; - _marker setMarkerColorLocal "ColorRed"; + _pos = visiblePosition _x; + if (_pos select 2 >= 0) then { //Body is not hidden + _bodyCount = _bodyCount + 1; + deleteMarkerLocal format["MyBody%1",_bodyCount]; + _marker = createMarkerLocal [format["MyBody%1",_bodyCount],_pos]; + _marker setMarkerTypeLocal "DestroyedVehicle"; + _marker setMarkerTextLocal localize "STR_EPOCH_RIP"; + _marker setMarkerColorLocal "ColorRed"; + }; }; } count allDead;