mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +03:00
Replace fnc_veh_setFixServer with server_setHitpoints
This commit is contained in:
9
SQF/dayz_server/compile/server_setHitpoints.sqf
Normal file
9
SQF/dayz_server/compile/server_setHitpoints.sqf
Normal 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;
|
||||
Reference in New Issue
Block a user