mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-13 19:52:38 +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
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
class BTR90;
|
|
class BTR90_DZ: BTR90 {
|
|
scope = public;
|
|
displayName = $STR_VEH_NAME_BTR90;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
|
|
commanderCanSee = 2+16+32;
|
|
gunnerCanSee = 2+16+32;
|
|
driverCanSee = 2+16+32;
|
|
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
class TransportMagazines {};
|
|
class TransportWeapons {};
|
|
|
|
transportMaxMagazines = 100;
|
|
transportMaxWeapons = 20;
|
|
transportmaxbackpacks = 6;
|
|
supplyRadius = 1.8;
|
|
|
|
class Turrets; // External class reference
|
|
class MainTurret; // External class reference
|
|
};
|
|
class BTR90_HQ;
|
|
class BTR90_HQ_DZ: BTR90_HQ {
|
|
scope = public;
|
|
displayName = $STR_VEH_NAME_BTR90_HQ;
|
|
vehicleClass = "DayZ Epoch Vehicles";
|
|
|
|
commanderCanSee = 2+16+32;
|
|
gunnerCanSee = 2+16+32;
|
|
driverCanSee = 2+16+32;
|
|
|
|
crew = "";
|
|
typicalCargo[] = {};
|
|
class TransportMagazines {};
|
|
class TransportWeapons {};
|
|
|
|
transportSoldier = 6;
|
|
enableGPS = 0;
|
|
|
|
transportMaxMagazines = 100;
|
|
transportMaxWeapons = 20;
|
|
transportmaxbackpacks = 6;
|
|
supplyRadius = 1.8;
|
|
|
|
class Turrets; // External class reference
|
|
class MainTurret; // External class reference
|
|
};
|
|
|
|
// Ammo Less
|
|
class BTR90_DZE: BTR90_DZ {
|
|
displayName = $STR_VEH_NAME_BTR90;
|
|
class Turrets: Turrets {
|
|
class MainTurret: MainTurret {
|
|
magazines[] = {};
|
|
};
|
|
};
|
|
};
|
|
class BTR90_HQ_DZE: BTR90_HQ_DZ {
|
|
displayName = $STR_VEH_NAME_BTR90_HQ;
|
|
class Turrets: Turrets {
|
|
class MainTurret: MainTurret {
|
|
magazines[] = {};
|
|
};
|
|
};
|
|
}; |