mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Delay player_death 1s if spawned from Killed EH
Vanilla commit:
96c9be3ecf
This commit is contained in:
@@ -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"];
|
private ["_pos","_display","_body","_playerID","_array","_source","_method","_isBandit","_punishment","_humanityHit","_myKills","_humanity","_kills","_killsV","_myGroup","_model","_infected","_distance","_sourceVehicleType","_sourceWeapon","_sourceName","_ammo"];
|
||||||
disableSerialization;
|
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 {};
|
if (deathHandled) exitWith {};
|
||||||
deathHandled = true;
|
deathHandled = true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user