mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
Merge pull request #1580 from deadeye2/patch-3
DZE_MissionLootTable fix
This commit is contained in:
@@ -89,9 +89,15 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
|
|||||||
_lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
|
_lootType = configFile >> "CfgVehicles" >> _type >> "zombieLoot";
|
||||||
if (isText _lootType) then {
|
if (isText _lootType) then {
|
||||||
_array = [];
|
_array = [];
|
||||||
|
if (DZE_MissionLootTable) then {
|
||||||
|
{
|
||||||
|
_array set [count _array, _x select 0]
|
||||||
|
} forEach getArray (missionConfigFile >> "cfgLoot" >> getText(_lootType));
|
||||||
|
} else {
|
||||||
{
|
{
|
||||||
_array set [count _array, _x select 0]
|
_array set [count _array, _x select 0]
|
||||||
} forEach getArray (configFile >> "cfgLoot" >> getText(_lootType));
|
} forEach getArray (configFile >> "cfgLoot" >> getText(_lootType));
|
||||||
|
};
|
||||||
if (count _array > 0) then {
|
if (count _array > 0) then {
|
||||||
_index = dayz_CLBase find getText(_lootType);
|
_index = dayz_CLBase find getText(_lootType);
|
||||||
_weights = dayz_CLChances select _index;
|
_weights = dayz_CLChances select _index;
|
||||||
|
|||||||
Reference in New Issue
Block a user