mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-04 15:22:53 +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:b20b402bf07c8b69eb827dfd3ef9cf
This commit is contained in:
@@ -114,7 +114,7 @@ AllowedVehiclesList = [
|
||||
["VWGolf",_Ratio3]
|
||||
];
|
||||
|
||||
if (toLower worldName in ["caribou","chernarus","cmr_ovaron","dingor","fallujah","fapovo","fdf_isle1_a","isladuala","lingor","mbg_celle2","namalsk","napf","oring","panthera2","sara","sauerland","smd_sahrani_a2","tavi","trinity","utes"]) then {
|
||||
if (toLower worldName in ["caribou","chernarus","cmr_ovaron","dayznogova","dingor","dzhg","fallujah","fapovo","fdf_isle1_a","isladuala","lingor","mbg_celle2","namalsk","napf","oring","panthera2","sara","sauerland","smd_sahrani_a2","tasmania2010","tavi","trinity","utes"]) then {
|
||||
// water map, add boats
|
||||
|
||||
AllowedVehiclesList = AllowedVehiclesList + [
|
||||
|
||||
@@ -5,8 +5,8 @@ private ["_blocked","_flame","_position"];
|
||||
_position = _x;
|
||||
{if (_position distance _x < 150) exitWith {_blocked = true;};} forEach dayz_townGeneratorBlackList;
|
||||
if (!_blocked && (random 1 < 0.33)) then {
|
||||
//_flame = createVehicle [ "flamable_DZ", _x, [], 0, "CAN_COLLIDE"];
|
||||
_flame = "flamable_DZ" createVehicle _x;
|
||||
_flame = "flamable_DZ" createVehicle [0,0,0]; //200x faster https://community.bistudio.com/wiki/Code_Optimisation#createVehicle.28Local.29
|
||||
_flame setPosATL _x;
|
||||
_flame inflame true;
|
||||
_flame setVariable ["permaLoot",true]; // = won't be removed by the cleaner, cf. sched_lootpiles.sqf
|
||||
};
|
||||
@@ -29,4 +29,4 @@ private ["_blocked","_flame","_position"];
|
||||
[6754.5,2780.37,0.597929], [6760.03,2727.7,0.597929], [6789.35,2692.69,0.597929], [6796.09,2726.09,0.597929], [6810.51,2499.86,0.597929],
|
||||
[6822.79,2482.01,0.597929], [6832.25,2500.24,0.597929], [6833.6,3176.97,0.59797], [6835.19,2694.23,0.597929], [6847.45,2360.25,0.597929],
|
||||
[6856.71,2522.75,0.597929], [6864.41,2464.66,0.597929], [7065.12,2622.94,0.597929], [7095.99,2740.68,0.597929]
|
||||
];
|
||||
];
|
||||
@@ -393,7 +393,7 @@ publicVariable "sm_done";
|
||||
[] execVM "\z\addons\dayz_server\compile\server_spawnCarePackages.sqf";
|
||||
[] execVM "\z\addons\dayz_server\compile\server_spawnCrashSites.sqf";
|
||||
|
||||
if (dayz_townGenerator && {toLower worldName == "chernarus"}) then {execVM "\z\addons\dayz_server\system\lit_fireplaces.sqf";};
|
||||
if (dayz_townGenerator) then {execVM "\z\addons\dayz_server\system\lit_fireplaces.sqf";};
|
||||
|
||||
"PVDZ_sec_atp" addPublicVariableEventHandler {
|
||||
_x = _this select 1;
|
||||
@@ -461,8 +461,8 @@ if (_hiveLoaded) then {
|
||||
if (isClass (_cfgLootFile >> typeOf _x)) then {
|
||||
_buildingList set [count _buildingList,_x];
|
||||
};
|
||||
} count (dayz_centerMarker nearObjects ["building",DynamicVehicleArea]);
|
||||
_roadList = dayz_centerMarker nearRoads DynamicVehicleArea;
|
||||
} count (getMarkerPos "center" nearObjects ["building",((getMarkerSize "center") select 1)]);
|
||||
_roadList = getMarkerPos "center" nearRoads ((getMarkerSize "center") select 1);
|
||||
|
||||
_vehLimit = MaxVehicleLimit - (count _serverVehicleCounter);
|
||||
if (_vehLimit > 0) then {
|
||||
|
||||
Reference in New Issue
Block a user