From d44696be3a00992cd19381514c3214c077426a90 Mon Sep 17 00:00:00 2001 From: ebaydayz Date: Fri, 14 Oct 2016 12:40:19 -0400 Subject: [PATCH] Delay player_death 1s if spawned from Killed EH Vanilla commit: https://github.com/DayZMod/DayZ/commit/96c9be3ecf37e04c8048f70b559f88c71201d668 --- SQF/dayz_code/compile/player_death.sqf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/SQF/dayz_code/compile/player_death.sqf b/SQF/dayz_code/compile/player_death.sqf index b0ac6e993..c2f0087d6 100644 --- a/SQF/dayz_code/compile/player_death.sqf +++ b/SQF/dayz_code/compile/player_death.sqf @@ -1,5 +1,10 @@ private ["_pos","_display","_body","_playerID","_array","_source","_method","_isBandit","_punishment","_humanityHit","_myKills","_humanity","_kills","_killsV","_myGroup","_model","_infected","_distance","_sourceVehicleType","_sourceWeapon","_sourceName","_ammo"]; disableSerialization; +if (count _this == 0) then { + //Spawned from Killed EH (engine death), this should be rare + //Wait to see if sched_medical 1s loop spawns with _source and _method (blood<=0 death) + uiSleep 1; +}; if (deathHandled) exitWith {}; deathHandled = true;