From 107bb6d2273a792426de49f308f5f0625d8b8785 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Sat, 1 Apr 2017 15:29:12 -0400 Subject: [PATCH] Fix group saving issue --- CHANGE LOG 1.0.6.2.txt | 2 ++ SQF/dayz_code/groups/server_updateGroup.sqf | 5 ++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index b2b1a4ef5..f8b2fe728 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -25,6 +25,8 @@ [FIXED] The player building a shed, tent or other unlocked storage was unable to use its gear until relog when DZE_GodModeBase=true; @oiad [FIXED] Death message killer inaccurate when player is caused to bleed by one unit and then killed by a different unit shortly after. @oiad [FIXED] The DayZ police car can no longer be upgraded to car_sedan_DZE1. #1929 @F507DMT +[FIXED] Group tags sometimes printing WARNING: Function 'name' - x is dead to RPT. +[FIXED] Group saving issue which could potentially join a player to a random group or not save group properly after death. [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/server_updateGroup.sqf b/SQF/dayz_code/groups/server_updateGroup.sqf index 3298945df..97da91727 100644 --- a/SQF/dayz_code/groups/server_updateGroup.sqf +++ b/SQF/dayz_code/groups/server_updateGroup.sqf @@ -11,6 +11,9 @@ if (_event < 3) then { uiSleep 1; }; +//Do not update if calling player is dead. Prevent saving dayz_firstGroup. +if (damage _player >= 1) exitWith {}; + if (_event == -1) exitWith { //Promote _player PVDZ_groupInvite = [-1,_player]; @@ -19,7 +22,7 @@ if (_event == -1) exitWith { _groupUIDs = []; { - if (alive _x && isPlayer _x) then { + if (damage _x < 1 && isPlayer _x) then { _groupUIDs set [count _groupUIDs,getPlayerUID _x]; }; } count (units group _player);