This commit is contained in:
Aaron Clark
2012-11-04 20:28:50 -06:00
commit 76e9a0582e
1049 changed files with 94406 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
private["_position","_size","_loot","_zeds","_groups","_group"];
_position = _this select 0;
_size = _this select 1;
_type = _this select 2;
_town = nearestLocation [_position, _type];
//Clean Loot
_loot = nearestObjects [_position, ["WeaponHolder"], _size];
{
deleteVehicle _x;
} forEach _loot;
//Clean Zeds
_zeds = _position nearEntities ["zZombie_Base",_size];
_groups = [];
{
if (!(isNull _group)) then {
_group = group _x;
if (!(_group in _groups)) then {_groups set [count _groups,_group];};
_x setDamage 1;
};
} forEach _zeds;
diag_log "Dezombify Town";
dayz_zombifiedTowns = dayz_zombifiedTowns - [_town];