Replace fnc_veh_setFixServer with server_setHitpoints

This commit is contained in:
A Man
2022-03-22 13:04:38 +01:00
parent a7860b5b29
commit 637f1f4450
8 changed files with 29 additions and 54 deletions

View File

@@ -0,0 +1,9 @@
local _obj = _this select 0;
local _hitpoints = _this select 1;
local _isAir = _obj isKindOf "Air";
{
local _selection = _x select 0;
local _dam = [_x select 1,(_x select 1) min 0.8] select (!_isAir && {_selection in dayZ_explosiveParts});
_obj setHit [_selection,_dam];
} count _hitpoints;