1.0.1.1 RC1

+ [FIXED] Can now fill jerry cans from standard fuel tanks again.
+ [ADDED] Override local zombie count while in vehicle
dayz_zedSpawnVehCount (default: dayz_maxLocalZombies / 2)
+ [ADDED] Override local zombie count while in vehicle
dayz_spawnAirCount (default: 5)
+ [FIXED] Bug with new safe model shadow fixed.
+ [FIXED] Check that items and weapons are removed during weapon trades.
+ [FIXED] Added message when attempting to sell a vehicle with more than
75% average tire damage.
+ [FIXED] Safe codes starting with 0### now work after server restarts.
fixes #400
+ [CHANGED] Re-indexed all loot tables.
+ [FIXED] Fix for no melee ammo after clothing switch.
+ [ADDED] New 55 gallon fuel barrel. Fixes glitching with old one.
+ [CHANGED] When building plot pole you will now get a message if
building to close to another pole (45m).
This commit is contained in:
vbawol
2013-06-01 12:28:59 -05:00
parent f6d2b2a2c0
commit d1796aeee5
12 changed files with 68 additions and 17 deletions

View File

@@ -22,20 +22,28 @@ _require = getArray (configFile >> "cfgMagazines" >> _this >> "ItemActions" >>
_text = getText (configFile >> "CfgVehicles" >> _classname >> "displayName");
_offset = getArray (configFile >> "CfgVehicles" >> _classname >> "offset");
_isPole = (_classname == "Plastic_Pole_EP1_DZ");
_distance = 30;
if(_isPole) then {
_distance = 45;
};
// check for near plot
_findNearestPoles = nearestObjects [(vehicle player), ["Plastic_Pole_EP1_DZ"], 30];
_findNearestPoles = nearestObjects [(vehicle player), ["Plastic_Pole_EP1_DZ"], _distance];
_findNearestPole = [];
{if (alive _x) then {_findNearestPole set [(count _findNearestPole),_x];};} foreach _findNearestPoles;
_IsNearPlot = count (_findNearestPole);
// If item is plot pole and another one exists within 45m
if(_isPole and _IsNearPlot > 0) exitWith { TradeInprogress = false; cutText ["Cannot build plot pole within 45m of an existing plot." , "PLAIN DOWN"]; };
if(_IsNearPlot == 0) then {
// Allow building of plot
if(_classname == "Plastic_Pole_EP1_DZ") then {
if({alive _x} count (nearestObjects[(vehicle player), ["Plastic_Pole_EP1_DZ"], 45]) == 0) then {
_canBuildOnPlot = true;
};
if(_isPole) then {
_canBuildOnPlot = true;
};
} else {
@@ -50,14 +58,14 @@ if(_IsNearPlot == 0) then {
// check if friendly to owner
if(dayz_characterID == _ownerID) then {
// owner can build anything within his plot except other plots witin
if(_classname != "Plastic_Pole_EP1_DZ") then {
// owner can build anything within his plot except other plots
if(!_isPole) then {
_canBuildOnPlot = true;
};
} else {
// disallow building plot
if(_classname != "Plastic_Pole_EP1_DZ") then {
if(!_isPole) then {
_friendlies = player getVariable ["friendlyTo",[]];
// check if friendly to owner
if(_ownerID in _friendlies) then {
@@ -69,7 +77,7 @@ if(_IsNearPlot == 0) then {
};
// _message
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText ["Building requires plot pole within 30m" , "PLAIN DOWN"]; };
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText ["Building requires plot pole within 30m." , "PLAIN DOWN"]; };
_missing = "";
_hasrequireditem = true;
@@ -162,7 +170,6 @@ if (_hasrequireditem) then {
player allowDamage true;
// testing new way of finding building
_buildings = nearestObjects [(vehicle player), ["Building"], 100];
{