mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 04:02:37 +03:00
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
170 lines
4.4 KiB
C++
170 lines
4.4 KiB
C++
class KamazOpen;
|
|
class KamazOpen_DZE : KamazOpen {
|
|
scope = public;
|
|
displayName = $STR_VEH_NAME_KAMAZ;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
class TransportMagazines{};
|
|
class TransportWeapons{};
|
|
supplyRadius = 2.6;
|
|
|
|
class Upgrades {
|
|
ItemORP[] = {"KamazOpen_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
|
|
};
|
|
};
|
|
|
|
class Kamaz;
|
|
class Kamaz_DZE: Kamaz {
|
|
scope = public;
|
|
displayName = $STR_VEH_NAME_KAMAZ_COVERT;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
class TransportMagazines {};
|
|
class TransportWeapons {};
|
|
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}}};
|
|
};
|
|
};
|
|
class Kamaz_DZE1: Kamaz_DZE {
|
|
original = "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}}};
|
|
};
|
|
};
|
|
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}}};
|
|
};
|
|
};
|
|
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}}};
|
|
};
|
|
};
|
|
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}}};
|
|
};
|
|
};
|
|
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}}};
|
|
};
|
|
};
|
|
class Kamaz_DZE4: Kamaz_DZE3 {
|
|
fuelCapacity = 615; // Ural Base 303
|
|
};
|
|
class KamazOpen_DZE4: KamazOpen_DZE3 {
|
|
fuelCapacity = 615; // Ural Base 303
|
|
};
|
|
class KamazRefuel;
|
|
class KamazRefuel_DZ: KamazRefuel {
|
|
scope = public;
|
|
displayName = $STR_VEH_NAME_KAMAZ_REFUEL;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
hiddenSelections[] = {};
|
|
transportMaxWeapons = 50;
|
|
transportMaxMagazines = 200;
|
|
transportmaxbackpacks = 8;
|
|
class TransportMagazines{};
|
|
class TransportWeapons{};
|
|
fuelCapacity = 10400;
|
|
transportFuel = 0; //Required to disable A2 built in auto refuel for fuel trucks
|
|
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}}};
|
|
};
|
|
};
|
|
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}}};
|
|
};
|
|
};
|
|
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}}};
|
|
};
|
|
};
|
|
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;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
transportMaxWeapons = 25;
|
|
transportMaxMagazines = 300;
|
|
transportmaxbackpacks = 8;
|
|
class TransportMagazines{};
|
|
class TransportWeapons{};
|
|
supplyRadius = 2.6;
|
|
transportRepair = 0;
|
|
};
|
|
|
|
class KamazReammo;
|
|
class KamazReammo_DZE : KamazReammo {
|
|
scope = public;
|
|
displayName = $STR_VEH_NAME_KAMAZ_WEAPONS;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
transportMaxWeapons = 75;
|
|
transportMaxMagazines = 100;
|
|
transportmaxbackpacks = 8;
|
|
class TransportMagazines{};
|
|
class TransportWeapons{};
|
|
supplyRadius = 2.6;
|
|
transportAmmo = 0;
|
|
}; |