mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Remove legacy stream_location functions
These are no longer used for anything.
This commit is contained in:
@@ -113,7 +113,7 @@ if (_maxlocalspawned > 0) then { _spawnZedRadius = _spawnZedRadius * 3; };
|
||||
if (_canSpawn) then {
|
||||
_dis = _x distance player;
|
||||
_checkLoot = (count (getArray (_config >> "lootPos"))) > 0;
|
||||
_islocal = _x getVariable ["", false]; // object created locally via TownGenerator. See stream_locationFill.sqf
|
||||
_islocal = _x getVariable ["", false]; // object created locally via TownGenerator.
|
||||
|
||||
//Make sure wrecks always spawn Zeds
|
||||
_isWreck = _x isKindOf "CrashSite";
|
||||
|
||||
@@ -1,65 +0,0 @@
|
||||
//private ["_location","_distCfg","_configClass","_distAct","_rubbish","_config","_locHdr","_w8","_ahead","_forEachIndex"];
|
||||
_w8 = _this select 0;
|
||||
_rubbish = dayz_Trash == 1;
|
||||
{
|
||||
_location = _x select 0;
|
||||
_distCfg = (_x select 2);
|
||||
_configClass = _x select 1;
|
||||
_distAct = player distance _location;
|
||||
_ahead = (speed player) / 3.6 * 6;
|
||||
|
||||
if (!(_forEachIndex in dayz_locationsActive)) then {
|
||||
if ((_distAct < _distCfg + dayz_spawnArea + _ahead) and _rubbish) then {
|
||||
dayz_locationsActive set [count dayz_locationsActive,_forEachIndex];
|
||||
_config = configFile >> "CfgTownGeneratorChernarus" >> _configClass;
|
||||
_locHdr = configName _config;
|
||||
//if (typeName _locHdr != "STRING") then { _locHdr = str _location; };
|
||||
diag_log format ["%1: creating %2 objects at '%3'", __FILE__, count _config, _locHdr];
|
||||
[_config, _w8] call stream_locationFill; // create wrecks & rubbish as local objects
|
||||
|
||||
};
|
||||
} else {
|
||||
if (_distAct > _distCfg + dayz_canDelete + _ahead) then {
|
||||
_config = configFile >> "CfgTownGeneratorChernarus" >> _configClass;
|
||||
_locHdr = configName _config;
|
||||
//if (typeName _locHdr != "STRING") then { _locHdr = str _location; };
|
||||
diag_log format ["%1: removing %2 objects from '%3'", __FILE__, count _config, _locHdr];
|
||||
[_config, _w8] call stream_locationDel; // delete wrecks & rubbish
|
||||
dayz_locationsActive = dayz_locationsActive - [_forEachIndex];
|
||||
};
|
||||
|
||||
};
|
||||
} forEach dayz_Locations;
|
||||
|
||||
/*
|
||||
_location = 0;
|
||||
_distCfg = 0;
|
||||
_configClass = 0;
|
||||
_distAct = 0;
|
||||
{
|
||||
_location = _x select 0;
|
||||
_distCfg = (_x select 2);
|
||||
_configClass = _x select 1;
|
||||
_distAct = player distance _location;
|
||||
|
||||
if (!(_forEachIndex in dayz_gridsActive)) then {
|
||||
if (_distAct < _distCfg) then {
|
||||
dayz_gridsActive set [count dayz_gridsActive,_forEachIndex];
|
||||
|
||||
PVDZ_gridsActive = [_forEachIndex,_location];
|
||||
publicVariableServer "PVDZ_gridsActive";
|
||||
|
||||
systemChat (str(_configClass));
|
||||
};
|
||||
} else {
|
||||
if (_distAct > _distCfg) then {
|
||||
dayz_gridsActive = dayz_gridsActive - [_forEachIndex];
|
||||
|
||||
PVDZ_gridsRemove = [_forEachIndex,_location];
|
||||
publicVariableServer "PVDZ_gridsRemove";
|
||||
|
||||
diag_log("Out of Range: "+str(_forEachIndex));
|
||||
};
|
||||
};
|
||||
} forEach dayz_GridSystem;
|
||||
*/
|
||||
@@ -1,16 +0,0 @@
|
||||
//private ["_config","_type","_position","_object","_list"];
|
||||
_list = _this select 0;
|
||||
//_w8 = _this select 1;
|
||||
for "_i" from ((count _list) - 1) to 0 step -1 do
|
||||
{
|
||||
_config = (_list select _i);
|
||||
if (isClass(_config)) then {
|
||||
_type = getText (_config >> "ctype");
|
||||
_position = getArray (_config >> "position");
|
||||
_object = nearestObject [_position,_type];
|
||||
deleteVehicle _object;
|
||||
if ((_i % 25) == 0) then { uiSleep 0.01; };
|
||||
};
|
||||
uiSleep 0.001;
|
||||
};
|
||||
//diag_log ("CLEAR: " + str(_this));
|
||||
@@ -1,39 +0,0 @@
|
||||
//private ["_config","_type","_position","_dir","_object","_list","_w8","_dis"];
|
||||
_list = _this select 0;
|
||||
_w8 = _this select 1;
|
||||
for "_i" from ((count _list) - 1) to 0 step -1 do
|
||||
{
|
||||
_config = (_list select _i);
|
||||
if (isClass(_config)) then {
|
||||
_type = getText (_config >> "type");
|
||||
_position = [] + getArray (_config >> "position");
|
||||
_dir = getNumber (_config >> "direction");
|
||||
//_onFire = getNumber (_config >> "onFire");
|
||||
_dis = _position distance player;
|
||||
_inVehicle = (vehicle player != player);
|
||||
|
||||
if (_dis > 2) then {
|
||||
_object = _type createVehicleLocal [_position select 0,_position select 1,-100];
|
||||
_object setDir _dir;
|
||||
_object setPos [_position select 0,_position select 1,0];
|
||||
_object setPosATL _position;
|
||||
_object allowDamage false;
|
||||
_object setVariable ["", true]; // SV used by player_spawnCheck
|
||||
//if (_w8 AND {((_i % 25) == 0)}) then { uiSleep 0.01; };
|
||||
|
||||
} else {
|
||||
if (!_inVehicle) then {
|
||||
_object = _type createVehicleLocal [_position select 0,_position select 1,-100];
|
||||
_object setDir _dir;
|
||||
_object setPos [_position select 0,_position select 1,0];
|
||||
_object setPosATL _position;
|
||||
_object allowDamage false;
|
||||
_object setVariable ["", true]; // SV used by player_spawnCheck
|
||||
if (_w8 AND {((_i % 25) == 0)}) then { uiSleep 0.01; };
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
//uiSleep 0.001;
|
||||
};
|
||||
//diag_log ("FILL: " + str(_list));
|
||||
Reference in New Issue
Block a user