From 5b0179b196466a7607ba1e0586f8286e75d0b3f2 Mon Sep 17 00:00:00 2001 From: Florian Kinder Date: Sat, 15 Feb 2014 02:06:47 +0100 Subject: [PATCH] Added PK_DZ for upgrade vehicles --- .../CfgBuildingLoot/CfgBuildingLoot.hpp | 20 ++++++----- .../Configs/CfgBuildingLoot/cfgLoot.hpp | 8 +++-- SQF/dayz_code/Configs/CfgWeapons.hpp | 35 ++++++++++--------- 3 files changed, 35 insertions(+), 28 deletions(-) diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp index d4369d797..70fd55c77 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/CfgBuildingLoot.hpp @@ -98,7 +98,7 @@ class CfgBuildingLoot { 0.02, 0.01, 0.01 - }; + }; }; class Office: Default { maxRoaming = 3; @@ -147,7 +147,7 @@ class CfgBuildingLoot { 0.01, 0.03, 0.01 - }; + }; itemTypeSmall[] = { { "ItemSodaMdew","magazine" }, { "ItemSodaRbull","magazine" }, @@ -159,7 +159,7 @@ class CfgBuildingLoot { { "ItemFlashlight","weapon" }, { "ItemKnife","weapon" }, { "ItemMatchbox_DZE","weapon" }, - { "","generic" }, + { "","generic" }, { "","military" }, { "","trash" }, { "Binocular","weapon" }, @@ -185,7 +185,7 @@ class CfgBuildingLoot { 0.16, 0.02, 0.01 - }; + }; }; class Industrial: Default { zombieChance = 0.4; @@ -323,7 +323,7 @@ class CfgBuildingLoot { { "ItemJerrycan","magazine" }, { "","generic" }, { "farmweapons","cfglootweapon" }, - { "","trash" }, + { "","trash" }, { "PartPlankPack","magazine" }, { "WeaponHolder_ItemHatchet_DZE","object" }, { "ItemFuelBarrelEmpty","magazine"}, @@ -956,8 +956,8 @@ class CfgBuildingLoot { 0.078, 0.033 }; - }; - + }; + class DynamicDebrisMilitary: Default { lootChance = 0.4; @@ -1051,6 +1051,7 @@ class CfgBuildingLoot { { "M249_EP1_DZ","weapon" }, { "M9SD","weapon" }, { "Pecheneg_DZ","weapon"}, + { "PK_DZ","weapon"}, { "AK_74","weapon" }, { "M4A1_Aim","weapon" }, { "AKS_74_kobra","weapon" }, @@ -1088,7 +1089,7 @@ class CfgBuildingLoot { {"DZ_TK_Assault_Pack_EP1","object"}, // 16 {"DZ_British_ACU","object"}, // 18 {"DZ_CivilBackpack_EP1","object"}, // 24 - {"DZ_Backpack_EP1","object"}, // 30 + {"DZ_Backpack_EP1","object"}, // 30 {"DZ_LargeGunBag_EP1","object"}, // 45 { "","medical" }, @@ -1113,6 +1114,7 @@ class CfgBuildingLoot { 0.01, 0.01, 0.02, + 0.02, 0.01, 0.02, 0.01, @@ -1169,6 +1171,6 @@ class CfgBuildingLoot { #include "CfgLootPos.hpp" //If you want to copypast your loottable to your mission w/o //changing something on the lootPos then use the a include instead of copypasting the CfgLootPos.hpp - + //#include "\dayz_epoch_b\CfgLootPos.hpp" }; diff --git a/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp b/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp index 6710dd2c4..ba8d9459e 100644 --- a/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp +++ b/SQF/dayz_code/Configs/CfgBuildingLoot/cfgLoot.hpp @@ -320,7 +320,7 @@ class CfgLoot { "1Rnd_HE_M203", "FlareWhite_M203", "FlareGreen_M203", - "1Rnd_Smoke_M203", + "1Rnd_Smoke_M203", "200Rnd_556x45_M249", "HandGrenade_west", "HandGrenade_east", @@ -410,7 +410,7 @@ class CfgLoot { "1Rnd_HE_M203", "FlareWhite_M203", "FlareGreen_M203", - "1Rnd_Smoke_M203", + "1Rnd_Smoke_M203", "200Rnd_556x45_M249", "HandGrenade_west", "HandGrenade_east", @@ -725,7 +725,7 @@ class CfgLoot { "DZ_GunBag_EP1", // 3-35 "DZ_CivilBackpack_EP1", //4-40 "DZ_Backpack_EP1", //5-50 - "DZ_LargeGunBag_EP1" // 6-60 + "DZ_LargeGunBag_EP1" // 6-60 }, { 0.30, @@ -999,6 +999,7 @@ class CfgLoot { "RPK_74", "M8_SAW", "Pecheneg_DZ", + "PK_DZ", "MG36_camo", "M60A4_EP1_DZE", "MG36", @@ -1017,6 +1018,7 @@ class CfgLoot { 0.1, 0.1, 0.1, + 0.1, 0.08, 0.05, 0.05 diff --git a/SQF/dayz_code/Configs/CfgWeapons.hpp b/SQF/dayz_code/Configs/CfgWeapons.hpp index fe5f16af9..5eccaef35 100644 --- a/SQF/dayz_code/Configs/CfgWeapons.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons.hpp @@ -68,10 +68,13 @@ class Mode_FullAuto: Mode_SemiAuto class CfgWeapons { class Pecheneg; - class Pecheneg_DZ: Pecheneg - { + class Pecheneg_DZ: Pecheneg { type = "1"; }; + class PK; + class PK_DZ: PK { + type = "1"; + } class Default { canlock = 0; @@ -84,7 +87,7 @@ class CfgWeapons { { scope = 2; //melee= "true"; - + /* bullet1[] = {"ca\sounds\weapons\shells\big_shell_wood_01",0.0707946,1,15}; bullet2[] = {"ca\sounds\weapons\shells\big_shell_wood_02",0.0707946,1,15}; @@ -101,20 +104,20 @@ class CfgWeapons { */ //soundBullet[] = {"bullet1",0.083,"bullet2",0.083,"bullet3",0.083,"bullet4",0.083,"bullet5",0.083,"bullet6",0.083,"bullet7",0.083,"bullet8",0.083,"bullet9",0.083,"bullet10",0.083,"bullet11",0.083,"bullet12",0.083}; - + emptySound[] = {"",10,1}; soundBullet[] = {"emptySound",1}; - + model = "\z\addons\dayz_epoch\models\chainsaw.p3d"; picture = "\z\addons\dayz_epoch\pictures\equip_chainsaw_CA.paa"; - + displayName = "Chainsaw"; - + cursor = ""; cursoraim = "\ca\Weapons\Data\clear_empty"; - + modes[] = {"manual"}; handAnim[]= { @@ -125,7 +128,7 @@ class CfgWeapons { { recoil = "recoil_auto_machinegun_10outof10"; recoilProne = "recoil_auto_machinegun_prone_10outof10"; - + dispersion = 0.2; begin1[] = {"\dayz_sfx\chainsaw\running2.ogg",1.77828,1,1000}; @@ -143,10 +146,10 @@ class CfgWeapons { burst = 1; multiplier = 1; - + soundContinuous = 0; soundBurst = 0; - + useAction = 0; useActionTitle = ""; @@ -207,7 +210,7 @@ class CfgWeapons { class PistolCore; // External class reference class Pistol; // External class reference class GrenadeLauncher; // External class reference - + class DMR; // External class reference class ItemMatchbox_DZE: ItemCore @@ -235,7 +238,7 @@ class CfgWeapons { }; }; }; - + #include "CfgWeapons\Loot.hpp" #include "CfgWeapons\Melee\MeleeMachete.hpp" @@ -250,7 +253,7 @@ class CfgWeapons { #include "CfgWeapons\Melee\MeleeSledgehammer.hpp" // #include "CfgWeapons\Melee\MeleeBaseBallBatBarbed.hpp" // #include "CfgWeapons\Melee\MeleeBaseBallBatNails.hpp" - + #include "CfgWeapons\Item\ItemWatch.hpp" #include "CfgWeapons\Item\ItemMap.hpp" #include "CfgWeapons\Item\ItemMap_Debug.hpp" @@ -264,12 +267,12 @@ class CfgWeapons { #include "CfgWeapons\Item\ItemKeyKit.hpp" #include "CfgWeapons\Item\ItemKeys.hpp" #include "CfgWeapons\Item\ItemToolbox.hpp" - + //Sniper Rifles #include "CfgWeapons\Weapon\Sniper\AS50.hpp" #include "CfgWeapons\Weapon\Sniper\M107.hpp" #include "CfgWeapons\Weapon\Sniper\KSVK.hpp" - + #include "CfgWeapons\Weapon\Sniper\DMR_DZ.hpp" #include "CfgWeapons\Weapon\Pistol\MakerovSD.hpp" #include "CfgWeapons\Weapon\LMG\m240_scoped.hpp"