Change scope and type of configs from name to numbers

This got discussed earlier. Since epoch got merged with DayZ Mod we have a different name for the scope and type of configs.  A proper config should use numbers for those entries. This is the same how arma configs are written.  The basicDefines.hpp has all the needed information stored.

Also, this removes the weight entries from the magazines since we have them in a separate folder, so admins can edit them.
This commit is contained in:
A Man
2020-05-29 02:04:06 +02:00
parent 4040b784b5
commit d9b9874532
291 changed files with 3439 additions and 3069 deletions

View File

@@ -1,19 +1,23 @@
class bulk: CA_Magazine {
scope = public;
class bulk: CA_Magazine
{
scope = 2;
count = 1;
type = 256;
displayName = $STR_EPOCH_BULK_NAME;
model = "\z\addons\dayz_epoch\models\supply_crate.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_wooden_crate_ca.paa";
descriptionShort = $STR_EPOCH_BULK_DESC;
weight = 5;
};
class bulk_empty: bulk {
class bulk_empty: bulk
{
displayName = $STR_EPOCH_BULK_DISP_EMPTY;
descriptionShort = $STR_EPOCH_BULK_DESC_EMPTY;
weight = 5;
class ItemActions {
class Crafting {
class ItemActions
{
class Crafting
{
text = $STR_EPOCH_PLAYER_221;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -21,7 +25,8 @@ class bulk_empty: bulk {
output[] = {{"bulk_ItemSodaCoke",1}};
input[] = {{"bulk_empty",1},{"ItemSodaCoke",6}};
};
class Crafting1 {
class Crafting1
{
text = $STR_EPOCH_PLAYER_222;
script = ";['Crafting1','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -30,7 +35,8 @@ class bulk_empty: bulk {
input[] = {{"bulk_empty",1},{"ItemSodaPepsi",6}};
};
class Crafting2 {
class Crafting2
{
text = $STR_EPOCH_PLAYER_223;
script = ";['Crafting2','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -38,7 +44,8 @@ class bulk_empty: bulk {
output[] = {{"bulk_PartGenericHalf",1}};
input[] = {{"bulk_empty",1},{"PartGeneric",6}};
};
class Crafting3 {
class Crafting3
{
text = $STR_EPOCH_PLAYER_224;
script = ";['Crafting3','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -46,7 +53,8 @@ class bulk_empty: bulk {
output[] = {{"bulk_ItemTankTrapHalf",1}};
input[] = {{"bulk_empty",1},{"ItemTankTrap",6}};
};
class Crafting4 {
class Crafting4
{
text = $STR_EPOCH_PLAYER_225;
script = ";['Crafting4','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -54,7 +62,8 @@ class bulk_empty: bulk {
output[] = {{"bulk_ItemWireHalf",1}};
input[] = {{"bulk_empty",1},{"ItemWire",6}};
};
class Crafting5 {
class Crafting5
{
text = $STR_EPOCH_PLAYER_226;
script = ";['Crafting5','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -65,17 +74,21 @@ class bulk_empty: bulk {
};
};
class bulk_ItemSodaCoke: bulk {
class bulk_ItemSodaCoke: bulk
{
displayName = $STR_EPOCH_BULK_DISP_SODACOKE_HALF;
descriptionShort = $STR_EPOCH_BULK_DESC_SODACOKE_HALF;
weight = 6;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemSodaCoke",6,"magazine"};
};
class Crafting {
class Crafting
{
text = $STR_EPOCH_PLAYER_221;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -85,12 +98,16 @@ class bulk_ItemSodaCoke: bulk {
};
};
};
class bulk_ItemSodaCokeFull: bulk {
class bulk_ItemSodaCokeFull: bulk
{
displayName = $STR_EPOCH_BULK_DISP_SODACOKE_FULL;
descriptionShort = $STR_EPOCH_BULK_DESC_SODACOKE_FULL;
weight = 7;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemSodaCoke",12,"magazine"};
@@ -98,17 +115,21 @@ class bulk_ItemSodaCokeFull: bulk {
};
};
class bulk_ItemSodaPepsi: bulk {
class bulk_ItemSodaPepsi: bulk
{
displayName = $STR_EPOCH_BULK_DISP_SODAPEPSI_HALF;
descriptionShort = $STR_EPOCH_BULK_DESC_SODAPEPSI_HALF;
weight = 6;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemSodaPepsi",6,"magazine"};
};
class Crafting {
class Crafting
{
text = $STR_EPOCH_PLAYER_222;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -118,12 +139,15 @@ class bulk_ItemSodaPepsi: bulk {
};
};
};
class bulk_ItemSodaPepsiFull: bulk {
class bulk_ItemSodaPepsiFull: bulk
{
displayName = $STR_EPOCH_BULK_DISP_SODAPEPSI_FULL;
descriptionShort = $STR_EPOCH_BULK_DESC_SODAPEPSI_FULL;
weight = 7;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemSodaPepsi",12,"magazine"};
@@ -131,17 +155,21 @@ class bulk_ItemSodaPepsiFull: bulk {
};
};
class bulk_FoodbaconCooked: bulk {
class bulk_FoodbaconCooked: bulk
{
displayName = $STR_EPOCH_BULK_DISP_BACON_HALF;
descriptionShort = $STR_EPOCH_BULK_DESC_BACON_HALF;
weight = 5;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"FoodbaconCooked",6,"magazine"};
};
class Crafting {
class Crafting
{
text = $STR_EPOCH_PLAYER_227;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -154,9 +182,11 @@ class bulk_FoodbaconCooked: bulk {
class bulk_FoodbaconCookedFull: bulk {
displayName = $STR_EPOCH_BULK_DISP_BACON_FULL;
descriptionshort = $STR_EPOCH_BULK_DESC_BACON_FULL;
weight = 5;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"FoodbaconCooked",12,"magazine"};
@@ -165,48 +195,60 @@ class bulk_FoodbaconCookedFull: bulk {
};
// Ammo
class bulk_17Rnd_9x19_glock17: bulk {
class bulk_17Rnd_9x19_glock17: bulk
{
displayName = $STR_EPOCH_BULK_DISP_G17;
descriptionShort = $STR_EPOCH_BULK_DESC_G17;
weight = 17;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"17Rnd_9x19_glock17",12,"magazine"};
};
};
};
class bulk_15Rnd_9x19_M9SD: bulk {
class bulk_15Rnd_9x19_M9SD: bulk
{
displayName = $STR_EPOCH_BULK_DISP_M9SD;
descriptionShort = $STR_EPOCH_BULK_DESC_M9SD;
weight = 17;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"15Rnd_9x19_M9SD",12,"magazine"};
};
};
};
class bulk_30Rnd_9x19_MP5SD: bulk {
class bulk_30Rnd_9x19_MP5SD: bulk
{
displayName = $STR_EPOCH_BULK_DISP_MP5SD;
descriptionShort = $STR_EPOCH_BULK_DESC_MP5SD;
weight = 18;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"30Rnd_9x19_MP5SD",12,"magazine"};
};
};
};
class bulk_30Rnd_556x45_StanagSD: bulk {
class bulk_30Rnd_556x45_StanagSD: bulk
{
displayName = $STR_EPOCH_BULK_DISP_STANAGSD;
descriptionShort = $STR_EPOCH_BULK_DESC_STANAGSD;
weight = 20;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"30Rnd_556x45_StanagSD",12,"magazine"};
@@ -214,12 +256,15 @@ class bulk_30Rnd_556x45_StanagSD: bulk {
};
};
class bulk_ItemSandbag: bulk {
class bulk_ItemSandbag: bulk
{
displayName = $STR_EPOCH_BULK_DISP_SANDBAG;
descriptionShort = $STR_EPOCH_BULK_DESC_SANDBAG;
weight = 60;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemSandbag",12,"magazine"};
@@ -227,29 +272,36 @@ class bulk_ItemSandbag: bulk {
};
};
class bulk_ItemTankTrap: bulk {
class bulk_ItemTankTrap: bulk
{
displayName = $STR_EPOCH_BULK_DISP_TANKTRAP_FULL;
descriptionShort = $STR_EPOCH_BULK_DESC_TANKTRAP_FULL;
weight = 25;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemTankTrap",12,"magazine"};
};
};
};
class bulk_ItemTankTrapHalf: bulk {
class bulk_ItemTankTrapHalf: bulk
{
displayName = $STR_EPOCH_BULK_DISP_TANKTRAP_HALF;
descriptionShort = $STR_EPOCH_BULK_DESC_TANKTRAP_HALF;
weight = 12.5;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemTankTrap",6,"magazine"};
};
class Crafting {
class Crafting
{
text = $STR_EPOCH_PLAYER_224;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -260,29 +312,36 @@ class bulk_ItemTankTrapHalf: bulk {
};
};
class bulk_ItemWire: bulk {
class bulk_ItemWire: bulk
{
displayName = $STR_EPOCH_BULK_DISP_WIREKIT_FULL;
descriptionShort = $STR_EPOCH_BULK_DESC_WIREKIT_FULL;
weight = 25;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemWire",12,"magazine"};
};
};
};
class bulk_ItemWireHalf: bulk {
class bulk_ItemWireHalf: bulk
{
displayName = $STR_EPOCH_BULK_DISP_WIREKIT_HALF;
descriptionShort = $STR_EPOCH_BULK_DESC_WIREKIT_HALF;
weight = 12.5;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"ItemWire",6,"magazine"};
};
class Crafting {
class Crafting
{
text = $STR_EPOCH_PLAYER_225;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};
@@ -293,29 +352,36 @@ class bulk_ItemWireHalf: bulk {
};
};
class bulk_PartGeneric: bulk {
class bulk_PartGeneric: bulk
{
displayName = $STR_EPOCH_BULK_DISP_GENERIC_FULL;
descriptionShort = $STR_EPOCH_BULK_DESC_GENERIC_FULL;
weight = 60;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"PartGeneric",12,"magazine"};
};
};
};
class bulk_PartGenericHalf: bulk {
class bulk_PartGenericHalf: bulk
{
displayName = $STR_EPOCH_BULK_DISP_GENERIC_HALF;
descriptionShort = $STR_EPOCH_BULK_DESC_GENERIC_HALF;
weight = 30;
class ItemActions {
class CreateMags {
class ItemActions
{
class CreateMags
{
text = $STR_EPOCH_ACTIONS_OPEN;
script = "spawn player_loadCrate;";
output[] = {"PartGeneric",6,"magazine"};
};
class Crafting {
class Crafting
{
text = $STR_EPOCH_PLAYER_223;
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
neednearby[] = {};