From 02c910078a3cafd47863f5c1aeaccbed9020f768 Mon Sep 17 00:00:00 2001 From: A Man Date: Tue, 10 Dec 2019 22:29:27 +0100 Subject: [PATCH] Add 2 new cargo truck version This adds 2 new versions of cargo trucks. A truck for items and a truck for weapons. Also setting the supplyRadius for every refuel, reammo and repair truck to 0. Just to be sure. --- .../CfgServerTrader/Category/Vehicles.hpp | 6 ++++ .../Configs/CfgVehicles/Car/Kamaz.hpp | 35 ++++++++++++++++++ .../Configs/CfgVehicles/Car/Mtvr.hpp | 36 +++++++++++++++++++ .../Configs/CfgVehicles/Car/UralCivil_DZ.hpp | 35 ++++++++++++++++++ .../Configs/CfgVehicles/Car/V3S_Civ.hpp | 3 ++ SQF/dayz_code/stringtable.xml | 24 +++++++++++++ 6 files changed, 139 insertions(+) diff --git a/SQF/dayz_code/Configs/CfgServerTrader/Category/Vehicles.hpp b/SQF/dayz_code/Configs/CfgServerTrader/Category/Vehicles.hpp index 590fdbb2b..5fde46ac0 100644 --- a/SQF/dayz_code/Configs/CfgServerTrader/Category/Vehicles.hpp +++ b/SQF/dayz_code/Configs/CfgServerTrader/Category/Vehicles.hpp @@ -84,6 +84,8 @@ class Category_42 { class Ural_UN_EP1 {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class UralCivil_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class UralCivil2_DZE {type = "trade_any_vehicle";buy[] = {1,"ItemGoldBar10oz"};sell[] = {5,"ItemGoldBar"};}; + class UralReammo_CDF_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class UralRepair_CDF_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class V3S_Open_TK_CIV_EP1 {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class V3S_Open_TK_EP1 {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class V3S_Civ {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; @@ -91,8 +93,12 @@ class Category_42 { class V3S_TK_EP1_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class Kamaz_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class KamazOpen_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class KamazRepair_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class KamazReammo_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class MTVR_DES_EP1 {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; class MTVR {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class MtvrRepair_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; + class MtvrReammo_DZE {type = "trade_any_vehicle";buy[] = {2,"ItemGoldBar10oz"};sell[] = {1,"ItemGoldBar10oz"};}; }; //Fuel Trucks diff --git a/SQF/dayz_code/Configs/CfgVehicles/Car/Kamaz.hpp b/SQF/dayz_code/Configs/CfgVehicles/Car/Kamaz.hpp index 10d6e8b5c..a4c8f76c9 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Car/Kamaz.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Car/Kamaz.hpp @@ -98,6 +98,7 @@ class KamazRefuel_DZ: KamazRefuel { class TransportWeapons{}; fuelCapacity = 10400; transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks + supplyRadius = 0; }; class KamazRefuel_DZE1: KamazRefuel_DZ { original = "KamazRefuel_DZ"; @@ -126,3 +127,37 @@ class KamazRefuel_DZE3: KamazRefuel_DZE2 { class KamazRefuel_DZE4: KamazRefuel_DZE3 { fuelCapacity = 10700; // Increase the total fuel capacity of the Refuel truck by the additional normal sized fuel tank of a Ural. }; + +class KamazRepair; +class KamazRepair_DZE : KamazRepair { + scope = public; + displayName = $STR_VEH_NAME_KAMAZ_AMMO; + side = 2; + crew = ""; + typicalCargo[] = {}; + hiddenSelections[] = {}; + transportMaxWeapons = 25; + transportMaxMagazines = 300; + transportmaxbackpacks = 8; + class TransportMagazines{}; + class TransportWeapons{}; + supplyRadius = 0; + transportRepair = 0; +}; + +class KamazReammo; +class KamazReammo_DZE : KamazReammo { + scope = public; + displayName = $STR_VEH_NAME_KAMAZ_WEAPONS; + side = 2; + crew = ""; + typicalCargo[] = {}; + hiddenSelections[] = {}; + transportMaxWeapons = 75; + transportMaxMagazines = 100; + transportmaxbackpacks = 8; + class TransportMagazines{}; + class TransportWeapons{}; + supplyRadius = 0; + transportAmmo = 0; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Car/Mtvr.hpp b/SQF/dayz_code/Configs/CfgVehicles/Car/Mtvr.hpp index 68eb1ff83..55b3127c1 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Car/Mtvr.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Car/Mtvr.hpp @@ -41,6 +41,7 @@ class MtvrRefuel_DES_EP1_DZ : MtvrRefuel_base { class TransportWeapons{}; transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks fuelCapacity = 10000; + supplyRadius = 0; }; class MtvrRefuel_DZ: MtvrRefuel { @@ -57,4 +58,39 @@ class MtvrRefuel_DZ: MtvrRefuel { class TransportWeapons{}; transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks fuelCapacity = 10000; + supplyRadius = 0; }; + +class MtvrRepair; +class MtvrRepair_DZE: MtvrRepair { + scope = public; + side = 2; + crew = ""; + displayName = $STR_VEH_NAME_MTVR_AMMO; + typicalCargo[] = {}; + hiddenSelections[] = {}; + transportMaxWeapons = 25; + transportMaxMagazines = 300; + transportmaxbackpacks = 8; + class TransportMagazines{}; + class TransportWeapons{}; + transportRepair = 0; + supplyRadius = 0; +}; + +class MtvrReammo; +class MtvrReammo_DZE: MtvrReammo { + scope = public; + side = 2; + crew = ""; + displayName = $STR_VEH_NAME_MTVR_WEAPONS; + typicalCargo[] = {}; + hiddenSelections[] = {}; + transportMaxWeapons = 75; + transportMaxMagazines = 100; + transportmaxbackpacks = 8; + class TransportMagazines{}; + class TransportWeapons{}; + transportAmmo = 0; + supplyRadius = 0; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Car/UralCivil_DZ.hpp b/SQF/dayz_code/Configs/CfgVehicles/Car/UralCivil_DZ.hpp index 62e3c5a01..0c320a5e7 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Car/UralCivil_DZ.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Car/UralCivil_DZ.hpp @@ -104,4 +104,39 @@ class UralRefuel_TK_EP1_DZ: UralRefuel_TK_EP1 { class TransportWeapons{}; transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks fuelCapacity = 10000; + supplyRadius = 0; }; + +class UralReammo_CDF; +class UralReammo_CDF_DZE: UralReammo_CDF { + scope = public; + displayName = $STR_VEH_NAME_URAL_WEAPONS; + side = 2; + crew = ""; + typicalCargo[] = {}; + hiddenSelections[] = {}; + transportMaxWeapons = 75; + transportMaxMagazines = 100; + transportmaxbackpacks = 8; + class TransportMagazines{}; + class TransportWeapons{}; + transportAmmo = 0; + supplyRadius = 0; +}; + +class UralRepair_CDF; +class UralRepair_CDF_DZE: UralRepair_CDF { + scope = public; + displayName = $STR_VEH_NAME_URAL_AMMO; + side = 2; + crew = ""; + typicalCargo[] = {}; + hiddenSelections[] = {}; + transportMaxWeapons = 25; + transportMaxMagazines = 300; + transportmaxbackpacks = 8; + class TransportMagazines{}; + class TransportWeapons{}; + transportRepair = 0; + supplyRadius = 0; +}; \ No newline at end of file diff --git a/SQF/dayz_code/Configs/CfgVehicles/Car/V3S_Civ.hpp b/SQF/dayz_code/Configs/CfgVehicles/Car/V3S_Civ.hpp index d016f2010..48841b8fa 100644 --- a/SQF/dayz_code/Configs/CfgVehicles/Car/V3S_Civ.hpp +++ b/SQF/dayz_code/Configs/CfgVehicles/Car/V3S_Civ.hpp @@ -67,6 +67,8 @@ class V3S_RA_TK_GUE_EP1_DZE: V3S_Base_EP1 { //transportMaxWeapons = 50; //transportMaxBackpacks = 8; //terrainCoef = 2.5; + transportAmmo = 0; + supplyRadius = 0; }; class V3S_Refuel_TK_GUE_EP1; class V3S_Refuel_TK_GUE_EP1_DZ: V3S_Refuel_TK_GUE_EP1 { @@ -81,6 +83,7 @@ class V3S_Refuel_TK_GUE_EP1_DZ: V3S_Refuel_TK_GUE_EP1 { transportmaxbackpacks = 8; class TransportMagazines{}; class TransportWeapons{}; + supplyRadius = 0; transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks fuelCapacity = 10000; }; diff --git a/SQF/dayz_code/stringtable.xml b/SQF/dayz_code/stringtable.xml index 30dee04f5..a831c02ed 100644 --- a/SQF/dayz_code/stringtable.xml +++ b/SQF/dayz_code/stringtable.xml @@ -8336,6 +8336,30 @@ Ural (UN) + + Ural (Material Transport) + Ural (Materialtransport) + + + Ural (Weapon Transport) + Ural (Waffentransport) + + + MVTR (Material Transport) + MVTR (Materialtransport) + + + MVTR (Weapon Transport) + MVTR (Waffentransport) + + + Kamaz (Material Transport) + Kamaz (Materialtransport) + + + Kamaz (Weapon Transport) + Kamaz (Waffentransport) + Ural (Civil) Ural (Zivil)