Add more broken tool versions

This commit is contained in:
A Man
2020-04-06 21:54:41 +02:00
parent 49f421c0cb
commit 95de5bb914
23 changed files with 329 additions and 152 deletions

View File

@@ -3,4 +3,10 @@ class ItemAPSI_DZE : ItemCore {
displayName = $STR_EQUIP_APSI;
picture = "\dayz_epoch_c\icons\tools\ItemAPSI.paa";
descriptionShort = $STR_EQUIP_APSI_DESC;
};
class ItemAPSIBroken_DZE : ItemAPSI_DZE {
displayName = $STR_EQUIP_APSI_BROKEN;
descriptionShort = $STR_EQUIP_APSI_BROKEN_DESC;
picture = "\dayz_epoch_c\icons\tools\ItemAPSI.paa";
};

View File

@@ -9,4 +9,13 @@ class ItemEtool : ItemCore
stashsmall = "StashSmall";
stashmedium = "StashMedium";
consume = "ItemSandbag";
};
class ItemEtoolBroken : ItemCore
{
scope = public;
model = "\dayz_equip\models\etool.p3d";
picture = "\dayz_equip\textures\equip_etool_ca.paa";
displayName = $STR_EQUIP_NAME_1_BROKEN;
descriptionShort = $STR_EQUIP_DESC_1_BROKEN;
};

View File

@@ -37,4 +37,11 @@ class ItemFishingPole : ItemCore
};
};
};
};
class ItemFishingPoleBroken : ItemFishingPole
{
displayName = $STR_ITEM_NAME_FISHINGPOLEBROKEN;
descriptionShort = $STR_ITEM_DESC_FISHINGPOLE_BROKEN;
class ItemActions {};
};

View File

@@ -1,55 +0,0 @@
class ItemFlashlight : ItemCore
{
scope = public;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5;
descriptionShort = $STR_EQUIP_DESC_5;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemFlashlight"};
output[] = {"MeleeFlashlight"};
};
};
};
class MeleeFlashlight : Pistol
{
scope = public;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5;
descriptionShort = $STR_EQUIP_DESC_5;
modelOptics = "-";
magazines[] = {};
class FlashLight
{
color[] = {0.9, 0.9, 0.7, 0.9};
ambient[] = {0.1, 0.1, 0.1, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.1;
};
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeFlashlight"};
output[] = {"ItemFlashlight"};
};
};
};

View File

@@ -1,48 +0,0 @@
class ItemFlashlightRed : ItemFlashlight
{
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6;
descriptionShort = $STR_EQUIP_DESC_6;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemFlashlightRed"};
output[] = {"MeleeFlashlightRed"};
};
};
};
class MeleeFlashlightRed : MeleeFlashlight
{
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6;
descriptionShort = $STR_EQUIP_DESC_6;
class FlashLight
{
color[] = {0.9, 0.0, 0.0, 0.9};
ambient[] = {0.1, 0.0, 0.0, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.08;
};
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeFlashlightRed"};
output[] = {"ItemFlashlightRed"};
};
};
};

View File

