From 90d84648cdc44e4784a1192be22c8fe03b50a3a9 Mon Sep 17 00:00:00 2001 From: ebayShopper Date: Sat, 10 Jun 2017 09:13:06 -0400 Subject: [PATCH] Add CZ550 and Enfield bolt animations by @Streatman Vanilla commits: https://github.com/DayZMod/DayZ/commit/a9dfb45becfb3d969a37a5cb1f0ddfacbbdd7c1d https://github.com/DayZMod/DayZ/commit/4d4373ba805c98ad800e0631915c75f868823ac2 https://github.com/DayZMod/DayZ/commit/8dc4f223462718c11542c29199edc50fc9df5f47 https://github.com/DayZMod/DayZ/commit/7fa4ba43fe6876d2ba6b03273d7fa702d5aca78d https://github.com/DayZMod/DayZ/commit/d8fd0dd0dce30729b50d8008a1486a6f9505d0d6 --- CHANGE LOG 1.0.6.2.txt | 1 + .../Configs/CfgWeapons/CfgWeapons.hpp | 10 +++++-- .../Configs/CfgWeapons/Rifles/CZ550.hpp | 27 +++++++++++++++++++ .../Configs/CfgWeapons/Rifles/LeeEnfield.hpp | 1 + 4 files changed, 37 insertions(+), 2 deletions(-) diff --git a/CHANGE LOG 1.0.6.2.txt b/CHANGE LOG 1.0.6.2.txt index 051cebdf0..77e7f16ee 100644 --- a/CHANGE LOG 1.0.6.2.txt +++ b/CHANGE LOG 1.0.6.2.txt @@ -2,6 +2,7 @@ [NEW] Added DZE_limitPlots so admins can limit plot poles to 1 per UID, disabled by default. @oiad [NEW] Pumpkin, sunflower, and hemp plants spawned with createVehicle can be harvested with a knife now. #1928 @F507DMT [NEW] The journal and dayz_survived variable now contain actual play time [array] instead of days since the character was created [number]. +[NEW] Added secondary iron sight to CZ550 and bolt animations to CZ550 and LeeEnfield by @Streatman [UPDATED] Zombie pathing. Zeds should now run more direct to players. [UPDATED] The RIS attachment can be removed from the SA58_RIS_DZ now. @LunaCB diff --git a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp index 54f010e4b..c0875177d 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/CfgWeapons.hpp @@ -78,7 +78,13 @@ class CfgWeapons class M14_EP1; #include "Rifles\M14.hpp" - class M24; + class M24 : Rifle + { + class OpticsModes + { + class StepScope; + }; + }; #include "Rifles\M24.hpp" class M40A3; @@ -141,7 +147,7 @@ class CfgWeapons class bizon_silenced; #include "Rifles\Bizon.hpp" - class huntingrifle; + class huntingrifle : M24 {}; #include "Rifles\CZ550.hpp" class LeeEnfield; diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/CZ550.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/CZ550.hpp index 4d1e94b01..faf1d4160 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/CZ550.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/CZ550.hpp @@ -1,4 +1,31 @@ class CZ550_DZ : Huntingrifle { + model = "z\addons\dayz_communityweapons\CZ550\CZ550.p3d"; magazines[] = {5Rnd_17HMR}; + + //CZ550_SCOPE + optics = true; + modelOptics = "\ca\weapons\2Dscope_Hunter_12"; + + class OpticsModes : OpticsModes + { + class StepScope : StepScope {}; + class Ironsights + { + opticsID = 2; + useModelOptics = false; + opticsFlare = false; + opticsDisablePeripherialVision = false; + opticsZoomMin = 0.25; + opticsZoomMax = 1.1; + opticsZoomInit = 0.5; + distanceZoomMin = 100; + distanceZoomMax = 100; + memoryPointCamera = "eye"; + visionMode[] = {}; + opticsPPEffects[] = {}; + cameraDir = ""; + }; + }; + //CZ550_SCOPE end }; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgWeapons/Rifles/LeeEnfield.hpp b/SQF/dayz_code/Configs/CfgWeapons/Rifles/LeeEnfield.hpp index 464a6a9db..2476cdb0b 100644 --- a/SQF/dayz_code/Configs/CfgWeapons/Rifles/LeeEnfield.hpp +++ b/SQF/dayz_code/Configs/CfgWeapons/Rifles/LeeEnfield.hpp @@ -1,4 +1,5 @@ class LeeEnfield_DZ : LeeEnfield { + model = "z\addons\dayz_communityweapons\LeeEnfield\LeeEnfield.p3d"; magazines[] = {10Rnd_303British}; }; \ No newline at end of file