mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-22 03:16:27 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user