Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add police hatchback (and highway) variant #78

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions addons/equipment/CfgSerialKillers.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
};
Expand Down
93 changes: 93 additions & 0 deletions addons/vehicles/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -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 };
};
};
Binary file not shown.
Binary file not shown.
1 change: 1 addition & 0 deletions addons/vehicles/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ class CfgPatches {

#include "CfgEventHandlers.hpp"
#include "CfgSounds.hpp"
#include "CfgVehicles.hpp"