mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user