mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +03:00
Update spawnCrashSite
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user