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,8 +390,13 @@ if (_hasrequireditem) then {
_limit = 3; _limit = 3;
if(isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then { if (DZE_StaticConstructionCount > 0) then {
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount"); _limit = DZE_StaticConstructionCount;
}
else {
if (isNumber (configFile >> "CfgVehicles" >> _classname >> "constructioncount")) then {
_limit = getNumber(configFile >> "CfgVehicles" >> _classname >> "constructioncount");
};
}; };
_isOk = true; _isOk = true;

View File

@@ -18,26 +18,26 @@ AllPlayers = ["Survivor2_DZ","SurvivorWcombat_DZ","SurvivorWdesert_DZ","Survivor
//Cooking //Cooking
meatraw = [ meatraw = [
"FoodSteakRaw", "FoodSteakRaw",
"FoodmeatRaw", "FoodmeatRaw",
"FoodbeefRaw", "FoodbeefRaw",
"FoodmuttonRaw", "FoodmuttonRaw",
"FoodchickenRaw", "FoodchickenRaw",
"FoodrabbitRaw", "FoodrabbitRaw",
"FoodbaconRaw", "FoodbaconRaw",
"ItemTrout", "ItemTrout",
"ItemSeaBass", "ItemSeaBass",
"ItemTuna" "ItemTuna"
]; ];
exceptionsraw = ["ItemTuna"]; exceptionsraw = ["ItemTuna"];
meatcooked = [ meatcooked = [
"FoodSteakCooked", "FoodSteakCooked",
"FoodmeatCooked", "FoodmeatCooked",
"FoodbeefCooked", "FoodbeefCooked",
"FoodmuttonCooked", "FoodmuttonCooked",
"FoodchickenCooked", "FoodchickenCooked",
"FoodrabbitCooked", "FoodrabbitCooked",
"FoodbaconCooked", "FoodbaconCooked",
"ItemTroutCooked", "ItemTroutCooked",
"ItemSeaBassCooked", "ItemSeaBassCooked",
"ItemTunaCooked" "ItemTunaCooked"
@@ -49,10 +49,10 @@ no_output_food = ["FoodMRE", "FoodPistachio", "FoodNutmix","FoodBioMeat"]+meatco
badfood = ["FoodBioMeat","FoodCanUnlabeled"]; badfood = ["FoodBioMeat","FoodCanUnlabeled"];
food_with_output=[ food_with_output=[
"FoodCanBakedBeans", "FoodCanBakedBeans",
"FoodCanSardines", "FoodCanSardines",
"FoodCanFrankBeans", "FoodCanFrankBeans",
"FoodCanPasta", "FoodCanPasta",
"FoodCanGriff", "FoodCanGriff",
"FoodCanBadguy", "FoodCanBadguy",
"FoodCanBoneboy", "FoodCanBoneboy",
@@ -68,10 +68,10 @@ food_with_output=[
]; ];
food_output = [ food_output = [
"TrashTinCan", "TrashTinCan",
"TrashTinCan", "TrashTinCan",
"TrashTinCan", "TrashTinCan",
"TrashTinCan", "TrashTinCan",
"FoodCanGriffEmpty", "FoodCanGriffEmpty",
"FoodCanBadguyEmpty", "FoodCanBadguyEmpty",
"FoodCanBoneboyEmpty", "FoodCanBoneboyEmpty",
@@ -88,41 +88,41 @@ food_output = [
//Drinking //Drinking
no_output_drink = ["ItemWaterbottle", "ItemWaterbottleBoiled"]; no_output_drink = ["ItemWaterbottle", "ItemWaterbottleBoiled"];
drink_with_output = [ drink_with_output = [
"ItemSoda", //just to define item for ItemSodaEmpty "ItemSoda", //just to define item for ItemSodaEmpty
"ItemSodaRbull", "ItemSodaRbull",
"ItemSodaOrangeSherbet", "ItemSodaOrangeSherbet",
"ItemSodaCoke", "ItemSodaCoke",
"ItemSodaPepsi", "ItemSodaPepsi",
"ItemSodaMdew", "ItemSodaMdew",
"ItemSodaMtngreen", "ItemSodaMtngreen",
"ItemSodaR4z0r", "ItemSodaR4z0r",
"ItemSodaClays", "ItemSodaClays",
"ItemSodaSmasht", "ItemSodaSmasht",
"ItemSodaDrwaste", "ItemSodaDrwaste",
"ItemSodaLemonade", "ItemSodaLemonade",
"ItemSodaLvg", "ItemSodaLvg",
"ItemSodaMzly", "ItemSodaMzly",
"ItemSodaRabbit" "ItemSodaRabbit"
]; ];
drink_output = [ drink_output = [
"ItemSodaEmpty",
"ItemSodaEmpty", "ItemSodaEmpty",
"ItemSodaEmpty", "ItemSodaEmpty",
"ItemSodaCokeEmpty", "ItemSodaEmpty",
"ItemSodaPepsiEmpty", "ItemSodaCokeEmpty",
"ItemSodaMdewEmpty", "ItemSodaPepsiEmpty",
"ItemSodaMtngreenEmpty", "ItemSodaMdewEmpty",
"ItemSodaR4z0rEmpty", "ItemSodaMtngreenEmpty",
"ItemSodaClaysEmpty", "ItemSodaR4z0rEmpty",
"ItemSodaSmashtEmpty", "ItemSodaClaysEmpty",
"ItemSodaDrwasteEmpty", "ItemSodaSmashtEmpty",
"ItemSodaLemonadeEmpty", "ItemSodaDrwasteEmpty",
"ItemSodaLvgEmpty", "ItemSodaLemonadeEmpty",
"ItemSodaMzlyEmpty", "ItemSodaLvgEmpty",
"ItemSodaRabbitEmpty" "ItemSodaMzlyEmpty",
"ItemSodaRabbitEmpty"
]; ];
boil_tin_cans = [ boil_tin_cans = [
"TrashTinCan", "TrashTinCan",
"FoodCanGriffEmpty", "FoodCanGriffEmpty",
"FoodCanBadguyEmpty", "FoodCanBadguyEmpty",
"FoodCanBoneboyEmpty", "FoodCanBoneboyEmpty",
@@ -135,19 +135,19 @@ boil_tin_cans = [
"FoodCanPowellEmpty", "FoodCanPowellEmpty",
"FoodCanTylersEmpty", "FoodCanTylersEmpty",
"FoodCanUnlabeledEmpty", "FoodCanUnlabeledEmpty",
"ItemSodaEmpty", "ItemSodaEmpty",
"ItemSodaCokeEmpty", "ItemSodaCokeEmpty",
"ItemSodaPepsiEmpty", "ItemSodaPepsiEmpty",
"ItemSodaMdewEmpty", "ItemSodaMdewEmpty",
"ItemSodaMtngreenEmpty", "ItemSodaMtngreenEmpty",
"ItemSodaR4z0rEmpty", "ItemSodaR4z0rEmpty",
"ItemSodaClaysEmpty", "ItemSodaClaysEmpty",
"ItemSodaSmashtEmpty", "ItemSodaSmashtEmpty",
"ItemSodaDrwasteEmpty", "ItemSodaDrwasteEmpty",
"ItemSodaLemonadeEmpty", "ItemSodaLemonadeEmpty",
"ItemSodaLvgEmpty", "ItemSodaLvgEmpty",
"ItemSodaMzlyEmpty", "ItemSodaMzlyEmpty",
"ItemSodaRabbitEmpty" "ItemSodaRabbitEmpty"
]; ];
dayz_combination = ""; dayz_combination = "";
@@ -245,7 +245,7 @@ dayz_resetSelfActions = {
s_halo_action = -1; s_halo_action = -1;
s_player_SurrenderedGear = -1; s_player_SurrenderedGear = -1;
s_player_maintain_area = -1; s_player_maintain_area = -1;
s_player_maintain_area_preview = -1; s_player_maintain_area_preview = -1;
s_player_heli_lift = -1; s_player_heli_lift = -1;
s_player_heli_detach = -1; s_player_heli_detach = -1;
}; };
@@ -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