Split hatchback and sedan into separate files

Using 1.8.7 style now. If it was erroring out before it's because Skoda
needed to be defined before hatchback.
This commit is contained in:
ebaydayz
2016-03-05 21:04:06 -05:00
parent 9d52fb0595
commit eadb3566c4
3 changed files with 115 additions and 536 deletions

View File

@@ -167,4 +167,83 @@
class Library {
libtextdesc = "Civilian Car";
};
class Upgrades {
ItemORP[] = {"car_hatchback_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
// Performance 1
class car_hatchback_DZE1: 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
};