mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
@@ -1,4 +1,4 @@
|
|||||||
private ["_weighted","_j"];
|
private ["_config","_classname","_itemChances","_itemCount","_weight","_type","_canZombie","_canLoot","_weighted","_j"];
|
||||||
dayz_CBLChances = [];
|
dayz_CBLChances = [];
|
||||||
dayz_CBLBase = [];
|
dayz_CBLBase = [];
|
||||||
_config = configFile >> "CfgBuildingLoot";
|
_config = configFile >> "CfgBuildingLoot";
|
||||||
@@ -11,7 +11,7 @@ for "_i" from 0 to ((count _config) - 1) do {
|
|||||||
_itemChances = getArray (_config >> _classname >> "lootType");
|
_itemChances = getArray (_config >> _classname >> "lootType");
|
||||||
_itemCount = count _itemChances;
|
_itemCount = count _itemChances;
|
||||||
|
|
||||||
//diag_log format["Classname: %1, Array: %2, Amount: %3", _classname, _itemChances, _itemCount];
|
//diag_log format["Classname: %1, Array: %2, Amount: %3", _classname, _itemChances, _itemCount];
|
||||||
|
|
||||||
if (_itemCount > 0) then {
|
if (_itemCount > 0) then {
|
||||||
if (dayz_CBLBase find _classname < 0) then {
|
if (dayz_CBLBase find _classname < 0) then {
|
||||||
|
|||||||
Reference in New Issue
Block a user