diff --git a/addons/vehicles_dragoon/CfgAmmo.hpp b/addons/vehicles_dragoon/CfgAmmo.hpp new file mode 100644 index 00000000..c7a97b57 --- /dev/null +++ b/addons/vehicles_dragoon/CfgAmmo.hpp @@ -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; + }; +}; \ No newline at end of file diff --git a/addons/vehicles_dragoon/CfgMagazines.hpp b/addons/vehicles_dragoon/CfgMagazines.hpp new file mode 100644 index 00000000..66e955cd --- /dev/null +++ b/addons/vehicles_dragoon/CfgMagazines.hpp @@ -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; + }; +}; \ No newline at end of file diff --git a/addons/vehicles_dragoon/CfgVehicles.hpp b/addons/vehicles_dragoon/CfgVehicles.hpp index f1709884..d9d9dea5 100644 --- a/addons/vehicles_dragoon/CfgVehicles.hpp +++ b/addons/vehicles_dragoon/CfgVehicles.hpp @@ -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; @@ -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; diff --git a/addons/vehicles_dragoon/CfgWeapons.hpp b/addons/vehicles_dragoon/CfgWeapons.hpp new file mode 100644 index 00000000..6e47f8d9 --- /dev/null +++ b/addons/vehicles_dragoon/CfgWeapons.hpp @@ -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"}; + }; +}; \ No newline at end of file diff --git a/addons/vehicles_dragoon/config.cpp b/addons/vehicles_dragoon/config.cpp index 8abac371..77effdb0 100644 --- a/addons/vehicles_dragoon/config.cpp +++ b/addons/vehicles_dragoon/config.cpp @@ -48,5 +48,8 @@ class CfgPatches { }; }; +#include "CfgAmmo.hpp" +#include "CfgMagazines.hpp" +#include "CfgWeapons.hpp" #include "CfgVehicles.hpp" #include "CfgEditorSubcategories.hpp" diff --git a/addons/vehicles_dragoon/stringtable.xml b/addons/vehicles_dragoon/stringtable.xml index 00c3d10d..6cf4d2ab 100644 --- a/addons/vehicles_dragoon/stringtable.xml +++ b/addons/vehicles_dragoon/stringtable.xml @@ -1,5 +1,6 @@ + APC (Woodland) @@ -9,7 +10,43 @@ APC (Arctic) + + + + 78Rnd MP Tracer (Red) + + + MP-T + + + 78Rnd APFSDS Tracer (Red) + + + APFSDS-T + + + 78Rnd HEAB Tracer (Red) + + + HEAB-T + + + 78Rnd HEI Tracer (Red) + + + HEI-T + + + 300Rnd Linked M80A1 EPR Belt + + + 2Rnd Stinger + + + Stinger + + M1296 Dragoon @@ -160,5 +197,13 @@ M1296 Dragoon (Warhorse-7) + + + + M240C Coax + + + Stinger Launcher + \ No newline at end of file