+ Added 10oz gold bars
+ Added recipes for crafting 1 and 10oz gold bars
+ typo fixed in new sell menu color coding.
+ test to see if m113 can have cargo
+ kill messages added to server side array
+ info board added: Recent Player Deaths from server array.
+ fixed size of bronze bars
This commit is contained in:
vbawol
2013-02-11 13:24:56 -06:00
parent 966308d686
commit bf6d87514b
22 changed files with 202 additions and 29 deletions

View File

@@ -5,15 +5,15 @@ _config = configFile >> "CfgBuildingLoot" >> _type;
_canLoot = isClass (_config);
_originalPos = getPosATL _obj;
if (_canLoot) then {
if (_canLoot and placevault) then {
//Get zombie class
_unitTypes = getArray (_config >> "zombieClass");
_min = getNumber (_config >> "minRoaming");
_max = getNumber (_config >> "maxRoaming");
//Walking Zombies
//Walking Zombies
_num = round(random _max) min _min;
_config = configFile >> "CfgBuildingLoot" >> _type;
//Get zombie class
//Get zombie class
_zombieChance = getNumber (_config >> "zombieChance");
_rnd = random 0.5;
_chance = round(random 20);
@@ -21,23 +21,22 @@ if (_canLoot) then {
//if (_rnd < _zombieChance) then {
if ((_chance % 2) == 0) then {
_noPlayerNear = (count ((getPosATL _obj) nearEntities ["CAManBase",30])) == 0;
_noPlayerNear = (count ((getPosATL _obj) nearEntities ["CAManBase",30])) == 0;
if (_noPlayerNear) then {
if (_noPlayerNear) then {
_position = _obj buildingExit 0;
if ((_position select 0) == 0) then {
_position = getPosATL _obj;
_position = _obj buildingExit 0;
if ((_position select 0) == 0) then {
_position = getPosATL _obj;
};
//diag_log ("Class: " + _type + " / Zombies: " + str(_unitTypes) + " / Walking: " + str(_num));
for "_i" from 1 to _num do
{
[_position,_unitTypes] call zombie_generate;
};
};
//diag_log ("Class: " + _type + " / Zombies: " + str(_unitTypes) + " / Walking: " + str(_num));
for "_i" from 1 to _num do
{
[_position,_unitTypes] call zombie_generate;
};
};
};
//Add Internal Zombies
_clean = {alive _x} count ((getPosATL _obj) nearEntities ["zZombie_Base",(sizeOf _type)]) == 0;