New config variable dayz_toolBreaking

Tool breaking is disabled by default.

Also made all scripts use Epoch sledge, which is a different model from
vanilla sledge.

PK_DZ was a duplicate of the new PKM_DZ.
This commit is contained in:
ebaydayz
2016-04-03 16:34:14 -04:00
parent d07d31983b
commit e69364991c
37 changed files with 323 additions and 231 deletions

View File

@@ -13,14 +13,9 @@ class CfgWeapons
class ItemCore;
class Rifle;
class Pistol;
class PistolCore;
class GrenadeLauncher;
class Pecheneg;
class Pecheneg_DZ: Pecheneg {
type = "1";
};
/* Dummy weapons */
#include "Throw.hpp"
@@ -30,7 +25,9 @@ class CfgWeapons
#include "Weapon\Sniper\AS50.hpp"
#include "Weapon\Sniper\M107.hpp"
#include "Weapon\Sniper\KSVK.hpp"
//each include is preceded by its required external references.
/* RIFLES */
@@ -47,13 +44,16 @@ class CfgWeapons
#include "Rifles\RPK.hpp"
class DMR;
class DMR : Rifle
{
class Single;
};
#include "Rifles\DMR.hpp"
class FN_FAL;
class FN_FAL_ANPVS4;
#include "Rifles\FNFAL.hpp"
class G36C : Rifle
{
class Single;
@@ -84,10 +84,10 @@ class CfgWeapons
class M249;
#include "Rifles\M249.hpp"
class BAF_L110A1_Aim;
#include "Rifles\L110A1.hpp"
class M240;
class m240_scoped_EP1;
#include "Rifles\M240.hpp"
@@ -107,9 +107,7 @@ class CfgWeapons
{
class manual;
};
class PK_DZ: PK {
type = "1";
};
class Pecheneg;
#include "Rifles\PKM.hpp"
#include "Rifles\UK59.hpp"
@@ -152,6 +150,8 @@ class CfgWeapons
#include "Rifles\Remington870.hpp"
#include "Rifles\Crossbow.hpp"
/* PISTOLS */
class M9;
@@ -173,14 +173,17 @@ class CfgWeapons
class revolver_EP1;
#include "Pistols\Revolver.hpp"
/* MELEE */
class MeleeWeapon : Rifle
{
melee = true;
canDrop = true;
distanceZoomMin = 50;
distanceZoomMax = 50;
fireLightDuration = 0;
@@ -224,6 +227,9 @@ class CfgWeapons
#include "Melee\MeleeSledgehammer.hpp"
/* TOOLS */
#include "Tools\Binocular.hpp"
@@ -256,6 +262,9 @@ class CfgWeapons
#include "Item\ItemKeys.hpp"
/* OTHER */
/*class ItemFlashlightEmpty : ItemCore

View File

@@ -1,22 +1,16 @@
class MeleeSledge: MeleeWeapon
{
scope = public;
melee= "true";
autoreload=1;
magazineReloadTime=0;
model="\z\addons\dayz_epoch\models\sledge_weaponized";
picture="\z\addons\dayz_epoch\pictures\equip_sledge_CA.paa"; // todo icon
displayName=$STR_EQUIP_NAME_SledgeHammer;
descriptionShort=$STR_EQUIP_SLEDGE_DESC;
magazines[]= {"Sledge_Swing"};
droppeditem= "ItemSledge";
magazines[]=
{
"Sledge_Swing"
};
handAnim[]=
{
"OFP2_ManSkeleton",
"\dayz_weapons\anim\melee_hatchet_holding.rtm"
};
class ItemActions
{
class Toolbelt
@@ -37,5 +31,4 @@ class MeleeSledge: MeleeWeapon
{
libTextDesc=$STR_EQUIP_SLEDGE_DESC;
};
descriptionShort=$STR_EQUIP_SLEDGE_DESC;
};

View File

@@ -7,7 +7,12 @@ class DMR_DZ : DMR
magazines[] = {20Rnd_762x51_DMR};
class Single;
class Single : Single
{
reloadTime = 0.6;
recoil = "recoil_single_primary_4outof10";
recoilProne = "recoil_single_primary_prone_4outof10";
};
visionMode[] = {"Normal"};
@@ -16,7 +21,9 @@ class DMR_DZ : DMR
Attachment_Ghillie = "DMR_Gh_DZ";
};
};
class DMR_SKN : DMR_DZ {};
class DMR_Gh_DZ : DMR_DZ
{
model = "z\addons\dayz_communityweapons\dmr\dmr_ghillie.p3d";

View File

@@ -56,6 +56,7 @@ class FNFAL_ANPVS4_DZ : FN_FAL_ANPVS4
{
modes[] = {Single};
};
class FN_FAL_ANPVS4_DZE:FN_FAL_ANPVS4 {
visionMode[] = {"Normal", "NVG"};
visionMode[] = {"Normal", "NVG"};
};

View File

@@ -1,6 +1,3 @@
class BAF_L110A1_Aim_DZE:BAF_L110A1_Aim {
type = "1";
};
class L110A1_CCO_DZ : BAF_L110A1_Aim
{
model = "z\addons\dayz_communityweapons\l110a1\l110a1_cco.p3d";
@@ -62,4 +59,17 @@ class L110A1_DZ : L110A1_CCO_DZ
};
class ItemActions {};
};
class BAF_L110A1_Aim_DZE:BAF_L110A1_Aim { //Slightly different scope from L110A1_CCO_DZ, otherwise identical
type = "1";
class ItemActions
{
class RemoveCCO
{
text = $STR_DZ_ATT_CCO_REM;
script = "; ['Attachment_CCO',_id,'L110A1_DZ'] call player_removeAttachment";
};
};
};

View File

@@ -49,6 +49,7 @@ class M240_Holo_DZ : M240_CCO_DZ
};
};
};
class m240_scoped_EP1_DZE:m240_scoped_EP1 {
type = "1";
class m240_scoped_EP1_DZE:m240_scoped_EP1 { //has m145 scope
type = "1";
};

View File

@@ -60,11 +60,21 @@ class M249_Holo_DZ : M249_CCO_DZ
};
};
};
class M249_EP1;
class M249_EP1_DZ:M249_EP1 {
class M249_EP1_DZ:M249_EP1 { //Iron sight with shorter stock (different from M249_DZ)
type = "1";
class Attachments
{
Attachment_CCO = "M249_CCO_DZ";
Attachment_Holo = "M249_Holo_DZ";
};
class ItemActions {};
};
class M249_m145_EP1;
class M249_m145_EP1_DZE:M249_m145_EP1 {
type = "1";
type = "1";
};

View File

@@ -1,4 +1,4 @@
class PKM_DZ : PK
class PKM_DZ : PK //Iron sight PKM
{
type = WeaponSlotPrimary;
@@ -17,4 +17,8 @@ class PKM_DZ : PK
{
reloadTime = 0.08;
};
};
class Pecheneg_DZ: Pecheneg { //PKP with long range scope
type = "1";
};

View File

@@ -30,7 +30,7 @@ class ItemSledge: ItemCore // Epoch class
*/
};
};
/* //Vanilla sledge is using a different model
class ItemSledgeHammer : ItemCore
{
scope = public;
@@ -60,4 +60,5 @@ class ItemSledgeHammerBroken : ItemCore
script = "spawn player_fixHatchet;";
};
};
};
};
*/