From 8fa9318850646b46ad0dd1f4a33b2a146b7edf0e Mon Sep 17 00:00:00 2001 From: AirwavesMan Date: Sat, 31 Oct 2020 10:40:06 +0100 Subject: [PATCH] Add MTVR Bird The wonderfull model was made by @Helion4 --- .../CfgServerTrader/Category/AirVehicles.hpp | 1 + .../Category/AirVehicles.hpp | 1 + .../Configs/CfgVehicles/CfgVehicles.hpp | 1 + .../CfgVehicles/Helicopter/MTVRBird.hpp | 196 ++++++++++++++++++ SQF/dayz_code/stringtable.xml | 12 ++ 5 files changed, 211 insertions(+) create mode 100644 SQF/dayz_code/Configs/CfgVehicles/Helicopter/MTVRBird.hpp diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/AirVehicles.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/AirVehicles.hpp index 657b12931..4ff4c7847 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/AirVehicles.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/AirVehicles.hpp @@ -23,6 +23,7 @@ class Category_47 { class CSJ_GyroP {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class AH6X_DZ {type = "trade_any_vehicle";buy[] = {6,"ItemGoldBar10oz"};sell[] = {3,"ItemGoldBar10oz"};}; class MH6J_DZ {type = "trade_any_vehicle";buy[] = {8,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};}; + class MTVR_Bird_DZE {type = "trade_any_vehicle";buy[] = {8,"ItemGoldBar10oz"};sell[] = {4,"ItemGoldBar10oz"};}; class pook_H13_civ_DZE {type = "trade_any_vehicle";buy[] = {1,"ItemBriefcase100oz"};sell[] = {6,"ItemGoldBar10oz"};}; class pook_H13_civ_white_DZE {type = "trade_any_vehicle";buy[] = {1,"ItemBriefcase100oz"};sell[] = {6,"ItemGoldBar10oz"};}; class pook_H13_civ_slate_DZE {type = "trade_any_vehicle";buy[] = {1,"ItemBriefcase100oz"};sell[] = {6,"ItemGoldBar10oz"};}; diff --git a/SQF/dayz_code/Configs/CfgServerTraderZSC/Category/AirVehicles.hpp b/SQF/dayz_code/Configs/CfgServerTraderZSC/Category/AirVehicles.hpp index 6687661f9..1078d7547 100644 --- a/SQF/dayz_code/Configs/CfgServerTraderZSC/Category/AirVehicles.hpp +++ b/SQF/dayz_code/Configs/CfgServerTraderZSC/Category/AirVehicles.hpp @@ -23,6 +23,7 @@ class Category_47 { class CSJ_GyroP {type = "trade_any_vehicle";buy[] = {2000,"worth"};sell[] = {1000,"worth"};}; class AH6X_DZ {type = "trade_any_vehicle";buy[] = {6000,"worth"};sell[] = {3000,"worth"};}; class MH6J_DZ {type = "trade_any_vehicle";buy[] = {8000,"worth"};sell[] = {4000,"worth"};}; + class MTVR_Bird_DZE {type = "trade_any_vehicle";buy[] = {8000,"worth"};sell[] = {4000,"worth"};}; class pook_H13_civ_DZE {type = "trade_any_vehicle";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; class pook_H13_civ_white_DZE {type = "trade_any_vehicle";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; class pook_H13_civ_slate_DZE {type = "trade_any_vehicle";buy[] = {10000,"worth"};sell[] = {6000,"worth"};}; diff --git a/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp b/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp index 1f2abbcce..b6325ddce 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/CfgVehicles.hpp @@ -403,6 +403,7 @@ class CfgVehicles #include "Helicopter\CSJ_GyroAC.hpp" #include "Helicopter\KA60.hpp" #include "Helicopter\AW159.hpp" + #include "Helicopter\MTVRBird.hpp" #include "CrashSite.hpp" //Planes #include "Plane\AN2_DZ.hpp" diff --git a/SQF/dayz_code/Configs/CfgVehicles/Helicopter/MTVRBird.hpp b/SQF/dayz_code/Configs/CfgVehicles/Helicopter/MTVRBird.hpp new file mode 100644 index 000000000..661be958c --- /dev/null +++ b/SQF/dayz_code/Configs/CfgVehicles/Helicopter/MTVRBird.hpp @@ -0,0 +1,196 @@ + +class MTVR_Bird_base: Helicopter +{ + scope = 0; + displayName = "MTVR Bird"; + destrType = DestructWreck; + model = "\z\addons\dayz_epoch_v\vehicles\mtvrcopter\scropter"; + picture = "\dayz_epoch_c\icons\vehicles\mtvr_bird.paa"; + icon = "\ca\air_e\data\UI\Icon_ah6j_CA.paa"; + mapSize = 8; + side = 3; + maxSpeed = 135; + nameSound = "chopper"; + faction = "CIV"; + crew = ""; + accuracy = 0.3; + armor = 35; + damageResistance = 0.01039; + cost = 100000; + transportSoldier = 1; + cargoAction[] = {"Truck_Cargo01"}; + transportAmmo = 0; + supplyRadius = 2.5; + driverAction = "AH6j_Pilot_EP1"; + getInAction = "GetInHigh"; + getOutAction = "GetOutHigh"; + hasGunner = 0; + threat[] = {0,0,0}; + extCameraPosition[] = {0,2,-15}; + commanderCanSee = 2+16+32; + gunnerCanSee = 2+16+32; + driverCanSee = 2+16+32; + typicalCargo[] = {}; + class TransportMagazines {}; + class TransportWeapons {}; + transportMaxWeapons = 12; + transportMaxMagazines = 45; + transportMaxBackpacks = 5; + fuelCapacity = 500; + weapons[] = {"CMFlareLauncher"}; + magazines[] = {"60Rnd_CMFlareMagazine"}; + LockDetectionSystem = 0; + IncommingMisslieDetectionSystem = 0; + radartype = 0; + mainRotorSpeed = 1.5; + backRotorSpeed = 4; + castCargoShadow = 1; + occludeSoundsWhenIn = db-5; + obstructSoundsWhenIn = db-10; + cargoIsCoDriver[] = {0}; + class turrets {}; + irScanRangeMin = 500; + irScanRangeMax = 1000; + irScanToEyeFactor = 2; + soundGetIn[] = {"\ca\sounds\Air\Mi17\ext\ext-Mi17-getin-01",1,1,50}; + soundGetOut[] = {"\ca\sounds\Air\Mi17\ext\ext-Mi17-getout-01",1.0,1,50}; + soundDammage[] = {"\ca\sounds\Air\Mi17\int\alarm_loop1",0.001,1}; + soundEngineOnInt[] = {"\ca\sounds\Air\Mi17\int\int-Mi17-start-1a",0.56234133,1.0}; + soundEngineOnExt[] = {"\ca\sounds\Air\Mi17\ext\ext-Mi17-start-01a",0.7943282,1.0,800}; + soundEngineOffInt[] = {"\ca\sounds\Air\Mi17\int\int-Mi17-stop-1a",0.56234133,1.0}; + soundEngineOffExt[] = {"\ca\sounds\Air\Mi17\ext\ext-Mi17-stop-01a",0.7943282,1.0,800}; + class Sounds + { + class Engine + { + sound[] = {"\ca\sounds\air\Mi17\ext\ext-sovietheli-engine-6",5.623413,1.0,900}; + frequency = "rotorSpeed"; + volume = "camPos*((rotorSpeed-0.72)*4)"; + }; + class RotorLowOut + { + sound[] = {"\ca\sounds\air\Mi17\ext\ext-Mi17-rotor-low-2",1.7782794,1.0,1400}; + frequency = "rotorSpeed"; + volume = "camPos*(0 max (rotorSpeed-0.1))"; + cone[] = {1.6,3.14,2.0,0.95}; + }; + class RotorHighOut + { + sound[] = {"\ca\sounds\air\Mi17\ext\ext-Mi17-rotor-high-2",3.1622777,1.0,1700}; + frequency = "rotorSpeed"; + volume = "camPos*10*(0 max (rotorThrust-0.9))"; + cone[] = {1.6,3.14,2.0,0.95}; + }; + class EngineIn + { + sound[] = {"\ca\sounds\air\Mi17\int\int-sovietheli-engine-3",1.0,1.0}; + frequency = "rotorSpeed"; + volume = "(1-camPos)*((rotorSpeed-0.75)*4)"; + }; + class RotorLowIn + { + sound[] = {"\ca\sounds\air\Mi17\int\int-Mi17-rotor-low-2",1.7782794,1.0}; + frequency = "rotorSpeed"; + volume = "(1-camPos)*(0 max (rotorSpeed-0.1))"; + }; + class RotorHighIn + { + sound[] = {"\ca\sounds\air\Mi17\int\int-Mi17-rotor-high-2",1.7782794,1.0}; + frequency = "rotorSpeed"; + volume = "(1-camPos)*3*(rotorThrust-0.9)"; + }; + }; + + class ViewOptics + { + initAngleX = 0; + minAngleX = -30; + maxAngleX = 30; + initAngleY = 0; + minAngleY = -86; + maxAngleY = 86; + initFov = 0.1; + minFov = 0.03; + maxFov = 1.2; + }; + + class Reflectors + { + class Light + { + color[] = {0.8, 0.8, 1.0, 1.0}; + ambient[] = {0.07, 0.07, 0.07, 1.0}; + position = "L svetlo"; + direction = "konec l svetla"; + hitpoint = "svetlo L"; + selection = "L svetlo"; + size = 1; + brightness = 1.0; + }; + }; + + class Damage + { + tex[]={}; + mat[]={}; + }; + class Library + { + libTextDesc = "Made from scrap 5 tonne MTVR truck."; + }; + + class HitPoints: HitPoints + { + class HitGlass1: HitGlass1 + { + armor = 0.5; + }; + class HitGlass2: HitGlass2 + { + armor = 0.5; + }; + }; +}; + +class MTVR_Bird_DZE: MTVR_Bird_base +{ + scope = 2; + displayname = "$STR_VEH_NAME_MTVR_BIRD"; + + class Upgrades + { + ItemHeliAVE[] = {"MTVR_Bird_DZE1",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliAVE",1},{"equip_metal_sheet",5},{"ItemScrews",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}}; + }; +}; + +class MTVR_Bird_DZE1: MTVR_Bird_DZE +{ + displayName = "$STR_VEH_NAME_MTVR_BIRD+"; + original = "MTVR_Bird_DZE"; + armor = 70; + damageResistance = 0.02078; + + class Upgrades + { + ItemHeliLRK[] = {"MTVR_Bird_DZE2",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliLRK",1},{"PartGeneric",2},{"ItemScrews",1},{"ItemWoodCrateKit",1},{"ItemGunRackKit",1},{"ItemTinBar",1},{"equip_scrapelectronics",2},{"equip_floppywire",2}}}; + }; +}; + +class MTVR_Bird_DZE2: MTVR_Bird_DZE1 +{ + displayName = "$STR_VEH_NAME_MTVR_BIRD++"; + transportMaxWeapons = 24; + transportMaxMagazines = 90; + transportmaxbackpacks = 8; + + class Upgrades + { + ItemHeliTNK[] = {"MTVR_Bird_DZE3",{"ItemToolbox","ItemSolder_DZE"},{},{{"ItemHeliTNK",1},{"PartFueltank",2},{"PartGeneric",2},{"ItemFuelBarrel",1},{"ItemTinBar",1},{"equip_scrapelectronics",1},{"equip_floppywire",1}}}; + }; +}; + +class MTVR_Bird_DZE3: MTVR_Bird_DZE2 +{ + displayName = "$STR_VEH_NAME_MTVR_BIRD+++"; + fuelCapacity = 900; +}; diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 70125443b..ff2ac083a 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -12225,6 +12225,18 @@ AH6J «Литтл Бёрд»+++ AH6J "Little Bird"+++ + + MTVR Bird + + + MTVR Bird+ + + + MTVR Bird++ + + + MTVR Bird+++ + Mi-17 Ми-17