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,11 +1,10 @@
class ItemSledge: ItemCore // Epoch class
{
scope = public;
model="\z\addons\dayz_epoch\models\sledge_mag.p3d";
picture="\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa";
displayName=$STR_EQUIP_NAME_SledgeHammer;
descriptionShort=$STR_EQUIP_SLEDGE_DESC;
scope = 2;
model = "\z\addons\dayz_epoch\models\sledge_mag.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa";
displayName = $STR_EQUIP_NAME_SledgeHammer;
descriptionShort = $STR_EQUIP_SLEDGE_DESC;
class ItemActions
{
@@ -24,30 +23,23 @@ class ItemSledge: ItemCore // Epoch class
use[] = {"ItemSledge"};
output[] = {"MeleeSledge"};
};
/* Lets take this out for now and see how it goes.
class MineOre
{
text="Mine Ore";
script="spawn player_mineOre;";
};
*/
};
};
class ItemSledgeBroken: ItemSledge // Epoch class
class ItemSledgeBroken: ItemCore
{
scope = 2;
model = "\z\addons\dayz_epoch\models\sledge_mag.p3d";
picture = "\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa";
displayName = $STR_name_ItemSledgeHammerBroken;
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
class ItemActions {};
};
//Vanilla sledge is using a different model.
//All scripts have been changed to use Epoch ItemSledge, but leave this defined in case admins want to use it for something.
class ItemSledgeHammer : ItemCore
{
scope = public;
scope = 2;
model = "z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.p3d";
picture = "\z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.paa";
displayName = $STR_EQUIP_NAME_SledgeHammer;
@@ -56,13 +48,11 @@ class ItemSledgeHammer : ItemCore
class ItemSledgeHammerBroken : ItemCore
{
scope = public;
scope = 2;
model = "z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.p3d";
picture = "\z\addons\dayz_communityweapons\models\sledge_hammer\sledgehammer.paa";
displayName = $STR_name_ItemSledgeHammerBroken;
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
descriptionShort = $STR_desc_ItemSledgeHammerBroken;
fixedTool = "ItemSledgeHammer";
class ItemActions