mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-15 04:23:13 +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:
@@ -9,7 +9,7 @@ inGameUISetEventHandler ["Action","false"];
|
||||
// thanks to Tansien the great
|
||||
// run only once per character life
|
||||
{
|
||||
_plant = _x createVehicleLocal dayz_centerMarker;
|
||||
_plant = _x createVehicleLocal (getMarkerPos "center");
|
||||
uiSleep 0.1;
|
||||
if (sizeOf _x == 0) exitWith {
|
||||
PVDZ_sec_atp = toArray ("Plants texture hack for type " + _x);
|
||||
|
||||
@@ -14,7 +14,6 @@ poi_processObject = {
|
||||
_o setVariable ["", true]; // prevent network SV by loot/zeds spawner
|
||||
};
|
||||
|
||||
if (toLower worldName == "chernarus") then {
|
||||
if (toLower worldName == "chernarus") then { //need to add building coordinates for other maps
|
||||
call compile preprocessFileLineNumbers ("\z\addons\dayz_code\system\mission\chernarus\security\antiwallhack.sqf");
|
||||
};
|
||||
|
||||
};
|
||||
@@ -159,10 +159,10 @@ sched_townGenerator = {
|
||||
_x = _cell select _i;
|
||||
//sched_tg_newSpawned = sched_tg_newSpawned + 1;
|
||||
if ("" != (_x select 1)) then {
|
||||
_blocked = if (!dayz_townGenerator or {toLower worldName != "chernarus"}) then {true} else {false};
|
||||
_position = _x select 2;
|
||||
_blocked = false;
|
||||
{if (_position distance _x < 150) exitWith {_blocked = true;};} forEach dayz_townGeneratorBlackList;
|
||||
if (!_blocked) then {
|
||||
if (!_blocked && dayz_townGenerator) then {
|
||||
_object = (_x select 1) createVehicleLocal [0,0,0];
|
||||
_object setDir (_x select 3);
|
||||
_object setPos [_position select 0,_position select 1,0];
|
||||
|
||||
Reference in New Issue
Block a user