mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
@@ -101,7 +101,8 @@ _object_damage = {
|
|||||||
_object_killed = {
|
_object_killed = {
|
||||||
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
|
private["_hitpoints","_array","_hit","_selection","_key","_damage"];
|
||||||
_hitpoints = _object call vehicle_getHitpoints;
|
_hitpoints = _object call vehicle_getHitpoints;
|
||||||
_damage = damage _object;
|
//_damage = damage _object;
|
||||||
|
_damage = 1;
|
||||||
_array = [];
|
_array = [];
|
||||||
{
|
{
|
||||||
_hit = [_object,_x] call object_getHit;
|
_hit = [_object,_x] call object_getHit;
|
||||||
@@ -109,8 +110,7 @@ _object_killed = {
|
|||||||
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
||||||
_hit = 1;
|
_hit = 1;
|
||||||
_object setHit ["_selection", _hit]
|
_object setHit ["_selection", _hit]
|
||||||
} forEach _hitpoints;
|
} forEach _hitpoints
|
||||||
_damage = 1;
|
|
||||||
|
|
||||||
if (_objectID == "0") then {
|
if (_objectID == "0") then {
|
||||||
_key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];
|
_key = format["CHILD:306:%1:%2:%3:",_uid,_array,_damage];
|
||||||
|
|||||||
Reference in New Issue
Block a user