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_Armycwr_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_USSRcwr_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";
};
};
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
["attributesVehicles", [
// light armed Cars
["CUP_I_Datsun_PK", ["rebCost", 600]],

// light armed boats
["CUP_I_RHIB_RACS", ["rebCost", 1000]],

// civ cars
["CUP_C_Pickup_unarmed_CIV", ["rebcost", 300]],
["CUP_C_SUV_CIV", ["rebcost", 400]],

// civ trucks
["CUP_C_Ikarus_Chernarus", ["rebcost", 500]],

// civ plane
["CUP_C_C47_CIV", ["rebcost", 8000]],

// civ helicopters
["CUP_I_Merlin_HC3_PMC_Lux_3C", ["rebCost", 8000]]
]] call _fnc_saveToTemplate;
46 changes: 46 additions & 0 deletions A3A/addons/core/Templates/Templates/CWR/CUP_Vehicle_Attributes.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
["attributesVehicles", [

// Weak AA vehicles. Leave threat because they're still dangerous in rebel hands
["CUP_B_nM1097_AVENGER_USA_DES", ["cost", 70]],
["CUP_B_nM1097_AVENGER_USA_WDL", ["cost", 70]],
["CUP_B_M163_Vulcan_USA", ["cost", 100]],
["CUP_I_M163_Vulcan_RACS", ["cost", 100]],

// IFVs with bonus armour
["CUP_B_FV510_GB_D_SLAT", ["cost", 170]],
["CUP_B_FV510_GB_W_SLAT", ["cost", 170]],
["CUP_B_MCV80_GB_D_SLAT", ["cost", 170]],
["CUP_B_MCV80_GB_W_SLAT", ["cost", 170]],
["CUP_B_M2A3Bradley_USA_D", ["cost", 180], ["threat", 230]],
["CUP_B_M2A3Bradley_USA_W", ["cost", 180], ["threat", 230]], // also has TOW

// BMPs a bit better than APC but not Bradley level
["CUP_O_BMP3_RU", ["cost", 120], ["threat", 150]],
["CUP_O_BMP2_RU", ["cost", 120], ["threat", 150]],
["CUP_O_BMP2_SLA", ["cost", 120], ["threat", 150]],
["CUP_O_BMP2_TKA", ["cost", 120], ["threat", 150]],
["CUP_B_BMP2_CZ", ["cost", 120], ["threat", 150]],
["CUP_B_BMP2_CZ_Des", ["cost", 120], ["threat", 150]],
["CUP_B_BMP2_CDF", ["cost", 120], ["threat", 150]],

// This one is quite strong by light-armed standards
["CUP_O_GAZ_Vodnik_BPPU_RU", ["cost", 75], ["threat", 120]],

// Tank destroyer strykers, not tough
["CUP_B_M1128_MGS_Woodland", ["cost", 120], ["threat", 180]],
["CUP_B_M1128_MGS_Desert", ["cost", 120], ["threat", 180]],

// Trash planes
["CUP_B_L39_CZ", ["cost", 150]],
["CUP_O_L39_TK", ["cost", 150]],

// Attack helis
// ["CUP_O_UH1H_armed_TKA", ["cost", 100]], // few rockets plus door PKs
// ["CUP_I_AH6J_RACS", ["cost", 100]], // few rockets plus fixed miniguns
// ["CUP_O_Ka50_SLA", ["cost", 250]], // rockets & missiles but fixed cannon
// ["CUP_O_Ka50_RU", ["cost", 250]],
// ["CUP_O_Ka52_RU", ["cost", 250]],
["CUP_B_AH64D_DL_USA", ["cost", 350]] // better than the russian stuff
// ["CUP_B_AH1Z_Dynamic_USMC", ["cost", 300]]

]] call _fnc_saveToTemplate;
Loading