mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
removed all traces of CfgTownGenerator
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,29 +0,0 @@
|
|||||||
//diag_log "running location check...";
|
|
||||||
private ["_config","_locHdr","_position","_location","_distCfg","_configClass","_distAct"];
|
|
||||||
{
|
|
||||||
_location = _x select 0;
|
|
||||||
_distCfg = (_x select 2) + 200;
|
|
||||||
_configClass = _x select 1;
|
|
||||||
_distAct = player distance position _location;
|
|
||||||
|
|
||||||
if ((_distAct < _distCfg) and !(_location in dayz_locationsActive)) then {
|
|
||||||
//Record Active Location
|
|
||||||
//diag_log "Load!";
|
|
||||||
dayz_locationsActive set [count dayz_locationsActive,_location];
|
|
||||||
|
|
||||||
//Get Town Details
|
|
||||||
_config = configFile >> "CfgTownGenerator" >> _configClass;
|
|
||||||
_locHdr = configName _config;
|
|
||||||
_position = []+ getArray (_config >> "position");
|
|
||||||
|
|
||||||
_config call stream_locationFill;
|
|
||||||
//player sidechat (_locHdr + " " + str(count _config));
|
|
||||||
} else {
|
|
||||||
if ((_distAct > _distCfg) and (_location in dayz_locationsActive)) then {
|
|
||||||
//Delete Town Objects
|
|
||||||
_config = configFile >> "CfgTownGenerator" >> _configClass;
|
|
||||||
_config call stream_locationDel;
|
|
||||||
dayz_locationsActive = dayz_locationsActive - [_location];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
} forEach dayz_Locations;
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
for "_i" from 0 to ((count _this) - 1) do
|
|
||||||
{
|
|
||||||
private ["_config","_type","_position","_dir","_onFire","_object"];
|
|
||||||
_config = (_this select _i);
|
|
||||||
if (isClass(_config)) then {
|
|
||||||
_type = getText (_config >> "ctype");
|
|
||||||
_position = getArray (_config >> "position");
|
|
||||||
_object = nearestObject [_position,_type];
|
|
||||||
deleteVehicle _object;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
//diag_log ("CLEAR: " + str(_this));
|
|
||||||
@@ -1,24 +0,0 @@
|
|||||||
for "_i" from 0 to ((count _this) - 1) do
|
|
||||||
{
|
|
||||||
private ["_config","_type","_position","_dir","_onFire","_object"];
|
|
||||||
_config = (_this select _i);
|
|
||||||
if (isClass(_config)) then {
|
|
||||||
_type = getText (_config >> "type");
|
|
||||||
_position = [] + getArray (_config >> "position");
|
|
||||||
_dir = getNumber (_config >> "direction");
|
|
||||||
_onFire = getNumber (_config >> "onFire");
|
|
||||||
|
|
||||||
_object = _type createVehicleLocal _position;
|
|
||||||
_object setPos _position;
|
|
||||||
_object setDir _dir;
|
|
||||||
_object allowDamage false;
|
|
||||||
|
|
||||||
//diag_log format["CreateObj: %1 / %2",_type,_position];
|
|
||||||
/*
|
|
||||||
if (_onFire > 0) then {
|
|
||||||
nul=[_object,_onFire,time,false,false] spawn BIS_Effects_Burn;
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
};
|
|
||||||
};
|
|
||||||
//diag_log ("FILL: " + str(_this));
|
|
||||||
@@ -564,29 +564,6 @@ if(!isDedicated) then {
|
|||||||
|
|
||||||
dayz_spawnPos = getPosATL player;
|
dayz_spawnPos = getPosATL player;
|
||||||
|
|
||||||
//Establish Location Streaming
|
|
||||||
_funcGetLocation =
|
|
||||||
{
|
|
||||||
for "_i" from 0 to ((count _this) - 1) do
|
|
||||||
{
|
|
||||||
private ["_location","_config","_locHdr","_position","_size","_type"];
|
|
||||||
//Get Location Data from config
|
|
||||||
_config = (_this select _i);
|
|
||||||
_locHdr = configName _config;
|
|
||||||
_position = getArray (_config >> "position");
|
|
||||||
_size = getNumber (_config >> "size");
|
|
||||||
_type = getText (_config >> "type");
|
|
||||||
|
|
||||||
//Find the Location
|
|
||||||
_location = nearestLocation [_position, _type];
|
|
||||||
|
|
||||||
//Record details
|
|
||||||
dayz_Locations set [count dayz_Locations, [_location,_locHdr,_size]];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
//_cfgLocation = configFile >> "CfgTownGenerator";
|
|
||||||
//_cfgLocation call _funcGetLocation;
|
|
||||||
|
|
||||||
dayz_buildingMonitor = []; //Buildings to check
|
dayz_buildingMonitor = []; //Buildings to check
|
||||||
dayz_bodyMonitor = [];
|
dayz_bodyMonitor = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user