mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Split player_death into scheduled and unscheduled #1833
Death message was sometimes showing incorrectly due to spawn delay. Also the sched_corpses two minute loop was occasionally deleting bodies right away because bodyName setVariable was delayed by the time it took PVDZ_plr_death to send (up to a few seconds). See #1825
This commit is contained in:
@@ -409,7 +409,7 @@ if (_type == 1) then {
|
||||
if (_damage > 4) then {
|
||||
//serious ballistic damage
|
||||
if (_unit == player) then {
|
||||
_id = [_source,"explosion",_ammo] spawn player_death;
|
||||
[_source,"explosion",_ammo] call player_death;
|
||||
};
|
||||
} else {
|
||||
if (_damage > 2) then {
|
||||
@@ -429,7 +429,7 @@ if (_type == 2) then {
|
||||
if (_damage > 4) then {
|
||||
//serious ballistic damage
|
||||
if (_unit == player) then {
|
||||
_id = [_source,"shotheavy"] spawn player_death;
|
||||
[_source,"shotheavy"] call player_death;
|
||||
};
|
||||
} else {
|
||||
if (_damage > 2) then {
|
||||
|
||||
Reference in New Issue
Block a user