mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-07-04 15:41:55 +03:00
Move HeliCrash and CarePackage area variables to markers
This allows finer grained control of crashsite, carepackage and infected camp spawn positions and radii (further north, south, east, west, etc.). Also removed some hardcoded checks for Chernarus, since dayz_townGenerator should always be off on other maps for now. Someone may add town generator coordinates for other maps later. Related vanilla commits: https://github.com/DayZMod/DayZ/commit/b20b402bf030769350cf662b985efba9e83ebe55 https://github.com/DayZMod/DayZ/commit/7c8b69eb82a8c741d01251b2552d009abe2687c4 https://github.com/DayZMod/DayZ/commit/7dfd3ef9cf3cf1751759fd76f8eae10c0b1740dc
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
"PVDZE_veh_Init" addPublicVariableEventHandler {(_this select 1) call fnc_veh_ResetEH};
|
||||
"PVDZE_obj_Remove" addPublicVariableEventHandler {_pos = (_this select 1); _obj = nearestObjects [_pos, DZE_isWreckBuilding, 5]; if (count _obj > 0) then {deleteVehicle (_obj select 0);};};
|
||||
|
||||
if (toLower worldName == "chernarus") then {
|
||||
if (toLower worldName == "chernarus") then { //need to add building coordinates for other maps
|
||||
{
|
||||
private ["_building","_fckingcode"];
|
||||
|
||||
|
||||
@@ -131,7 +131,6 @@ pickupInit = false;
|
||||
mouseOverCarry = false; //for carry slot since determining mouse pos doesn't work right
|
||||
dayZ_partClasses = ["PartFueltank","PartWheel","PartEngine"]; //No need to add PartGeneric, it is default for everything
|
||||
dayZ_explosiveParts = ["palivo","motor"];
|
||||
dayz_centerMarker = getMarkerPos "center";
|
||||
|
||||
//Survival Variables
|
||||
SleepFood = 2160; //minutes (48 hours)
|
||||
@@ -421,6 +420,12 @@ if(isNil "dayz_ForcefullmoonNights") then {
|
||||
if(isNil "dayz_randomMaxFuelAmount") then {
|
||||
dayz_randomMaxFuelAmount = 500; //Puts a random amount of fuel in all fuel stations.
|
||||
};
|
||||
if(isNil "dayz_townGenerator") then {
|
||||
dayz_townGenerator = true; // Spawn map junk. Currently only compatible with Chernarus. Need to add coordinates for other maps.
|
||||
};
|
||||
if(isNil "dayz_townGeneratorBlackList") then {
|
||||
dayz_townGeneratorBlackList = []; // Town generator will not spawn junk within 150m of these positions.
|
||||
};
|
||||
|
||||
//Replace server individual settings with ranked settings
|
||||
if(isNil "dayz_presets") then { dayz_presets = "Vanilla"; };
|
||||
@@ -480,6 +485,14 @@ switch (dayz_presets) do {
|
||||
};
|
||||
};
|
||||
|
||||
switch (toLower worldName) do {
|
||||
case "napf";
|
||||
case "sauerland" : {dayz_minpos = -1000; dayz_maxpos = 26000;};
|
||||
case "tavi" : {dayz_minpos = -26000; dayz_maxpos = 26000;};
|
||||
case "chernarus" : {dayz_minpos = -1; dayz_maxpos = 16000;};
|
||||
case default {dayz_minpos = -20000; dayz_maxpos = 20000;};
|
||||
};
|
||||
|
||||
//start achievements_init
|
||||
//call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\achievements_init.sqf";
|
||||
|
||||
@@ -543,14 +556,6 @@ if (isNil "DZE_PlotPole") then {DZE_PlotPole = [30,45];};
|
||||
DZE_maintainRange = ((DZE_PlotPole select 0)+20);
|
||||
if (isNil "DZE_slowZombies") then {DZE_slowZombies = false;};
|
||||
|
||||
switch (toLower worldName) do {
|
||||
case "napf";
|
||||
case "sauerland" : {dayz_minpos = -1000; dayz_maxpos = 26000;};
|
||||
case "tavi" : {dayz_minpos = -26000; dayz_maxpos = 26000;};
|
||||
case "chernarus" : {dayz_minpos = -1; dayz_maxpos = 16000;};
|
||||
case default {dayz_minpos = -20000; dayz_maxpos = 20000;};
|
||||
};
|
||||
|
||||
if (isServer) then {
|
||||
dead_bodyCleanup = [];
|
||||
needUpdate_objects = [];
|
||||
@@ -573,9 +578,6 @@ if (isServer) then {
|
||||
DZE_safeVehicle = ["ParachuteWest","ParachuteC"];
|
||||
if (isNil "EpochUseEvents") then {EpochUseEvents = false;};
|
||||
if (isNil "EpochEvents") then {EpochEvents = [];};
|
||||
if (isNil "dayz_MapArea") then {dayz_MapArea = 10000;};
|
||||
if (isNil "DynamicVehicleArea") then {DynamicVehicleArea = dayz_MapArea / 2;};
|
||||
if (isNil "HeliCrashArea") then {HeliCrashArea = dayz_MapArea / 2;};
|
||||
if (isNil "MaxDynamicDebris") then {MaxDynamicDebris = 100;};
|
||||
if (isNil "MaxVehicleLimit") then {MaxVehicleLimit = 50;};
|
||||
if (isNil "spawnArea") then {spawnArea = 1400;};
|
||||
|
||||
Reference in New Issue
Block a user