Skip to content

Commit

Permalink
Added HEI to stryker dragoon autocannon (#224)
Browse files Browse the repository at this point in the history
* Project Update

* Added HEI and changed magazine sizes

* Fix string table

* Update project.toml

* Tabs to Spaces

* Replace project.toml with old one

* Remove all redundant values

* Add ace fragmentation to HEI

* Change initSpeed of HEI

* Use modified turret to avoid overwriting base objects.

* Add MFD label to APFSDS-T

* Further weapons updates as well as convention update

* Remove all magazines from commander turret as well

* Damage reduction and remove missile launcher.

* Damage adjustments

* Remove AT Launchers from dragoons. To be added back in future branch.
  • Loading branch information
pool011 authored Apr 4, 2024
1 parent 399aa70 commit 9bb1d0b
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 1 deletion.
47 changes: 47 additions & 0 deletions addons/vehicles_dragoon/CfgAmmo.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
class CfgAmmo {
class B_30mm_HE;
class B_30mm_HE_Tracer_Red;
class cav_B_30mm_HEI_Tracer_Red: B_30mm_HE_Tracer_Red {
ace_frag_enabled = 1; // Enable fragmentation (0-disabled, 1-enabled)
ace_frag_metal = 378; // Amount of metal being fragmented (grams) - information below
ace_frag_charge = 181; // Amount of explosive filler (grams) - information below
ace_frag_gurney_c = 2830; // Gurney velocity constant for explosive type - information below
ace_frag_gurney_k = 1/2; // Gurney shape factor - information below
ace_frag_classes[] = {"ACE_frag_medium"}; // Type of fragments - information below
ace_frag_skip = 0; // (Optional) Skip fragmentation for this ammo type (0-disabled, 1-enabled) - information below
ace_frag_force = 0; // (Optional) Force fragmentation system (0-disabled, 1-enabled) - information below
ace_vehicle_damage_incendiary = 0.3;
indirectHitRange = 4;
indirectHit = 8;
};
// TODO: FCS Air Burst
class cav_B_30mm_HEAB_Tracer_Red: B_30mm_HE_Tracer_Red {
ace_frag_enabled = 1; // Enable fragmentation (0-disabled, 1-enabled)
ace_frag_metal = 363; // Amount of metal being fragmented (grams) - information below
ace_frag_charge = 185; // Amount of explosive filler (grams) - information below
ace_frag_gurney_c = 2830; // Gurney velocity constant for explosive type - information below
ace_frag_gurney_k = 1/2; // Gurney shape factor - information below
ace_frag_classes[] = {"ACE_frag_medium"}; // Type of fragments - information below
ace_frag_skip = 0; // (Optional) Skip fragmentation for this ammo type (0-disabled, 1-enabled) - information below
ace_frag_force = 0; // (Optional) Force fragmentation system (0-disabled, 1-enabled) - information below
deflecting = 0;
indirectHitRange = 2;
indirectHit = 6;
airbursting = 1;
ABSubmun = "cav_B_30mm_HEAB_Helper";
};
class cav_B_30mm_HEAB_Helper: B_30mm_HE {
ace_frag_enabled = 1; // Enable fragmentation (0-disabled, 1-enabled)
ace_frag_metal = 363; // Amount of metal being fragmented (grams) - information below
ace_frag_charge = 185; // Amount of explosive filler (grams) - information below
ace_frag_gurney_c = 2843; // Gurney velocity constant for explosive type - information below
ace_frag_gurney_k = 1/2; // Gurney shape factor - information below
ace_frag_classes[] = {"ACE_frag_medium"}; // Type of fragments - information below
ace_frag_skip = 0; // (Optional) Skip fragmentation for this ammo type (0-disabled, 1-enabled) - information below
ace_frag_force = 0; // (Optional) Force fragmentation system (0-disabled, 1-enabled) - information below
indirectHitRange = 2;
indirectHit = 6;
simulation = "shotRocket";
timeToLive = 0;
};
};
43 changes: 43 additions & 0 deletions addons/vehicles_dragoon/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
class CfgMagazines {
class 140Rnd_30mm_MP_shells_Tracer_Red;
class cav_78Rnd_30mm_MP_shells_Tracer_Red: 140Rnd_30mm_MP_shells_Tracer_Red {
displayName = CSTRING(cav_78Rnd_30mm_MP_shells_Tracer_Red);
displayNameShort = CSTRING(cav_78Rnd_30mm_MP_shells_Tracer_Red_dispShort);
displayNameMFDFormat = "MP-T";
count=78;
};
class 60Rnd_30mm_APFSDS_shells_Tracer_Red;
class cav_78Rnd_30mm_APFSDS_shells_Tracer_Red: 60Rnd_30mm_APFSDS_shells_Tracer_Red {
displayName = CSTRING(cav_78Rnd_30mm_APFSDS_shells_Tracer_Red);
displayNameShort = CSTRING(cav_78Rnd_30mm_APFSDS_shells_Tracer_Red_dispShort);
displayNameMFDFormat = "APFSDS-T";
count=78;
};
class cav_78Rnd_30mm_HEI_shells_Tracer_Red: cav_78Rnd_30mm_MP_shells_Tracer_Red {
ammo = "cav_B_30mm_HEI_Tracer_Red";
displayNameMFDFormat = "HEI-T";
displayName = CSTRING(cav_78Rnd_30mm_HEI_shells_Tracer_Red);
displayNameShort = CSTRING(cav_78Rnd_30mm_HEI_shells_Tracer_Red_dispShort);
initSpeed=1100;
};
class 4Rnd_Titan_long_missiles;
class cav_2Rnd_fim92_missiles: 4Rnd_Titan_long_missiles {
displayName = CSTRING(cav_2Rnd_fim92_missiles);
displayNameShort = CSTRING(cav_2Rnd_fim92_missiles_dispShort);
ammo = "rhs_ammo_fim92_missile";
count=2;
};
// TODO: ACE FCS Air Burst Mags
class cav_78Rnd_30mm_HEABT_shells_Tracer_Red: cav_78Rnd_30mm_MP_shells_Tracer_Red {
ammo="cav_B_30mm_HEAB_Tracer_Red";
displayNameMFDFormat="HEAB-T";
displayName=CSTRING(cav_78Rnd_30mm_HEAB_shells_Tracer_Red);
displayNameShort=CSTRING(cav_78Rnd_30mm_HEAB_shells_Tracer_Red_dispShort);
};
class 200Rnd_762x51_Belt_Red;
class cav_mag_300Rnd_762x51_Belt_Red: 200Rnd_762x51_Belt_Red {
ammo="B_762x51_Tracer_Red";
displayName=CSTRING(cav_mag_300Rnd_762x51_Belt_Red);
count=300;
};
};
63 changes: 62 additions & 1 deletion addons/vehicles_dragoon/CfgVehicles.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,54 @@
class CfgVehicles {
class I_APC_Wheeled_03_cannon_F;
class All {
class Turrets;
};

class AllVehicles: All {
class NewTurret {
class Turrets;
};
};

class Land: AllVehicles {};

class LandVehicle: Land {
class CommanderOptics;
};

class Car: LandVehicle {};
class Car_F: Car {
class Turrets {
class MainTurret: NewTurret {};
};
};

class Wheeled_APC_F: Car_F {
class Turrets {
class MainTurret: NewTurret {
class Turrets {
class CommanderOptics: CommanderOptics {};
};
};
};
};

class APC_Wheeled_03_base_F: Wheeled_APC_F {
class Turrets: Turrets {
class MainTurret: MainTurret {};
};
};
class I_APC_Wheeled_03_base_F: APC_Wheeled_03_base_F {};

class I_APC_Wheeled_03_cannon_F: I_APC_Wheeled_03_base_F {
class Turrets: Turrets {
class MainTurret: MainTurret {
class Turrets: Turrets {
class CommanderOptics: CommanderOptics {};
};
};
};
};

class cav_dragoon_base_F: I_APC_Wheeled_03_cannon_F {
scope = 1;
scopeCurator = 1;
Expand Down Expand Up @@ -289,6 +338,18 @@ class CfgVehicles {
mass = -50;
};
};
class Turrets: Turrets {
class MainTurret: MainTurret {
weapons[] = {"cav_autocannon_30mm_CTWS","cav_dragoon_coax_m240","SmokeLauncher"};
magazines[] = {"cav_78Rnd_30mm_HEI_shells_Tracer_Red","cav_78Rnd_30mm_HEI_shells_Tracer_Red","cav_78Rnd_30mm_HEI_shells_Tracer_Red","cav_78Rnd_30mm_HEI_shells_Tracer_Red","cav_78Rnd_30mm_APFSDS_shells_Tracer_Red","cav_78Rnd_30mm_APFSDS_shells_Tracer_Red","2000Rnd_762x51_Belt_T_Red","cav_mag_300Rnd_762x51_Belt_Red","cav_mag_300Rnd_762x51_Belt_Red","cav_mag_300Rnd_762x51_Belt_Red","cav_mag_300Rnd_762x51_Belt_Red","cav_mag_300Rnd_762x51_Belt_Red","cav_mag_300Rnd_762x51_Belt_Red","cav_mag_300Rnd_762x51_Belt_Red","SmokeLauncherMag","SmokeLauncherMag"};
class Turrets: Turrets {
class CommanderOptics: CommanderOptics {
weapons[] = {};
magazines[] = {};
};
};
};
};
};
class cav_dragoon_unarmed_base_F: cav_dragoon_base_F {
supplyRadius = 10;
Expand Down
27 changes: 27 additions & 0 deletions addons/vehicles_dragoon/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
class CfgWeapons {
class CannonCore;
class autocannon_Base_F: CannonCore {
class player;
};
class autocannon_30mm_CTWS: autocannon_Base_F
{
class HE: autocannon_Base_F {};
class AP: autocannon_Base_F {};
};
class cav_autocannon_30mm_CTWS: autocannon_30mm_CTWS
{
class HE: HE
{
magazines[] = {"cav_78Rnd_30mm_MP_shells_Tracer_Red","cav_78Rnd_30mm_HEI_shells_Tracer_Red"};
};
class AP: AP
{
magazines[] = {"cav_78Rnd_30mm_APFSDS_shells_Tracer_Red"};
};
};
class LMG_coax_ext;
class cav_dragoon_coax_m240: LMG_coax_ext {
displayName = CSTRING(cav_dragoon_coax_m240);
magazines[] += {"cav_mag_300Rnd_762x51_Belt_Red"};
};
};
3 changes: 3 additions & 0 deletions addons/vehicles_dragoon/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,8 @@ class CfgPatches {
};
};

#include "CfgAmmo.hpp"
#include "CfgMagazines.hpp"
#include "CfgWeapons.hpp"
#include "CfgVehicles.hpp"
#include "CfgEditorSubcategories.hpp"
45 changes: 45 additions & 0 deletions addons/vehicles_dragoon/stringtable.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<Project name="cav">
<Package name="vehicles_dragoon">
<!-- CfgEditorSubcategories -->
<Key ID="STR_cav_vehicles_dragoon_Cav_EdSubcat_vehicles_woodland">
<English>APC (Woodland)</English>
</Key>
Expand All @@ -9,7 +10,43 @@
<Key ID="STR_cav_vehicles_dragoon_Cav_EdSubcat_vehicles_arctic">
<English>APC (Arctic)</English>
</Key>

<!-- CfgMagazines -->
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_MP_shells_Tracer_Red">
<English>78Rnd MP Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_MP_shells_Tracer_Red_dispShort">
<English>MP-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_APFSDS_shells_Tracer_Red">
<English>78Rnd APFSDS Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_APFSDS_shells_Tracer_Red_dispShort">
<English>APFSDS-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_HEAB_shells_Tracer_Red">
<English>78Rnd HEAB Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_HEAB_shells_Tracer_Red_dispShort">
<English>HEAB-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_HEI_shells_Tracer_Red">
<English>78Rnd HEI Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_78Rnd_30mm_HEI_shells_Tracer_Red_dispShort">
<English>HEI-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_mag_300Rnd_762x51_Belt_Red">
<English>300Rnd Linked M80A1 EPR Belt</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_2Rnd_fim92_missiles">
<English>2Rnd Stinger</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_2Rnd_fim92_missiles_dispShort">
<English>Stinger</English>
</Key>

<!-- CfgVehicles -->
<Key ID="STR_cav_vehicles_dragoon_cav_dragoon_base_F">
<English>M1296 Dragoon</English>
</Key>
Expand Down Expand Up @@ -160,5 +197,13 @@
<Key ID="STR_cav_vehicles_dragoon_cav_dragoon_A_WH7">
<English>M1296 Dragoon (Warhorse-7)</English>
</Key>

<!-- CfgWeapons -->
<Key ID="STR_cav_vehicles_dragoon_cav_dragoon_coax_m240">
<English>M240C Coax</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_dragoon_missiles_AA">
<English>Stinger Launcher</English>
</Key>
</Package>
</Project>

0 comments on commit 9bb1d0b

Please sign in to comment.