Remove some unused files

This commit is contained in:
ebaydayz
2016-03-20 13:28:49 -04:00
parent 9ce5a20417
commit 15a38afd82
33 changed files with 158 additions and 350 deletions

View File

@@ -107,7 +107,7 @@ diag_log ("LocalZombies: " +str(dayz_spawnZombies) + "/" +str(dayz_maxLocalZombi
//Spawn Zeds & loot in buildings
{
_type = typeOf _x;
_config = configFile >> "CfgLoot" >> "Buildings" >> _type;
_config = if (DZE_MissionLootTable) then {missionConfigFile >> "CfgLoot" >> "Buildings" >> _type} else {configFile >> "CfgLoot" >> "Buildings" >> _type};
_canSpawn = isClass (_config);
if (_canSpawn) then {

View File

@@ -1,85 +0,0 @@
private ["_unitTypes","_lootType","_lootTypeCfg","_loot_count","_index","_weights","_loot","_array","_player","_doLoiter","_agent","_type","_radius","_method","_position","_isAlive","_myDest","_newDest","_rnd","_id"];
_player = _this select 0;
_unitTypes = [];
if (DZE_MissionLootTable) then {
_unitTypes = []+ getArray (missionConfigFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
} else {
_unitTypes = []+ getArray (configFile >> "CfgBuildingLoot" >> "Default" >> "zombieClass");
};
_doLoiter = true;
_loot = "";
_array = [];
_agent = objNull;
_type = _unitTypes call BIS_fnc_selectRandom;
//Create the Group && populate it
//diag_log ("Spawned: " + _type);
_radius = 40;
_method = "NONE";
_position = [_player,120,200,10,0,0,0] call BIS_fnc_findSafePos;
_agent = createAgent [_type, _position, [], _radius, _method];
if (_doLoiter) then {
//_agent setPosATL _position;
//_agent setVariable ["doLoiter",true,true];
_agent setDir round(random 180);
};
dayz_spawnZombies = dayz_spawnZombies + 1;
if (random 1 > 0.7) then {
_agent setUnitPos "Middle";
};
if (isNull _agent) exitWith {
dayz_spawnZombies = dayz_spawnZombies - 1;
};
_isAlive = alive _agent;
_myDest = getPosATL _agent;
_newDest = getPosATL _agent;
_agent setVariable ["myDest",_myDest];
_agent setVariable ["newDest",_newDest];
//Add some loot
_rnd = random 1;
if (_rnd > 0.3) then {
_lootType = getText (configFile >> "CfgVehicles" >> _type >> "zombieLoot");
if (DZE_MissionLootTable) then {
_lootTypeCfg = getArray (missionConfigFile >> "CfgLoot" >> _lootType);
} else {
_lootTypeCfg = getArray (configFile >> "CfgLoot" >> _lootType);
};
_array = [];
{
_array set [count _array, _x select 0]
} count _lootTypeCfg;
if (count _array > 0) then {
_index = dayz_CLBase find _lootType;
_weights = dayz_CLChances select _index;
_loot = _array select (_weights select (floor(random (count _weights))));
if(!isNil "_array") then {
if (DZE_MissionLootTable) then {
_loot_count = getNumber(missionConfigFile >> "CfgMagazines" >> _loot >> "count");
} else {
_loot_count = getNumber(configFile >> "CfgMagazines" >> _loot >> "count");
};
if(_loot_count>1) then {
_agent addMagazine [_loot, ceil(random _loot_count)];
} else {
_agent addMagazine _loot;
};
};
};
};
//Start behavior
_id = [_position,_agent] execFSM "\z\AddOns\dayz_code\system\zombie_agent.fsm";