@@ -0,0 +1,118 @@
class ItemFlashlight : ItemCore
{
scope = public;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5;
descriptionShort = $STR_EQUIP_DESC_5;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemFlashlight"};
output[] = {"MeleeFlashlight"};
};
};
};
class ItemFlashlightBroken : ItemFlashlight
{
displayName = $STR_EQUIP_NAME_5_BROKEN;
descriptionShort = $STR_EQUIP_DESC_5_BROKEN;
class ItemActions {};
};
class MeleeFlashlight : Pistol
{
scope = public;
model = "\dayz_equip\models\flashlight.p3d";
picture = "\dayz_equip\textures\equip_flashlight_ca.paa";
displayName = $STR_EQUIP_NAME_5;
descriptionShort = $STR_EQUIP_DESC_5;
modelOptics = "-";
magazines[] = {};
class FlashLight
{
color[] = {0.9, 0.9, 0.7, 0.9};
ambient[] = {0.1, 0.1, 0.1, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.1;
};
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeFlashlight"};
output[] = {"ItemFlashlight"};
};
};
};
class ItemFlashlightRed : ItemFlashlight
{
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6;
descriptionShort = $STR_EQUIP_DESC_6;
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_RFROMTB;
script = "spawn player_addToolbelt;";
use[] = {"ItemFlashlightRed"};
output[] = {"MeleeFlashlightRed"};
};
};
};
class ItemFlashlightRedBroken : ItemFlashlightRed
{
displayName = $STR_EQUIP_NAME_6_BROKEN;
descriptionShort = $STR_EQUIP_DESC_6_BROKEN;
class ItemActions {};
};
class MeleeFlashlightRed : MeleeFlashlight
{
model = "\dayz_equip\models\flashlight_mil.p3d";
picture = "\dayz_equip\textures\equip_flashlight_mil_ca.paa";
displayName = $STR_EQUIP_NAME_6;
descriptionShort = $STR_EQUIP_DESC_6;
class FlashLight
{
color[] = {0.9, 0.0, 0.0, 0.9};
ambient[] = {0.1, 0.0, 0.0, 1};
position = "flash dir";
direction = "flash";
angle = 30;
scale[] = {1, 1, 0.5};
brightness = 0.08;
};
class ItemActions
{
class Toolbelt
{
text = $STR_ACTIONS_2TB;
script = "spawn player_addToolbelt;";
use[] = {"MeleeFlashlightRed"};
output[] = {"ItemFlashlightRed"};
};
};
};

View File

@@ -1,4 +1,12 @@
class ItemGPS : ItemCore
{
model = "z\addons\dayz_communityassets\models\gps.p3d";
};
class ItemGPSBroken_DZE : ItemCore {
scope = public;
displayName = $STR_EQUIP_BROKEN_GPS;
model = "z\addons\dayz_communityassets\models\gps.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemGPSBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_GPS_DESC;
};

View File

@@ -1,7 +0,0 @@
class ItemGPSBroken_DZE : ItemCore {
scope = public;
displayName = $STR_EQUIP_BROKEN_GPS;
model = "z\addons\dayz_communityassets\models\gps.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemGPSBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_GPS_DESC;
};

View File

@@ -1,6 +0,0 @@
class ItemGasmask1_DZE : ItemCore {
scope = public;
picture = "\dayz_epoch_c\icons\tools\ItemGasmask1.paa";
displayName = $STR_EQUIP_GAS_MASK1;
descriptionShort = $STR_EQUIP_GAS_MASK1_DESC;
};

View File

@@ -1,6 +0,0 @@
class ItemGasmask2_DZE : ItemCore {
scope = public;
picture = "\dayz_epoch_c\icons\tools\ItemGasmask2.paa";
displayName = $STR_EQUIP_GAS_MASK2;
descriptionShort = $STR_EQUIP_GAS_MASK2_DESC;
};

View File

@@ -5,3 +5,8 @@ class ItemKeyKit: ItemCore {
descriptionShort=$STR_EQUIP_KEYKIT_DESC;
picture="\z\addons\dayz_epoch\pictures\equip_keykit_ca.paa";
};
class ItemKeyKitBroken: ItemKeyKit {
displayname = $STR_EQUIP_KEYKIT_BROKEN;
descriptionShort = $STR_EQUIP_KEYKIT_BROKEN_DESC;
};

View File

@@ -25,4 +25,11 @@ class ItemMachete : ItemCore
output[] = {"MeleeMachete"};
};
};
};
class ItemMacheteBroken : ItemMachete
{
displayName = $STR_EQUIP_NAME_MACHETE_BROKEN;
descriptionShort = $STR_EQUIP_DESC_MACHETE_BROKEN;
class ItemActions {};
};

View File

