Fix group saving issue

This commit is contained in:
ebayShopper
2017-04-01 15:29:12 -04:00
parent f8aff48ab9
commit 107bb6d227
2 changed files with 6 additions and 1 deletions

View File

@@ -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.

View File

@@ -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);