mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-22 16:10:49 +03:00
More #1288
This commit is contained in:
@@ -43,9 +43,9 @@ _tobe_removed_total = 0;
|
||||
_temp_removed_array set [count _temp_removed_array, _x];
|
||||
};
|
||||
};
|
||||
} count _inventory;
|
||||
} forEach _inventory;
|
||||
};
|
||||
} count _items;
|
||||
} forEach _items;
|
||||
// all parts removed
|
||||
if (_tobe_removed_total == _removed_total) exitWith { true };
|
||||
// missing parts
|
||||
|
||||
@@ -45,7 +45,7 @@ while {(alive _projectile) && !(isNull _projectile) && _callCount < 85;} do {
|
||||
_x setVariable["startcombattimer", 1];
|
||||
diag_log("Now in Combat (Crew): " + name _x);
|
||||
};
|
||||
} count (crew _nearVehicle);
|
||||
} forEach (crew _nearVehicle);
|
||||
};
|
||||
|
||||
} count _listNear;
|
||||
} forEach _listNear;
|
||||
|
||||
@@ -50,13 +50,13 @@ if (_IsNearVehicle >= 1) then {
|
||||
_countIn = _x select 1;
|
||||
_qty = { (_x == _itemIn) || (configName(inheritsFrom(configFile >> "cfgMagazines" >> _x)) == _itemIn) } count magazines player;
|
||||
if(_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
|
||||
} count _requirementsMagazine;
|
||||
} forEach _requirementsMagazine;
|
||||
{
|
||||
_itemIn = _x select 0;
|
||||
_countIn = _x select 1;
|
||||
_qty = { (_x == _itemIn) || (configName(inheritsFrom(configFile >> "cfgWeapons" >> _x)) == _itemIn) } count weapons player;
|
||||
if(_qty < _countIn) exitWith { _missing = _itemIn; _missingQty = (_countIn - _qty); _proceed = false; };
|
||||
} count _requirementsWeapon;
|
||||
} forEach _requirementsWeapon;
|
||||
|
||||
if (_proceed) then {
|
||||
|
||||
@@ -84,8 +84,8 @@ if (_IsNearVehicle >= 1) then {
|
||||
_temp_removed_array_mag set [count _temp_removed_array_mag,_x];
|
||||
};
|
||||
};
|
||||
} count magazines player;
|
||||
} count _requirementsMagazine;
|
||||
} forEach magazines player;
|
||||
} forEach _requirementsMagazine;
|
||||
|
||||
{
|
||||
_removed = 0;
|
||||
@@ -103,8 +103,8 @@ if (_IsNearVehicle >= 1) then {
|
||||
_temp_removed_array_wep set [count _temp_removed_array_wep,_x];
|
||||
};
|
||||
};
|
||||
} count weapons player;
|
||||
} count _requirementsWeapon;
|
||||
} forEach weapons player;
|
||||
} forEach _requirementsWeapon;
|
||||
|
||||
// all parts removed proceed
|
||||
if (_tobe_removed_total == _removed_total) then {
|
||||
|
||||
@@ -17,7 +17,7 @@ _newObjects = [];
|
||||
};
|
||||
_newObjects set [count _newObjects,_type];
|
||||
};
|
||||
} count _currentObjects;
|
||||
} forEach _currentObjects;
|
||||
|
||||
//Compare current loadout with old loadout
|
||||
_newObjects = [];
|
||||
@@ -31,6 +31,6 @@ _newObjects = [];
|
||||
};
|
||||
_newObjects set [count _newObjects,_type];
|
||||
};
|
||||
} count _checkObjects;
|
||||
} forEach _checkObjects;
|
||||
|
||||
_change;
|
||||
Reference in New Issue
Block a user