more DZE_MissionLootTable fixes #1028

This commit is contained in:
[VB]AWOL
2014-01-29 11:41:54 -06:00
parent 51b8fdff05
commit 4573e9b5c0
11 changed files with 63 additions and 10 deletions

View File

@@ -110,8 +110,16 @@ for "_i" from 0 to ((count (_config)) - 1) do {
private["_i","_type","_config","_canZombie","_canLoot"];
dayz_ZombieBuildings = [];
dayz_LootBuildings = [];
for "_i" from 0 to (count (configFile >> "CfgBuildingLoot") - 1) do {
_type = (configFile >> "CfgBuildingLoot") select _i;
_config = [];
if (DZE_MissionLootTable) then {
_config = missionConfigFile >> "CfgBuildingLoot";
} else {
_config = configFile >> "CfgBuildingLoot";
};
for "_i" from 0 to (count (_config) - 1) do {
_type = _config select _i;
_canZombie = getNumber (_type >> "zombieChance") > 0;
_canLoot = getNumber (_type >> "lootChance") > 0;
if(_canZombie) then {