Added DZE_StaticConstructionCount

with DZE_StaticConstructionCount you will force the constructioncount
This commit is contained in:
Florian Kinder
2014-02-06 18:51:45 +01:00
parent 6b60d77aaf
commit f999a0f02b
2 changed files with 133 additions and 125 deletions

View File

@@ -390,9 +390,14 @@ if (_hasrequireditem) then {
_limit = 3;
if (DZE_StaticConstructionCount > 0) then {
_limit = DZE_StaticConstructionCount;
}
else {
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then {
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount");
};
};
_isOk = true;
_proceed = false;

View File

@@ -505,6 +505,9 @@ if(isNil "DZE_HeliLift") then {
if(isNil "DZE_DamageBeforeMaint") then {
DZE_DamageBeforeMaint = 0.09;
};
if(isNil "DZE_StaticConstructionCount") then {
DZE_StaticConstructionCount = 0;
};
// needed on server