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 CWR3 Templates #3413

Merged
10 changes: 10 additions & 0 deletions A3A/addons/config_fixes/CWR/CfgMagazines.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
class CfgMagazines
{
class PylonMissile_1Rnd_Mk82_F;
class cwr3_PylonMissile_1Rnd_B61: PylonMissile_1Rnd_Mk82_F {
hardpoints[] = {"B_BOMB_NUKE_PYLON"};
};
class cwr3_PylonMissile_1Rnd_RN28: PylonMissile_1Rnd_Mk82_F {
hardpoints[] = {"O_BOMB_NUKE_PYLON"};
};
};
26 changes: 26 additions & 0 deletions A3A/addons/config_fixes/CWR/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//CWR - config.cpp

#include "..\script_component.hpp"

class CfgPatches
{
class PATCHNAME(CWR)
{
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"A3_Data_F_AoW_Loadorder","cwr3_air_weapons"};
author = AUTHOR;
authors[] = { AUTHORS };
authorUrl = "";
VERSION_CONFIG;
skipWhenMissingDependencies = 1;
};
};

// Uncomment when needed
//#include "CfgVehicles.hpp"
//#include "CfgMarkers.hpp"
//#include "CfgWeapons.hpp"
#include "CfgMagazines.hpp"
58 changes: 58 additions & 0 deletions A3A/addons/core/Templates/AircraftLoadouts/CWR/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
#include "..\..\..\script_component.hpp"

class CfgPatches {
class PATCHNAME(AirLoadout_CWR) {
name = COMPONENT_NAME;
units[] = {};
weapons[] = {};
requiredVersion = REQUIRED_VERSION;
requiredAddons[] = {"cwr3_core"};
skipWhenMissingDependencies = 1;
author = AUTHOR;
authors[] = { AUTHORS };
authorUrl = "";
VERSION_CONFIG;
};
};

class A3A {
class Loadouts
{
class CASPlane
{
class baseCAS;
class cwr3_o_su17m4 : baseCAS {
loadout[] = {"CUP_PylonPod_16Rnd_S5_plane_M","CUP_PylonPod_16Rnd_S5_plane_M","CUP_PylonPod_1Rnd_FAB250_plane_M","CUP_PylonPod_1Rnd_FAB250_plane_M","PylonMissile_Missile_AGM_KH25_x1","PylonMissile_Missile_AGM_KH25_x1","CUP_PylonPod_250Rnd_TE2_Green_Tracer_GSh23_23mm_APHE_M"};
mainGun[] = {"CUP_PylonPod_250Rnd_TE2_Green_Tracer_GSh23_23mm_APHE_M"};
rocketLauncher[] = {"CUP_PylonPod_16Rnd_S5_plane_M"};
missileLauncher[] = {"PylonMissile_Missile_AGM_KH25_x1"};
};

class cwr3_b_a10 : baseCAS {
loadout[] = {"CUP_PylonPod_2Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","PylonRack_Missile_AGM_02_x2","CUP_PylonPod_2Rnd_Mk82_M","","CUP_PylonPod_2Rnd_Mk82_M","PylonRack_Missile_AGM_02_x2","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_ALQ_131"};
mainGun[] = {"CUP_Vacannon_GAU8_veh"};
rocketLauncher[] = {"CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M"};
missileLauncher[] = {"PylonRack_Missile_AGM_02_x2"};
};
};
class CAPPlane
{
class baseCAP;
class cwr3_b_f16c : baseCAP {
loadout[] = {"","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_1Rnd_AIM_120_AMRAAM_M","CUP_PylonPod_1Rnd_AIM_120_AMRAAM_M","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M",""};
};

class cwr3_b_f4e : baseCAP {
loadout[] = {"","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_1Rnd_AIM_120_AMRAAM_M","CUP_PylonPod_1Rnd_AIM_120_AMRAAM_M","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M","CUP_PylonPod_1Rnd_AIM_9L_LAU_Sidewinder_M",""};
};

class cwr3_o_mig23 : baseCAP {
loadout[] = {"PylonMissile_Missile_AA_R73_x1","PylonMissile_Missile_AA_R73_x1","PylonMissile_Missile_AA_R73_x1","PylonMissile_Missile_AA_R73_x1","PylonMissile_Missile_AA_R77_x1"};
};
};
class Helicopter
{

};
};
};
39 changes: 39 additions & 0 deletions A3A/addons/core/Templates/Templates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,4 +1458,43 @@ class Templates
shortName = "Civilian";
lore = $STR_A3A_templates_lore_SPE_IFA_CIV;
};
// ***************************** CWR *****************************

class CWR_Base
{
requiredAddons[] = {"cwr3_core"}; // units, weapons, vehicles
//requiredAddons[] = {"cwr3_core"}; // vehicles requires units & weapons
basepath = QPATHTOFOLDER(Templates\Templates\CWR);
logo = "\CUP\Creatures\People\CUP_Creatures_People_Core\ui\logo_cup_ca_small.paa";
priority = 70;
};

class CWR_US_Temprate : CWR_Base
{
side = "Occ";
flagTexture = "a3\data_f\flags\flag_us_co.paa";
name = "CWR US Temprate";
file = "CWR_AI_US_Army_Temperate";
climate[] = {"Temperate"};
shortName = "US Army";
};

class CWR_USSR_Temprate : CWR_Base
{
side = "Inv";
flagTexture = "\cwr3\general\cwr3_core\data\flag_ussr_co.paa";
name = "CWR USSR Temperate";
file = "CWR_AI_USSR_Temperate";
climate[] = {"Temperate"};
shortName = "USSR";
};

class CWR_FIA : CWR_Base
{
side = "Reb";
flagTexture = "\cwr3\general\cwr3_core\data\flag_fia_co.paa";
name = "CWR FIA";
file = "CWR_Reb_FIA";
shortName = "FIA";
};
};
Loading