Update spawnCrashSite

This commit is contained in:
ebaydayz
2016-03-26 22:02:28 -04:00
parent cfff2454aa
commit 8f2ff5cb3e
8 changed files with 33 additions and 230 deletions

View File

@@ -594,7 +594,6 @@ if (isServer) then {
if(isNil "DynamicVehicleFuelLow") then {DynamicVehicleFuelLow = 0;};
if(isNil "DynamicVehicleFuelHigh") then {DynamicVehicleFuelHigh = 100;};
if(isNil "HeliCrashArea") then {HeliCrashArea = dayz_MapArea / 2;};
if(isNil "OldHeliCrash") then {OldHeliCrash = false;};
if(isNil "DZE_DiagFpsSlow") then {DZE_DiagFpsSlow = false;}; // Log server FPS + player count every 5 minutes
if(isNil "DZE_DiagFpsFast") then {DZE_DiagFpsFast = false;}; // Log server FPS + player count every 2 minutes
if(isNil "DZE_DiagVerbose") then {DZE_DiagVerbose = false;}; // Also log allMissionObjects count (very intensive)

View File

@@ -54,7 +54,7 @@ dz_loot_groups = [];
dz_loot_weighted = [];
dz_loot_definitions = [];
_cfgGroups = (configFile >> "CfgLoot" >> "Groups");
_cfgGroups = if (DZE_MissionLootTable) then {missionConfigFile >> "CfgLoot" >> "Groups"} else {configFile >> "CfgLoot" >> "Groups"};
for "_i" from 0 to (count _cfgGroups) - 1 do
{

View File

@@ -57,7 +57,7 @@ sched_buriedZeds = {
//_a = _a + 1;
_b = nearestBuilding _z;
if (!isNull _b) then {
_config = configFile >> "CfgLoot" >> "Buildings" >> (typeOf _b) >> "zedPos";
_config = if (DZE_MissionLootTable) then {missionConfigFile >> "CfgLoot" >> "Buildings" >> (typeOf _b) >> "zedPos"} else {configFile >> "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