Skip to content

Commit

Permalink
Added CWR3 Templates (#3413)
Browse files Browse the repository at this point in the history
* Added CWR3

added the mod cold war rearmed 3

* fixes

fixed the #includes in all the templates
fixed the CFG fix being empty

* Fix of fixes

Renamed in template hpp

* spring cleaning

removed vic attributes that aren't needed

* More fixes

Fixes to reb vic att

* More fixes

Removed unneeded comments fixed path for reb vic attributes and fixed prices

* ante requested changes

fixes ante asked for

* template clean up

cleaned up the same guns put over and over having the same loadout.
and removed drones from the template

* vic fixes

Removed brdms and bmphq from apc line

* extra"

removed exrea " in apc line

* more fixes

added f4e because ante asked and removed a fat fingered 7

* plane fixes

fixed cas plane loadouts

* Plane loadout fix

fixed plane loadout

* us plane fixes

fixes

* CAS Fix

* Lore blurbs

---------

Co-authored-by: ante <[email protected]>
  • Loading branch information
skillless402 and ante185 authored Oct 22, 2024
1 parent f3aed1e commit 343c1a3
Show file tree
Hide file tree
Showing 11 changed files with 2,319 additions and 2 deletions.
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"};
};
};
22 changes: 22 additions & 0 deletions A3A/addons/config_fixes/CWR/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
//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;
};
};

#include "CfgMagazines.hpp"
68 changes: 68 additions & 0 deletions A3A/addons/core/Templates/AircraftLoadouts/CWR/config.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
#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[] = {"cwr3_vacannon_nr30_veh"};
rocketLauncher[] = {"CUP_Vmlauncher_S5_veh"};
missileLauncher[] = {"weapon_AGM_KH25Launcher"};
};

class cwr3_o_mig27 : baseCAS {
loadout[] = {"CUP_PylonPod_1Rnd_Kh29_M","CUP_PylonPod_1Rnd_Kh29_M","CUP_PylonPod_32Rnd_S5_plane_M","CUP_PylonPod_32Rnd_S5_plane_M","CUP_PylonPod_1Rnd_Kh29_M"};
mainGun[] = {"cwr3_vacannon_gsh306"};
rocketLauncher[] = {"CUP_Vmlauncher_S5_veh"};
missileLauncher[] = {"CUP_Vmlauncher_Kh29L_veh"};
};

class cwr3_b_a10 : baseCAS {
loadout[] = {"CUP_PylonPod_1Rnd_AGM65_Maverick_M","CUP_PylonPod_1Rnd_AGM65_Maverick_M","CUP_PylonPod_3Rnd_AGM65_Maverick_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_3Rnd_AGM65_Maverick_M","CUP_PylonPod_1Rnd_AGM65_Maverick_M","CUP_PylonPod_1Rnd_AGM65_Maverick_M"};
mainGun[] = {"CUP_Vacannon_GAU8_veh"};
rocketLauncher[] = {"CUP_Vmlauncher_FFAR_veh"};
missileLauncher[] = {"CUP_Vmlauncher_AGM65pod_veh"};
};

class cwr3_b_f4e : baseCAS {
loadout[] = {"CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_3Rnd_AGM65_Maverick_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_3Rnd_AGM65_Maverick_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M","CUP_PylonPod_19Rnd_Rocket_FFAR_plane_M"};
mainGun[] = {"cwr3_vacannon_m61a1"};
rocketLauncher[] = {"CUP_Vmlauncher_FFAR_veh"};
missileLauncher[] = {"CUP_Vmlauncher_AGM65pod_veh"};
};
};
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"};
};
};
};
};
41 changes: 41 additions & 0 deletions A3A/addons/core/Templates/Templates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,4 +1458,45 @@ class Templates
shortName = "Civilian";
lore = $STR_A3A_templates_lore_SPE_IFA_CIV;
};
// ***************************** CWR *****************************

class CWR_Base
{
requiredAddons[] = {"cwr3_core"};
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";
lore = $STR_A3A_templates_lore_3CB_AI_CW_US;
};

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";
lore = $STR_A3A_templates_lore_3CB_AI_CW_Sov;
};

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";
lore = $STR_A3A_templates_lore_FIA;
};
};
Loading

0 comments on commit 343c1a3

Please sign in to comment.