From 645a115f21b70594eb9e9170d1de83edda5a3e8b Mon Sep 17 00:00:00 2001 From: "[VB]AWOL" Date: Sun, 1 Jun 2014 02:08:41 -0500 Subject: [PATCH] should fix last few loot issues --- SQF/dayz_code/compile/spawn_loot_small.sqf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SQF/dayz_code/compile/spawn_loot_small.sqf b/SQF/dayz_code/compile/spawn_loot_small.sqf index 9c755ec06..937ca9435 100644 --- a/SQF/dayz_code/compile/spawn_loot_small.sqf +++ b/SQF/dayz_code/compile/spawn_loot_small.sqf @@ -45,12 +45,12 @@ switch (_iClass) do if (DZE_MissionLootTable) then{ { _itemTypes set[count _itemTypes, _x select 0] - } count getArray(missionConfigFile >> "CfgLootSmall" >> _iClass); + } count getArray(missionConfigFile >> "CfgLootSmall" >> _iItem); } else { { _itemTypes set[count _itemTypes, _x select 0] - } count getArray(configFile >> "CfgLootSmall" >> _iClass); + } count getArray(configFile >> "CfgLootSmall" >> _iItem); }; _index = dayzE_CLSBase find _iItem; _weights = dayzE_CLSChances select _index; @@ -70,18 +70,18 @@ switch (_iClass) do if (DZE_MissionLootTable) then{ { _itemTypes set[count _itemTypes, _x select 0] - } count getArray(missionConfigFile >> "CfgLootSmall" >> _iClass); + } count getArray(missionConfigFile >> "CfgLootSmall" >> _iItem); } else { { _itemTypes set[count _itemTypes, _x select 0] - } count getArray(configFile >> "CfgLootSmall" >> _iClass); + } count getArray(configFile >> "CfgLootSmall" >> _iItem); }; _index = dayzE_CLSBase find _iItem; _weights = dayzE_CLSChances select _index; _cntWeights = count _weights; - diag_log("_itemTypes small:" + str(_itemTypes)); + //diag_log("_itemTypes small:" + str(_itemTypes)); _index = floor(random _cntWeights); _index = _weights select _index;