Retire DZE_MissionLootTable variable

AFAIK there is no performance difference between configFile and
missionConfigFile.

Using missionConfigFile by default simplifies loot scripts and makes the
extra config variable unnecessary. It's one less step for admins to
customize their tables.
This commit is contained in:
ebaydayz
2016-08-23 12:57:12 -04:00
parent 10b006d4eb
commit 29acecc2f2
55 changed files with 58 additions and 80 deletions

View File

@@ -57,7 +57,7 @@ sched_buriedZeds = {
//_a = _a + 1;
_b = nearestBuilding _z;
if (!isNull _b) then {
_config = if (DZE_MissionLootTable) then {missionConfigFile >> "CfgLoot" >> "Buildings" >> (typeOf _b) >> "zedPos"} else {configFile >> "CfgLoot" >> "Buildings" >> (typeOf _b) >> "zedPos"};
_config = missionConfigFile >> "CfgLoot" >> "Buildings" >> (typeOf _b) >> "zedPos";
_zedPos = [] + getArray _config;
if ((count _zedPos > 0) and {([_b, _pos] call _checkInsideBuilding)}) then {
_elevation = (_b modelToWorld (_zedPos select 0)) select 2; // ATL