Clear combat status on death

This prevents "player combat logged" message after a player dies. The
alive check should prevent this in onPlayerDisconect, but it is
apparently unreliable or slow to update.
This commit is contained in:
ebaydayz
2016-09-28 14:46:59 -04:00
parent c746d98853
commit 66fd5bee57

View File

@@ -17,6 +17,7 @@ _method = toString (_this select 9);
//Mark player as dead so we bypass the ghost system
dayz_died set [count dayz_died, _playerID];
_newObject setVariable ["inCombat",0,false];
_newObject setVariable ["processedDeath",diag_tickTime];
_newObject setVariable ["bodyName",_playerName,true];
_pos = getPosATL _newObject;