diff --git a/addons/equipment/CfgSerialKillers.hpp b/addons/equipment/CfgSerialKillers.hpp index c6cd200a..54bde6b5 100644 --- a/addons/equipment/CfgSerialKillers.hpp +++ b/addons/equipment/CfgSerialKillers.hpp @@ -216,7 +216,15 @@ class CfgSerialKillers class Vehicles { /* Vehicles */ - class B_GEN_Offroad_01_gen_F {}; + class EGVAR(vehicles,Hatchback_cop) {}; + class B_GEN_Offroad_01_gen_F + { + requiredScore = 10; + }; + class EGVAR(vehicles,Hatchback_sport_cop) + { + requiredScore = 15; + }; class B_G_Offroad_01_armed_F { requiredScore = 20; @@ -776,12 +784,16 @@ class CfgSerialKillers /* Vehicles */ class CUP_LADA_LM_CIV {}; class CUP_C_Volha_Limo_TKCIV {}; + class EGVAR(vehicles,Hatchback_cop) + { + requiredScore = 5; + }; class B_GEN_Offroad_01_gen_F { requiredScore = 10; }; - class C_Hatchback_01_sport_F + class EGVAR(vehicles,Hatchback_sport_cop) { requiredScore = 15; }; diff --git a/addons/vehicles/CfgVehicles.hpp b/addons/vehicles/CfgVehicles.hpp new file mode 100644 index 00000000..c002a13c --- /dev/null +++ b/addons/vehicles/CfgVehicles.hpp @@ -0,0 +1,93 @@ +#define HATCHBACK_POLICE_TEXTURE QPATHTOF(assets\textures\hatchback_01_police.paa) +#define HATCHBACK_SPORT_POLICE_TEXTURE QPATHTOF(assets\textures\hatchback_01_police_highway.paa) + +class CfgVehicles +{ + class Car_F; + class Hatchback_01_base_F; + class Hatchback_01_sport_base_F; + class C_Hatchback_01_F; + class C_Hatchback_01_sport_F; + + class GVAR(Hatchback_cop) : C_Hatchback_01_F + { + faction = "BLU_GEN_F"; // TODO some own faction + + enginePower = 120; // 103 original + peakTorque = 180; // 174 original + idleRPM = 800; // 800 original + maxSpeed = 210; // 190 original + + hiddenSelectionsTextures[] = { HATCHBACK_POLICE_TEXTURE }; + + textureList[] = + { + "Police", + 1 + }; + }; + + class GVAR(Hatchback_sport_cop) : C_Hatchback_01_sport_F + { + faction = "BLU_GEN_F"; // TODO some own faction + + enginePower = 320; // 285 original + peakTorque = 480; // 450 original + idleRPM = 1100; // 1000 original + maxSpeed = 330; // 300 original + + hiddenSelectionsTextures[] = { HATCHBACK_SPORT_POLICE_TEXTURE }; + + textureList[] = + { + "Police", + 1 + }; + }; + + class Hatchback_01_base_F : Car_F + { + class TextureSources + { + class Police + { + DisplayName = "Police"; + author = "3Mydlo3"; + textures[] = { HATCHBACK_POLICE_TEXTURE }; + factions[] = { "BLU_GEN_F" }; + }; + class Police_Highway + { + DisplayName = "Police Highway"; + author = "3Mydlo3"; + textures[] = { HATCHBACK_SPORT_POLICE_TEXTURE }; + factions[] = { "BLU_GEN_F" }; + }; + }; + + textureList[] += { "Police", 0, "Police_Highway", 0 }; + }; + + class Hatchback_01_sport_base_F : Hatchback_01_base_F + { + class TextureSources + { + class Police + { + DisplayName = "Police"; + author = "3Mydlo3"; + textures[] = { HATCHBACK_POLICE_TEXTURE }; + factions[] = { "BLU_GEN_F" }; + }; + class Police_Highway + { + DisplayName = "Police Highway"; + author = "3Mydlo3"; + textures[] = { HATCHBACK_SPORT_POLICE_TEXTURE }; + factions[] = { "BLU_GEN_F" }; + }; + }; + + textureList[] += { "Police", 0, "Police_Highway", 0 }; + }; +}; diff --git a/addons/vehicles/assets/textures/hatchback_01_police.paa b/addons/vehicles/assets/textures/hatchback_01_police.paa new file mode 100644 index 00000000..b4ce304f Binary files /dev/null and b/addons/vehicles/assets/textures/hatchback_01_police.paa differ diff --git a/addons/vehicles/assets/textures/hatchback_01_police_highway.paa b/addons/vehicles/assets/textures/hatchback_01_police_highway.paa new file mode 100644 index 00000000..8f88e601 Binary files /dev/null and b/addons/vehicles/assets/textures/hatchback_01_police_highway.paa differ diff --git a/addons/vehicles/config.cpp b/addons/vehicles/config.cpp index 8f4daa98..8fc34b25 100644 --- a/addons/vehicles/config.cpp +++ b/addons/vehicles/config.cpp @@ -16,3 +16,4 @@ class CfgPatches { #include "CfgEventHandlers.hpp" #include "CfgSounds.hpp" +#include "CfgVehicles.hpp"