Organize files a bit and removed non source pbo's

This commit is contained in:
vbawol
2013-06-24 06:26:15 -05:00
parent b4cee9175b
commit 483279c126
1607 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
//diag_log "running location check...";
{private ["_location","_distCfg","_configClass","_distAct","_config","_position"];
_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;