mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 20:13:13 +03:00
These changes allow the player to sell upgraded vehicles with them not being added to the trader (as to not polute the lists). This basically refers to an upgraded vehicle as a child of the base vehicle so it will get the same sell price as the base vehicle. This still follows the original trading convention, the vehicle base needs to be in the trader category, i.e you cant sell an armored SUV at stary vehicle trader.
89 lines
1.8 KiB
C++
89 lines
1.8 KiB
C++
class car_hatchback: SkodaBase {
|
|
crew = "";
|
|
displayname = $STR_VEH_NAME_OLD_HATCHBACK;
|
|
faction = "CIV";
|
|
maxspeed = 125;
|
|
scope = public;
|
|
typicalcargo[] = {};
|
|
|
|
class Upgrades {
|
|
ItemORP[] = {"car_hatchback_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
|
|
};
|
|
};
|
|
|
|
// Performance 1
|
|
class car_hatchback_DZE1: car_hatchback {
|
|
original = "car_hatchback";
|
|
maxspeed = 150; // max engine limit 125-130
|
|
terrainCoef = 2.5;
|
|
|
|
class Upgrades {
|
|
ItemAVE[] = {"car_hatchback_DZE2",{},{{"ItemAVE",1},{"PartGeneric",4},{"ItemTankTrap",2}}};
|
|
};
|
|
};
|
|
|
|
// Armor 2
|
|
class car_hatchback_DZE2: car_hatchback_DZE1 {
|
|
armor = 50; // car 20
|
|
class HitPoints: HitPoints {
|
|
class HitLFWheel: HitLFWheel {
|
|
armor = 0.3;
|
|
};
|
|
class HitLBWheel: HitLBWheel {
|
|
armor = 0.3;
|
|
};
|
|
class HitRFWheel: HitRFWheel {
|
|
armor = 0.3;
|
|
};
|
|
class HitRBWheel: HitRBWheel {
|
|
armor = 0.3;
|
|
};
|
|
class HitFuel {
|
|
armor = 0.28;
|
|
material = -1;
|
|
name = "palivo";
|
|
visual = "";
|
|
passThrough = 1;
|
|
};
|
|
class HitEngine {
|
|
armor = 1;
|
|
material = -1;
|
|
name = "motor";
|
|
visual = "";
|
|
passThrough = 1;
|
|
};
|
|
class HitGlass1: HitGlass1 {
|
|
armor = 0.1;
|
|
};
|
|
class HitGlass2: HitGlass2 {
|
|
armor = 0.1;
|
|
};
|
|
class HitGlass3: HitGlass3 {
|
|
armor = 0.1;
|
|
};
|
|
class HitGlass4: HitGlass4 {
|
|
armor = 0.1;
|
|
};
|
|
};
|
|
|
|
class Upgrades {
|
|
ItemLRK[] = {"car_hatchback_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
|
|
};
|
|
};
|
|
|
|
// Cargo 3
|
|
class car_hatchback_DZE3: car_hatchback_DZE2 {
|
|
transportMaxWeapons = 20; // car 10
|
|
transportMaxMagazines = 100; // car 50
|
|
transportmaxbackpacks = 4; // car 2
|
|
|
|
class Upgrades {
|
|
ItemTNK[] = {"car_hatchback_DZE4",{},{{"ItemTNK",1},{"PartFueltank",2}}};
|
|
};
|
|
};
|
|
|
|
// Fuel 4
|
|
class car_hatchback_DZE4: car_hatchback_DZE3 {
|
|
fuelCapacity = 210; // car 100
|
|
};
|