Land Vehicle overhaul

This commit overhauls all land vehicles. I have found many problems and one exploit which was important for upgrading vehicles. The main problem was that epoch overwrites many arma 2 vehicle bases classes. Those base classes and vehicle classes with the same name in arma 2 and epoch got update by arma 2 corepatch. Epoch overwrites and reverts many of those corepatch changes. This should not happen at all. Also, updating an already in arma 2 existing vehicle leaded to a problem in upgrading vehicles. The only chance to resolve both problems is that we reference existing vehicles from arma 2 and creating a new one for epoch.

-	Add for every vehicle an epoch version, all arma 2 vehicles remains unchanged
-	Add BMP-2, BTR-60 versions
-	Set a vehicleClass for every vehicle so it can be accessed in the editor under "DayZ Epoch Vehicles"
-	Set supplyRadius for all vehicles
-	Deactivate radar, auto medic, auto ammo and auto repair option for all vehicles that used this
-	All armed vehicles have a DZE class now
-	Fix positioning and animation errors for certain vehicles
This commit is contained in:
A Man
2020-01-23 00:10:41 +01:00
parent e1e80e520f
commit 86f59b7de4
38 changed files with 1488 additions and 2472 deletions

View File

@@ -1,41 +1,43 @@
class Kamaz_Base;
class KamazOpen_DZE : Kamaz_Base {
class KamazOpen;
class KamazOpen_DZE : KamazOpen {
scope = public;
displayName = $STR_VEH_NAME_KAMAZ;
model = "\ca\wheeled2\Kamaz\Kamaz_Open";
picture = "\Ca\wheeled2\data\ui\Picture_kamaz_open_CA.paa";
Icon = "\Ca\wheeled2\data\ui\Icon_kamaz_open_CA.paa";
castCargoShadow = 1;
vehicleClass = "DayZ Epoch Vehicles";
crew = "";
typicalCargo[] = {};
class TransportMagazines{};
class TransportWeapons{};
class Library {
libTextDesc = "The Kamaz is a Russian-made 6x6 cargo truck developed in 1973 and still manufactured today. These trucks are very reliable, with powerful V8 engines.<br/>This one serves for transportation with an open body.";
};
supplyRadius = 2.6;
class Upgrades {
ItemORP[] = {"KamazOpen_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
ItemORP[] = {"KamazOpen_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
class Kamaz_DZE: Kamaz_Base {
class Kamaz;
class Kamaz_DZE: Kamaz {
scope = public;
displayName = $STR_VEH_NAME_KAMAZ_COVERT;
vehicleClass = "DayZ Epoch Vehicles";
crew = "";
typicalCargo[] = {};
class TransportMagazines {};
class TransportWeapons {};
cargoAction[] = {"Truck_Cargo01","Truck_Cargo01","Truck_Cargo02","Truck_Cargo03","Truck_Cargo02","Truck_Cargo02","Truck_Cargo03","Truck_Cargo02","Truck_Cargo03","Truck_Cargo02","Truck_Cargo02","Truck_Cargo03"};
class Upgrades {
ItemORP[] = {"Kamaz_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
supplyRadius = 2.6;
class Upgrades {
ItemORP[] = {"Kamaz_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
class KamazOpen_DZE1: KamazOpen_DZE {
original = "KamazOpen_DZE";
maxspeed = 100; //base 80
terrainCoef = 1.8; // base 2.0
turnCoef = 2.0; // base 3.7
class Upgrades {
ItemAVE[] = {"KamazOpen_DZE2",{},{{"ItemAVE",1},{"PartGeneric",6},{"ItemTankTrap",4}}};
ItemAVE[] = {"KamazOpen_DZE2",{},{{"ItemAVE",1},{"PartGeneric",6},{"ItemTankTrap",4}}};
};
};
class Kamaz_DZE1: Kamaz_DZE {
@@ -43,38 +45,42 @@ class Kamaz_DZE1: Kamaz_DZE {
maxspeed = 100; //base 80
terrainCoef = 1.8; // base 2.0
turnCoef = 2.0; // base 3.7
class Upgrades {
ItemAVE[] = {"Kamaz_DZE2",{},{{"ItemAVE",1},{"PartGeneric",6},{"ItemTankTrap",4}}};
ItemAVE[] = {"Kamaz_DZE2",{},{{"ItemAVE",1},{"PartGeneric",6},{"ItemTankTrap",4}}};
};
};
class KamazOpen_DZE2: KamazOpen_DZE1 {
armor = 70; //base 32
damageResistance = 0.0255; // base 0.00243
class Upgrades {
ItemLRK[] = {"KamazOpen_DZE3",{},{{"ItemLRK",1},{"PartGeneric",4},{"ItemTent",2}}};
ItemLRK[] = {"KamazOpen_DZE3",{},{{"ItemLRK",1},{"PartGeneric",4},{"ItemTent",2}}};
};
};
class Kamaz_DZE2: Kamaz_DZE1 {
armor = 70; //base 32
damageResistance = 0.0255; // base 0.00243
class Upgrades {
ItemLRK[] = {"Kamaz_DZE3",{},{{"ItemLRK",1},{"PartGeneric",4},{"ItemTent",2}}};
ItemLRK[] = {"Kamaz_DZE3",{},{{"ItemLRK",1},{"PartGeneric",4},{"ItemTent",2}}};
};
};
class KamazOpen_DZE3: KamazOpen_DZE2 {
transportMaxWeapons = 75; // Ural Base 50
transportMaxMagazines = 300; // Ural Base 200
transportmaxbackpacks = 12; // Ural Base 8
class Upgrades {
ItemTNK[] = {"KamazOpen_DZE4",{},{{"ItemTNK",1},{"PartFueltank",4}}};
ItemTNK[] = {"KamazOpen_DZE4",{},{{"ItemTNK",1},{"PartFueltank",4}}};
};
};
class Kamaz_DZE3: Kamaz_DZE2 {
transportMaxWeapons = 75; // Ural Base 50
transportMaxMagazines = 300; // Ural Base 200
transportmaxbackpacks = 12; // Ural Base 8
class Upgrades {
ItemTNK[] = {"Kamaz_DZE4",{},{{"ItemTNK",1},{"PartFueltank",4}}};
ItemTNK[] = {"Kamaz_DZE4",{},{{"ItemTNK",1},{"PartFueltank",4}}};
};
};
class Kamaz_DZE4: Kamaz_DZE3 {
@@ -87,7 +93,7 @@ class KamazRefuel;
class KamazRefuel_DZ: KamazRefuel {
scope = public;
displayName = $STR_VEH_NAME_KAMAZ_REFUEL;
side = 2;
vehicleClass = "DayZ Epoch Vehicles";
crew = "";
typicalCargo[] = {};
hiddenSelections[] = {};
@@ -98,30 +104,33 @@ class KamazRefuel_DZ: KamazRefuel {
class TransportWeapons{};
fuelCapacity = 10400;
transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks
supplyRadius = 0;
supplyRadius = 2.6;
};
class KamazRefuel_DZE1: KamazRefuel_DZ {
original = "KamazRefuel_DZ";
maxspeed = 100; //base 80
terrainCoef = 1.8; // base 2.0
turnCoef = 2.0; // base 3.7
class Upgrades {
ItemAVE[] = {"KamazRefuel_DZE2",{},{{"ItemAVE",1},{"PartGeneric",6},{"ItemTankTrap",4}}};
ItemAVE[] = {"KamazRefuel_DZE2",{},{{"ItemAVE",1},{"PartGeneric",6},{"ItemTankTrap",4}}};
};
};
class KamazRefuel_DZE2: KamazRefuel_DZE1 {
armor = 70; //base 32
damageResistance = 0.0255; // base 0.00243
class Upgrades {
ItemLRK[] = {"KamazRefuel_DZE3",{},{{"ItemLRK",1},{"PartGeneric",4},{"ItemTent",2}}};
ItemLRK[] = {"KamazRefuel_DZE3",{},{{"ItemLRK",1},{"PartGeneric",4},{"ItemTent",2}}};
};
};
class KamazRefuel_DZE3: KamazRefuel_DZE2 {
transportMaxWeapons = 75; // Ural Base 50
transportMaxMagazines = 300; // Ural Base 200
transportmaxbackpacks = 12; // Ural Base 8
class Upgrades {
ItemTNK[] = {"KamazRefuel_DZE4",{},{{"ItemTNK",1},{"PartFueltank",4}}};
ItemTNK[] = {"KamazRefuel_DZE4",{},{{"ItemTNK",1},{"PartFueltank",4}}};
};
};
class KamazRefuel_DZE4: KamazRefuel_DZE3 {
@@ -132,16 +141,15 @@ class KamazRepair;
class KamazRepair_DZE : KamazRepair {
scope = public;
displayName = $STR_VEH_NAME_KAMAZ_AMMO;
side = 2;
vehicleClass = "DayZ Epoch Vehicles";
crew = "";
typicalCargo[] = {};
hiddenSelections[] = {};
transportMaxWeapons = 25;
transportMaxMagazines = 300;
transportmaxbackpacks = 8;
class TransportMagazines{};
class TransportWeapons{};
supplyRadius = 0;
supplyRadius = 2.6;
transportRepair = 0;
};
@@ -149,15 +157,14 @@ class KamazReammo;
class KamazReammo_DZE : KamazReammo {
scope = public;
displayName = $STR_VEH_NAME_KAMAZ_WEAPONS;
side = 2;
vehicleClass = "DayZ Epoch Vehicles";
crew = "";
typicalCargo[] = {};
hiddenSelections[] = {};
transportMaxWeapons = 75;
transportMaxMagazines = 100;
transportmaxbackpacks = 8;
class TransportMagazines{};
class TransportWeapons{};
supplyRadius = 0;
supplyRadius = 2.6;
transportAmmo = 0;
};