Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgVehicles/Car/CAR_SEDAN.hpp
oiad d987fb290c Advanced trading selling upgraded vehicles.
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.
2016-08-19 22:15:47 +12:00

89 lines
1.7 KiB
C++

class car_sedan : SkodaBase {
crew = "";
displayname = $STR_VEH_NAME_SEDAN;
faction = "CIV";
maxspeed = 125;
scope = public;
typicalcargo[] = {};
class Upgrades {
ItemORP[] = {"car_sedan_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
// Performance 1
class car_sedan_DZE1: car_sedan {
original = "car_sedan";
maxspeed = 150; // max engine limit 125-130
terrainCoef = 2.5;
class Upgrades {
ItemAVE[] = {"car_sedan_DZE2",{},{{"ItemAVE",1},{"PartGeneric",4},{"ItemTankTrap",2}}};
};
};
// Armor 2
class car_sedan_DZE2: car_sedan_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_sedan_DZE3",{},{{"ItemLRK",1},{"PartGeneric",1},{"ItemTent",1}}};
};
};
// Cargo 3
class car_sedan_DZE3: car_sedan_DZE2 {
transportMaxWeapons = 20; // car 10
transportMaxMagazines = 100; // car 50
transportmaxbackpacks = 4; // car 2
class Upgrades {
ItemTNK[] = {"car_sedan_DZE4",{},{{"ItemTNK",1},{"PartFueltank",2}}};
};
};
// Fuel 4
class car_sedan_DZE4: car_sedan_DZE3 {
fuelCapacity = 210; // car 100
};