mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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:
@@ -1,15 +1,18 @@
|
||||
class ItemDocument: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemDocument: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_DOCUMENT;
|
||||
model = "\z\addons\dayz_epoch\models\doc_generic.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_doc_generic_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_DOCUMENT_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Crafting {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_188;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {};
|
||||
@@ -21,18 +24,21 @@ class ItemDocument: CA_Magazine {
|
||||
};
|
||||
};
|
||||
|
||||
class ItemPlotDeed: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemPlotDeed: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_PLOTDEED;
|
||||
model = "\z\addons\dayz_epoch\models\doc_generic.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_doc_generic_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_PLOTDEED_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Crafting {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLOTDEED_ACTION;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
@@ -43,70 +49,71 @@ class ItemPlotDeed: CA_Magazine {
|
||||
};
|
||||
};
|
||||
|
||||
class ItemLetter: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemLetter: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_LETTER;
|
||||
model = "\z\addons\dayz_epoch\models\doc_letter.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_doc_letter_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_LETTER_DESC;
|
||||
weight = 0.1;
|
||||
};
|
||||
|
||||
class ItemBook1: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemBook1: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_ROMANCENOVEL;
|
||||
model = "\z\addons\dayz_epoch\models\doc_trashy1.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_trashy1_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_ROMANCENOVEL_DESC;
|
||||
weight = 0.1;
|
||||
};
|
||||
|
||||
class ItemBook2: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemBook2: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_ROMANCENOVEL;
|
||||
model = "\z\addons\dayz_epoch\models\doc_trashy2.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_trashy2_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_ROMANCENOVEL_DESC2;
|
||||
weight = 0.1;
|
||||
};
|
||||
|
||||
class ItemBook3: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemBook3: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_BOOK;
|
||||
model = "\z\addons\dayz_epoch\models\doc_child1.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_child1_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_BOOK_DESC;
|
||||
weight = 0.1;
|
||||
};
|
||||
|
||||
class ItemBook4: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemBook4: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_BOOK;
|
||||
model = "\z\addons\dayz_epoch\models\doc_child2.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_child2_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_BOOK_DESC;
|
||||
weight = 0.1;
|
||||
};
|
||||
|
||||
class ItemNewspaper: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemNewspaper: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_TORNNEWSPAPER;
|
||||
model = "\z\addons\dayz_epoch\models\doc_deaths.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_deaths_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_TORNNEWSPAPER_DESC;
|
||||
weight = 0.1;
|
||||
|
||||
class ItemActions {
|
||||
class Obituaries {
|
||||
text = $STR_EPOCH_TORNNEWSPAPER_ACTION;
|
||||
@@ -115,17 +122,20 @@ class ItemNewspaper: CA_Magazine {
|
||||
};
|
||||
};
|
||||
|
||||
class ItemDocumentRamp: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemDocumentRamp: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_WOODRAMP;
|
||||
model = "\z\addons\dayz_epoch\models\doc_ramp.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_doc_ramp_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_WOODRAMP_DESC;
|
||||
weight = 0.1;
|
||||
class ItemActions {
|
||||
class Crafting {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Crafting
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_189;
|
||||
script = ";['Crafting','CfgMagazines', _id] spawn player_craftItem;";
|
||||
neednearby[] = {"workshop"};
|
||||
@@ -138,10 +148,9 @@ class ItemDocumentRamp: CA_Magazine {
|
||||
|
||||
class ItemBookBible : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = WeaponSlotItem;
|
||||
|
||||
type = 256;
|
||||
model = "z\addons\dayz_communityassets\models\bible.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_bible_CA.paa";
|
||||
displayName = $STR_BOOK_NAME_BIBLE;
|
||||
@@ -150,10 +159,9 @@ class ItemBookBible : CA_Magazine
|
||||
|
||||
class ItemTrashPaper : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = WeaponSlotItem;
|
||||
|
||||
type = 256;
|
||||
model = "z\addons\dayz_communityassets\models\paper_sheet_clean_note.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_paper_sheet_note_ca.paa";
|
||||
displayName = $STR_name_ItemTrashPaper;
|
||||
@@ -162,18 +170,18 @@ class ItemTrashPaper : CA_Magazine
|
||||
|
||||
class ItemTrashPaperMusic : CA_Magazine
|
||||
{
|
||||
scope = public;
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = WeaponSlotItem;
|
||||
|
||||
type = 256;
|
||||
model = "z\addons\dayz_communityassets\models\paper_sheet_musical.p3d";
|
||||
picture = "\z\addons\dayz_communityassets\pictures\equip_paper_sheet_musical_ca.paa";
|
||||
displayName = $STR_name_ItemTrashPaperMusic;
|
||||
descriptionShort = $STR_desc_ItemTrashPaperMusic;
|
||||
};
|
||||
|
||||
class equip_paper_sheet : CA_Magazine {
|
||||
scope = public;
|
||||
class equip_paper_sheet : CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
displayName = $STR_ITEM_NAME_equip_paper_sheet;
|
||||
descriptionShort = $STR_ITEM_DESC_equip_paper_sheet;
|
||||
@@ -181,8 +189,9 @@ class equip_paper_sheet : CA_Magazine {
|
||||
type = 256;
|
||||
};
|
||||
|
||||
class equip_note : CA_Magazine {
|
||||
scope = public;
|
||||
class equip_note : CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
displayName = $STR_ITEM_NAME_equip_note;
|
||||
descriptionShort = $STR_ITEM_DESC_equip_note;
|
||||
@@ -191,90 +200,105 @@ class equip_note : CA_Magazine {
|
||||
};
|
||||
|
||||
// Vehicle upgrade parts
|
||||
class ItemORP: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemORP: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_VEHUP_ORP;
|
||||
model = "\z\addons\dayz_epoch\models\doc_Up1.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_docup1_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_VEHUP_ORP_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Upgrades {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Upgrades
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_UPGRADEV;
|
||||
script = "spawn player_upgradeVehicle;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemAVE: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemAVE: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_VEHUP_AVE;
|
||||
model = "\z\addons\dayz_epoch\models\doc_Up2.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_docup2_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_VEHUP_AVE_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Upgrades {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Upgrades
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_UPGRADEV;
|
||||
script = "spawn player_upgradeVehicle;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemLRK: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemLRK: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_VEHUP_LRK;
|
||||
model = "\z\addons\dayz_epoch\models\doc_Up3.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_docup3_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_VEHUP_LRK_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Upgrades {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Upgrades
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_UPGRADEV;
|
||||
script = "spawn player_upgradeVehicle;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemTNK: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemTNK: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_VEHUP_TNK;
|
||||
model = "\z\addons\dayz_epoch\models\doc_Up4.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_docup4_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_VEHUP_TNK_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Upgrades {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Upgrades
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_UPGRADEV;
|
||||
script = "spawn player_upgradeVehicle;";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
class ItemARM: CA_Magazine {
|
||||
scope = public;
|
||||
class ItemARM: CA_Magazine
|
||||
{
|
||||
scope = 2;
|
||||
count = 1;
|
||||
type = 256;
|
||||
displayName = $STR_EPOCH_VEHUP_ARM;
|
||||
model = "\z\addons\dayz_epoch\models\doc_Up4.p3d";
|
||||
picture = "\z\addons\dayz_epoch\pictures\equip_docup4_ca.paa";
|
||||
descriptionShort = $STR_EPOCH_VEHUP_ARM_DESC;
|
||||
weight = 0.1;
|
||||
sfx = "document";
|
||||
class ItemActions {
|
||||
class Upgrades {
|
||||
|
||||
class ItemActions
|
||||
{
|
||||
class Upgrades
|
||||
{
|
||||
text = $STR_EPOCH_PLAYER_UPGRADEV;
|
||||
script = "spawn player_upgradeVehicle;";
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user