mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-05-15 15:13:22 +03:00
Merge pull request #1082 from Fank/Feature/1072
Added DZE_StaticConstructionCount
This commit is contained in:
@@ -390,9 +390,14 @@ if (_hasrequireditem) then {
|
|||||||
|
|
||||||
_limit = 3;
|
_limit = 3;
|
||||||
|
|
||||||
|
if (DZE_StaticConstructionCount > 0) then {
|
||||||
|
_limit = DZE_StaticConstructionCount;
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then {
|
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then {
|
||||||
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount");
|
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount");
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
|
||||||
_isOk = true;
|
_isOk = true;
|
||||||
_proceed = false;
|
_proceed = false;
|
||||||
|
|||||||
@@ -36,8 +36,13 @@ _isMine = _objType in ["Land_iron_vein_wreck","Land_silver_vein_wreck","Land_gol
|
|||||||
_isModular = _obj isKindOf "ModularItems";
|
_isModular = _obj isKindOf "ModularItems";
|
||||||
|
|
||||||
_limit = 3;
|
_limit = 3;
|
||||||
|
if (DZE_StaticConstructionCount > 0) then {
|
||||||
|
_limit = DZE_StaticConstructionCount;
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then {
|
if (isNumber (configFile >> "CfgVehicles" >> _objType >> "constructioncount")) then {
|
||||||
_limit = getNumber(configFile >> "CfgVehicles" >> _objType >> "constructioncount");
|
_limit = getNumber(configFile >> "_objType" >> _classname >> "constructioncount");
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];
|
_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];
|
||||||
|
|||||||
@@ -505,6 +505,9 @@ if(isNil "DZE_HeliLift") then {
|
|||||||
if(isNil "DZE_DamageBeforeMaint") then {
|
if(isNil "DZE_DamageBeforeMaint") then {
|
||||||
DZE_DamageBeforeMaint = 0.09;
|
DZE_DamageBeforeMaint = 0.09;
|
||||||
};
|
};
|
||||||
|
if(isNil "DZE_StaticConstructionCount") then {
|
||||||
|
DZE_StaticConstructionCount = 0;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
// needed on server
|
// needed on server
|
||||||
|
|||||||
Reference in New Issue
Block a user