mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +03:00
Merge pull request #1611 from Mikeeeyy/patch-9
Update server_updateObject.sqf
This commit is contained in:
@@ -109,7 +109,7 @@ _object_killed = {
|
|||||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
||||||
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];
|
||||||
} count _hitpoints;
|
} count _hitpoints;
|
||||||
|
|
||||||
if (_objectID == "0") then {
|
if (_objectID == "0") then {
|
||||||
@@ -145,7 +145,7 @@ _object_repair = {
|
|||||||
_hit = [_object,_x] call object_getHit;
|
_hit = [_object,_x] call object_getHit;
|
||||||
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
_selection = getText (configFile >> "CfgVehicles" >> (typeOf _object) >> "HitPoints" >> _x >> "name");
|
||||||
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
if (_hit > 0) then {_array set [count _array,[_selection,_hit]]};
|
||||||
_object setHit ["_selection", _hit];
|
_object setHit [_selection, _hit];
|
||||||
} count _hitpoints;
|
} count _hitpoints;
|
||||||
|
|
||||||
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
_key = format["CHILD:306:%1:%2:%3:",_objectID,_array,_damage];
|
||||||
|
|||||||
Reference in New Issue
Block a user