Skip to content

Commit

Permalink
Initial revision of police hatchback (ugly as fuck) (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
3Mydlo3 authored Mar 13, 2024
1 parent 2d03bb6 commit 3135a81
Show file tree
Hide file tree
Showing 5 changed files with 108 additions and 2 deletions.
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"

0 comments on commit 3135a81

Please sign in to comment.