Files
DayZ-Epoch/SQF/dayz_code/Configs/CfgVehicles/LAND/datsun.hpp
Florian Kinder 1d60f7b1bb New vehicle upgrade system
Need test with datsun vehicle to ensure it works fine
2014-02-14 13:26:20 +01:00

233 lines
5.1 KiB
C++

class datsun1_civil_1_open;
class datsun1_civil_1_open_DZE: datsun1_civil_1_open {
terrainCoef = 2.5;
class Upgrades {
ORP[] = {"datsun1_civil_1_open_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
class datsun1_civil_2_covered;
class datsun1_civil_2_covered_DZE: datsun1_civil_2_covered {
terrainCoef = 2.5;
class Upgrades {
ORP[] = {"datsun1_civil_2_covered_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
class datsun1_civil_3_open;
class datsun1_civil_3_open_DZE: datsun1_civil_3_open {
terrainCoef = 2.5;
class Upgrades {
ORP[] = {"datsun1_civil_3_open_DZE1",{},{{"ItemORP",1},{"PartEngine",2}}};
};
};
// Performance 1
class datsun1_civil_1_open_DZE1: datsun1_civil_1_open_DZE {
maxspeed = 150; // max engine limit 125-130
terrainCoef = 1.8;
class Upgrades {
AVE[] = {"datsun1_civil_1_open_DZE2",{},{{"ItemAVE",1},{"PartGeneric",4},{"ItemTankTrap",2}}};
};
};
class datsun1_civil_2_covered_DZE1: datsun1_civil_2_covered_DZE {
maxspeed = 150; // car 100
terrainCoef = 1.8;
class Upgrades {
AVE[] = {"datsun1_civil_2_covered_DZE2",{},{{"ItemAVE",1},{"PartGeneric",4},{"ItemTankTrap",2}}};
};
};
class datsun1_civil_3_open_DZE1: datsun1_civil_3_open_DZE {
maxspeed = 150; // car 100
terrainCoef = 1.8;
class Upgrades {
AVE[] = {"datsun1_civil_3_open_DZE2",{},{{"ItemAVE",1},{"PartGeneric",4},{"ItemTankTrap",2}}};
};
};
// Armor 2
class datsun1_civil_1_open_DZE2: datsun1_civil_1_open_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 {
LRK[] = {"datsun1_civil_1_open_DZE3",{},{{"ItemLRK",1},{"PartGeneric",2},{"ItemTent",1}}};
};
};
class datsun1_civil_2_covered_DZE2: datsun1_civil_2_covered_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 {
LRK[] = {"datsun1_civil_2_covered_DZE3",{},{{"ItemLRK",1},{"PartGeneric",2},{"ItemTent",1}}};
};
};
class datsun1_civil_3_open_DZE2: datsun1_civil_3_open_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 {
LRK[] = {"datsun1_civil_3_open_DZE3",{},{{"ItemLRK",1},{"PartGeneric",2},{"ItemTent",1}}};
};
};
// Cargo 3
class datsun1_civil_1_open_DZE3: datsun1_civil_1_open_DZE2 {
transportMaxWeapons = 20; // car 10
transportMaxMagazines = 100; // car 50
transportmaxbackpacks = 4; // car 2
class Upgrades {
TNK[] = {"datsun1_civil_1_open_DZE4",{},{{"ItemTNK",1},{"PartFueltank",2}}};
};
};
class datsun1_civil_2_covered_DZE3: datsun1_civil_2_covered_DZE2 {
transportMaxWeapons = 20; // car 10
transportMaxMagazines = 100; // car 50
transportmaxbackpacks = 4; // car 2
class Upgrades {
TNK[] = {"datsun1_civil_2_covered_DZE4",{},{{"ItemTNK",1},{"PartFueltank",2}}};
};
};
class datsun1_civil_3_open_DZE3: datsun1_civil_3_open_DZE2 {
transportMaxWeapons = 20; // car 10
transportMaxMagazines = 100; // car 50
transportmaxbackpacks = 4; // car 2
class Upgrades {
TNK[] = {"datsun1_civil_3_open_DZE4",{},{{"ItemTNK",1},{"PartFueltank",2}}};
};
};
// Fuel 4
class datsun1_civil_1_open_DZE4: datsun1_civil_1_open_DZE3 {
fuelCapacity = 210; // car 100
};
class datsun1_civil_2_covered_DZE4: datsun1_civil_2_covered_DZE3 {
fuelCapacity = 210; // car 100
};
class datsun1_civil_3_open_DZE4: datsun1_civil_3_open_DZE3 {
fuelCapacity = 210; // car 100
};