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

Added HEI to stryker dragoon autocannon #224

Merged
merged 19 commits into from
Apr 4, 2024
Merged
Show file tree
Hide file tree
Changes from 14 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
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 = 6;
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;
};
};
42 changes: 42 additions & 0 deletions addons/vehicles_dragoon/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
class CfgMagazines {
class 140Rnd_30mm_MP_shells_Tracer_Red;
class 78Rnd_30mm_MP_shells_Tracer_Red: 140Rnd_30mm_MP_shells_Tracer_Red {
pool011 marked this conversation as resolved.
Show resolved Hide resolved
displayName = CSTRING(78Rnd_30mm_MP_shells_Tracer_Red);
displayNameShort = CSTRING(78Rnd_30mm_MP_shells_Tracer_Red_dispShort);
displayNameMFDFormat = "MP-T";
count=78;
};
class 60Rnd_30mm_APFSDS_shells_Tracer_Red;
class 78Rnd_30mm_APFSDS_shells_Tracer_Red: 60Rnd_30mm_APFSDS_shells_Tracer_Red {
pool011 marked this conversation as resolved.
Show resolved Hide resolved
displayName = CSTRING(78Rnd_30mm_APFSDS_shells_Tracer_Red);
displayNameShort = CSTRING(78Rnd_30mm_APFSDS_shells_Tracer_Red_dispShort);
displayNameMFDFormat = "APFSDS-T";
count=78;
};
class 78Rnd_30mm_HEI_shells_Tracer_Red: 78Rnd_30mm_MP_shells_Tracer_Red {
pool011 marked this conversation as resolved.
Show resolved Hide resolved
ammo = "cav_B_30mm_HEI_Tracer_Red";
displayNameMFDFormat = "HEI-T";
displayName = CSTRING(78Rnd_30mm_HEI_shells_Tracer_Red);
displayNameShort = CSTRING(78Rnd_30mm_HEI_shells_Tracer_Red_dispShort);
initSpeed=1100;
};
class 4Rnd_Titan_long_missiles;
class cav_2Rnd_GAA_missiles: 4Rnd_Titan_long_missiles {
displayName = CSTRING(cav_2Rnd_GAA_missiles);
displayNameShort = CSTRING(cav_2Rnd_GAA_missiles_dispShort);
count=2;
};
// TODO: ACE FCS Air Burst Mags
class 78Rnd_30mm_HEABT_shells_Tracer_Red: 78Rnd_30mm_MP_shells_Tracer_Red {
pool011 marked this conversation as resolved.
Show resolved Hide resolved
ammo="cav_B_30mm_HEAB_Tracer_Red";
displayNameMFDFormat="HEAB-T";
displayName=CSTRING(78Rnd_30mm_HEAB_shells_Tracer_Red);
displayNameShort=CSTRING(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;
};
};
62 changes: 61 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,17 @@ class CfgVehicles {
mass = -50;
};
};
class Turrets: Turrets {
class MainTurret: MainTurret {
weapons[] = {"cav_autocannon_30mm_CTWS","LMG_coax_ext","cav_dragoon_missiles_AA","SmokeLauncher"};
magazines[] = {"78Rnd_30mm_HEI_shells_Tracer_Red","78Rnd_30mm_HEI_shells_Tracer_Red","78Rnd_30mm_HEI_shells_Tracer_Red","78Rnd_30mm_HEI_shells_Tracer_Red","78Rnd_30mm_APFSDS_shells_Tracer_Red","78Rnd_30mm_APFSDS_shells_Tracer_Red","2000Rnd_762x51_Belt_T_Red","2000Rnd_762x51_Belt_T_Red","4Rnd_Titan_long_missiles","SmokeLauncherMag"};
class Turrets: Turrets {
class CommanderOptics: CommanderOptics {
weapons[] = {};
};
};
};
};
};
class cav_dragoon_unarmed_base_F: cav_dragoon_base_F {
supplyRadius = 10;
Expand Down
26 changes: 26 additions & 0 deletions addons/vehicles_dragoon/CfgWeapons.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
class CfgWeapons {
class CannonCore;
class autocannon_Base_F: CannonCore {
class player;
};
class autocannon_30mm_CTWS: autocannon_Base_F
AndreasBrostrom marked this conversation as resolved.
Show resolved Hide resolved
{
class HE: autocannon_Base_F {};
class AP: autocannon_Base_F {};
};
class cav_autocannon_30mm_CTWS: autocannon_30mm_CTWS
{
class HE: HE
{
magazines[] += {"78Rnd_30mm_MP_shells_Tracer_Red","78Rnd_30mm_HEI_shells_Tracer_Red"};
};
class AP: AP
{
magazines[] += {"78Rnd_30mm_APFSDS_shells_Tracer_Red"};
};
};
class missiles_titan;
class cav_dragoon_missiles_AA: missiles_titan {
magazines[] = {"4Rnd_Titan_long_missiles"};
};
};
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_78Rnd_30mm_MP_shells_Tracer_Red">
<English>78Rnd MP Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_78Rnd_30mm_MP_shells_Tracer_Red_dispShort">
<English>MP-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_78Rnd_30mm_APFSDS_shells_Tracer_Red">
<English>78Rnd APFSDS Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_78Rnd_30mm_APFSDS_shells_Tracer_Red_dispShort">
<English>APFSDS-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_78Rnd_30mm_HEAB_shells_Tracer_Red">
<English>78Rnd HEAB Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_78Rnd_30mm_HEAB_shells_Tracer_Red_dispShort">
<English>HEAB-T</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_78Rnd_30mm_HEI_shells_Tracer_Red">
<English>78Rnd HEI Tracer (Red)</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_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_GAA_missiles">
<English>2Rnd Titan AA</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_2Rnd_GAA_missiles_dispShort">
<English>Titan AA</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">
<English>M240C Coax</English>
</Key>
<Key ID="STR_cav_vehicles_dragoon_cav_dragoon_missile_launcher">
<English>ATGM Launcher</English>
</Key>
</Package>
</Project>
Loading