mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Merge pull request #1396 from justchil/patch-1
Update zombie_generate.sqf
This commit is contained in:
@@ -91,7 +91,7 @@ if ((dayz_spawnZombies < _maxControlledZombies) && (dayz_CurrentNearByZombies <
|
|||||||
_array = [];
|
_array = [];
|
||||||
{
|
{
|
||||||
_array set [count _array, _x select 0]
|
_array set [count _array, _x select 0]
|
||||||
} count 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