@@ -0,0 +1,35 @@
class ItemPilotmask_DZE : ItemCore {
scope = public;
picture = "\dayz_epoch_c\icons\tools\ItemPilotmask.paa";
displayName = $STR_EQUIP_PILOT_MASK;
descriptionShort = $STR_EQUIP_PILOT_MASK_DESC;
};
class ItemPilotmaskBroken_DZE : ItemPilotmask_DZE {
displayName = $STR_EQUIP_PILOT_MASK_BROKEN;
descriptionShort = $STR_EQUIP_PILOT_MASK_BROKEN_DESC;
};
class ItemGasmask1_DZE : ItemCore {
scope = public;
picture = "\dayz_epoch_c\icons\tools\ItemGasmask1.paa";
displayName = $STR_EQUIP_GAS_MASK1;
descriptionShort = $STR_EQUIP_GAS_MASK1_DESC;
};
class ItemGasmask1Broken_DZE : ItemGasmask1_DZE {
displayName = $STR_EQUIP_GAS_MASK1_BROKEN;
descriptionShort = $STR_EQUIP_GAS_MASK1_BROKEN_DESC;
};
class ItemGasmask2_DZE : ItemCore {
scope = public;
picture = "\dayz_epoch_c\icons\tools\ItemGasmask2.paa";
displayName = $STR_EQUIP_GAS_MASK2;
descriptionShort = $STR_EQUIP_GAS_MASK2_DESC;
};
class ItemGasmask2Broken_DZE : ItemGasmask2_DZE {
displayName = $STR_EQUIP_GAS_MASK2_BROKEN;
descriptionShort = $STR_EQUIP_GAS_MASK2_BROKEN_DESC;
};

View File

@@ -4,4 +4,12 @@ class NVGoggles_DZE: NVGoggles
displayName = "NVG (Full Screen)";
modelOptics = "";
descriptionShort = "Full Screen Night Vision Goggles";
};
class ItemNVGBroken_DZE : ItemCore {
scope = public;
displayName = $STR_EQUIP_BROKEN_NV;
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemNVGBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_NV_DESC;
};

View File

@@ -1,7 +0,0 @@
class ItemNVGBroken_DZE : ItemCore {
scope = public;
displayName = $STR_EQUIP_BROKEN_NV;
model = "\dayz_epoch_c\items\nvg\nvg_dzn.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemNVGBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_NV_DESC;
};

View File

@@ -1,6 +0,0 @@
class ItemPilotmask_DZE : ItemCore {
scope = public;
picture = "\dayz_epoch_c\icons\tools\ItemPilotmask.paa";
displayName = $STR_EQUIP_PILOT_MASK;
descriptionShort = $STR_EQUIP_PILOT_MASK_DESC;
};

View File

@@ -9,4 +9,12 @@ class ItemRadio : ItemCore
script = ";if (!isNil 'dayz_groupInit') then {[] spawn dayz_openGroupDialog;};";
};
};
};
class ItemRadioBroken_DZE : ItemCore {
scope = public;
displayName = $STR_EQUIP_BROKEN_RADIO;
model = "\nst\ns_dayz\items\radio\radio_dzn.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemRadioBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_RADIO_DESC;
};

View File

@@ -1,7 +0,0 @@
class ItemRadioBroken_DZE : ItemCore {
scope = public;
displayName = $STR_EQUIP_BROKEN_RADIO;
model = "\nst\ns_dayz\items\radio\radio_dzn.p3d";
picture = "\dayz_epoch_c\icons\tools\ItemRadioBroken.paa";
descriptionShort = $STR_EQUIP_BROKEN_RADIO_DESC;
};

View File

@@ -35,6 +35,13 @@ class ItemSledge: ItemCore // Epoch class
};
};
class ItemSledgeBroken: ItemSledge // Epoch class
{
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

View File

@@ -4,4 +4,9 @@ class ItemSolder_DZE : ItemCore {
model = "\nst\ns_dayz\items\solder\solder_dzn.p3d";
picture = "\nst\ns_dayz\items\solder\data\icon_solder_dzn_ca.paa";
descriptionShort = $STR_EQUIP_SOLDER_DESC;
};
class ItemSolderBroken_DZE : ItemSolder_DZE {
displayName = $STR_EQUIP_SOLDER_BROKEN;
descriptionShort = $STR_EQUIP_SOLDER_BROKEN_DESC;
};

View File

@@ -13,5 +13,11 @@ class ItemToolbox : ItemCore
script=";[['DesertCamoNet_DZ','ForestCamoNet_DZ','DesertLargeCamoNet_DZ','ForestLargeCamoNet_DZ'],10,'str_epoch_player_8'] call player_removeNearby;";
};
};
};
class ItemToolboxBroken : ItemToolbox
{
displayName = $STR_EQUIP_NAME_2_BROKEN;
descriptionShort = $STR_EQUIP_DESC_2_BROKEN;
class ItemActions {};
};