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

SPEX Templates #3428

Merged
merged 3 commits into from
Nov 27, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
53 changes: 53 additions & 0 deletions A3A/addons/core/Templates/Templates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1458,6 +1458,59 @@ class Templates
shortName = "Civilian";
lore = $STR_A3A_templates_lore_SPE_IFA_CIV;
};

// ***************************** SPE with SPEX *****************************

class SPEX_Base
{
requiredAddons[] = {"ww2_spe_assets_c_characters_germans_c","WW2_SPEX_Assets_c_Characters_Americans_c"};
basepath = QPATHTOFOLDER(Templates\Templates\SPEX);
logo = QPATHTOFOLDER(Templates\Templates\SPEX\spe_logo.paa);
priority = 80;
equipFlags[] = {"lowTech"};
forceDLC[] = {"spe"};
};

class SPEX_US : SPEX_Base
{
side = "Inv";
flagTexture = QPATHTOFOLDER(Templates\Templates\SPEX\flag_us.paa);
name = "SPEX US";
file = "SPEX_AI_US";
shortName = "US";
lore = $STR_A3A_templates_lore_SPE_IFA_AI_US;
};

class SPEX_WEH : SPEX_Base
{
side = "Occ";
flagTexture = QPATHTOFOLDER(Templates\Templates\SPEX\flag_ger.paa);
name = "SPEX WEH";
file = "SPEX_AI_WEH";
shortName = "WEH";
lore = $STR_A3A_templates_lore_SPE_IFA_AI_WEH;
};

class SPEX_Reb : SPEX_Base
{
side = "Reb";
flagTexture = "\WW2\SPE_Core_t\Data_t\Flags\flag_FFF_co.paa";
name = "SPEX FFF";
file = "SPEX_Reb_FFF";
shortName = "FFF"; // Free French Forces
lore = $STR_A3A_templates_lore_SPE_IFA_Reb_FFF;
};

class SPEX_CIV : SPEX_Base
{
side = "Civ";
flagTexture = QPATHTOFOLDER(Templates\Templates\SPEX\flag_fr.paa);
name = "SPEX Civs";
file = "SPEX_CIV";
shortName = "Civilian";
lore = $STR_A3A_templates_lore_SPE_IFA_CIV;
};

// ***************************** CWR *****************************

class CWR_Base
Expand Down
878 changes: 878 additions & 0 deletions A3A/addons/core/Templates/Templates/SPEX/SPEX_AI_US.sqf

Large diffs are not rendered by default.

878 changes: 878 additions & 0 deletions A3A/addons/core/Templates/Templates/SPEX/SPEX_AI_WEH.sqf

Large diffs are not rendered by default.

164 changes: 164 additions & 0 deletions A3A/addons/core/Templates/Templates/SPEX/SPEX_CIV.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
//////////////////////////
// Vehicles //
//////////////////////////

["vehiclesCivCar", [
"SPE_GER_R200_Unarmed", 1,
"SPE_GER_R200_Hood", 2,
"SPE_US_G503_MB_Open", 1,
"SPE_US_G503_MB", 2
]] call _fnc_saveToTemplate;

["vehiclesCivIndustrial", [
"SPE_OpelBlitz_Open", 0.5,
"SPE_OpelBlitz", 0.5
]] call _fnc_saveToTemplate;

["vehiclesCivBoat", [
"B_Boat_Transport_01_F", 0.7
]] call _fnc_saveToTemplate;

["vehiclesCivRepair", [
]] call _fnc_saveToTemplate;

["vehiclesCivMedical", [
]] call _fnc_saveToTemplate;

["vehiclesCivFuel", [
]] call _fnc_saveToTemplate;

#include "SPE_Vehicle_Attributes.sqf"

/////////////////////
/// Identities ///
/////////////////////

["faces", ["LivonianHead_6","SPE_Connors","SPE_Ivanych","SPE_OBrien","SPE_Vasiliev","WhiteHead_02","WhiteHead_04","WhiteHead_05","WhiteHead_09","WhiteHead_11","WhiteHead_13","WhiteHead_20","WhiteHead_21"]] call _fnc_saveToTemplate;
"SPE_FrenchMen" call _fnc_saveNames;

//////////////////////////
// Loadouts //
//////////////////////////

private _civUniforms = [
"U_SPE_CIV_Citizen_1",
"U_SPE_CIV_Citizen_1_tie",
"U_SPE_CIV_Citizen_1_trop",
"U_SPE_CIV_Citizen_2",
"U_SPE_CIV_Citizen_2_tie",
"U_SPE_CIV_Citizen_2_trop",
"U_SPE_CIV_Citizen_3",
"U_SPE_CIV_Citizen_3_tie",
"U_SPE_CIV_Citizen_4",
"U_SPE_CIV_Citizen_4_tie",
"U_SPE_CIV_Citizen_4_trop",
"U_SPE_CIV_Citizen_5",
"U_SPE_CIV_Citizen_5_tie",
"U_SPE_CIV_Citizen_5_trop",
"U_SPE_CIV_Citizen_6",
"U_SPE_CIV_Citizen_6_tie",
"U_SPE_CIV_Citizen_6_trop",
"U_SPE_CIV_Citizen_7",
"U_SPE_CIV_Citizen_7_tie",
"U_SPE_CIV_Citizen_7_trop"
];

private _pressUniforms = [
"U_SPE_CIV_pak2_bruin",
"U_SPE_CIV_pak2_bruin_swetr",
"U_SPE_CIV_pak2_bruin_tie",
"U_SPE_CIV_pak2_grijs",
"U_SPE_CIV_pak2_grijs_swetr",
"U_SPE_CIV_pak2_grijs_tie",
"U_SPE_CIV_pak2_zwart",
"U_SPE_CIV_pak2_zwart_alt",
"U_SPE_CIV_pak2_zwart_swetr",
"U_SPE_CIV_pak2_zwart_tie",
"U_SPE_CIV_pak2_zwart_tie_alt"
]; //Uniforms given to Press/Journalists

private _workerUniforms = [
"U_SPE_CIV_Worker_1",
"U_SPE_CIV_Worker_1_tie",
"U_SPE_CIV_Worker_1_trop",
"U_SPE_CIV_Worker_2",
"U_SPE_CIV_Worker_2_tie",
"U_SPE_CIV_Worker_2_trop",
"U_SPE_CIV_Worker_3",
"U_SPE_CIV_Worker_3_tie",
"U_SPE_CIV_Worker_3_trop",
"U_SPE_CIV_Worker_4",
"U_SPE_CIV_Worker_4_tie",
"U_SPE_CIV_Worker_4_trop",
"U_SPE_CIV_Worker_Coverall_1",
"U_SPE_CIV_Worker_Coverall_1_trop",
"U_SPE_CIV_Worker_Coverall_2",
"U_SPE_CIV_Worker_Coverall_2_trop",
"U_SPE_CIV_Worker_Coverall_3",
"U_SPE_CIV_Worker_Coverall_3_trop"
]; //Uniforms given to Workers at Factories/Resources

["uniforms", _civUniforms + _pressUniforms + _workerUniforms] call _fnc_saveToTemplate; //Uniforms given to the Arsenal, Allowed for Undercover and given to Rebel Ai that go Undercover

_civHats = [
"H_SPE_CIV_Fedora_Cap_1",
"H_SPE_CIV_Fedora_Cap_2",
"H_SPE_CIV_Fedora_Cap_3",
"H_SPE_CIV_Fedora_Cap_5",
"H_SPE_CIV_Fedora_Cap_6",
"H_SPE_CIV_Worker_Cap_2",
"H_SPE_CIV_Worker_Cap_3"
];

["headgear", _civHats] call _fnc_saveToTemplate; //Headgear given to Normal Civs, Workers, Undercover Rebels.


private _loadoutData = call _fnc_createLoadoutData;

_loadoutData set ["uniforms", _civUniforms];
_loadoutData set ["pressUniforms", _pressUniforms];
_loadoutData set ["workerUniforms", _workerUniforms];
_loadoutData set ["helmets", _civHats];
_loadoutData set ["pressHelmets", ["H_SPE_CIV_Fedora_Cap_1","H_SPE_CIV_Fedora_Cap_2","H_SPE_CIV_Fedora_Cap_3","H_SPE_CIV_Fedora_Cap_4","H_SPE_CIV_Fedora_Cap_5"]];
_loadoutData set ["workerHelmets", ["","H_SPE_CIV_Worker_Cap_1","H_SPE_CIV_Worker_Cap_2","H_SPE_CIV_Worker_Cap_3"]];
_loadoutData set ["facewear", ["G_SPE_Cigarette_Belomorkanal","G_SPE_Cigarette_Grundstein","G_SPE_Dienst_Brille","G_SPE_Pipe_Sir_Winston"]];

_loadoutData set ["maps", ["ItemMap"]];

private _manTemplate = {
["helmets"] call _fnc_setHelmet;
["uniforms"] call _fnc_setUniform;
["facewear"] call _fnc_setFacewear;

["items_medical_standard"] call _fnc_addItemSet;

["maps"] call _fnc_addMap;
};
private _workerTemplate = {
["workerHelmets"] call _fnc_setHelmet;
["workerUniforms"] call _fnc_setUniform;
["facewear"] call _fnc_setFacewear;

["items_medical_standard"] call _fnc_addItemSet;

["maps"] call _fnc_addMap;
["watches"] call _fnc_addWatch;
["compasses"] call _fnc_addCompass;
};
private _pressTemplate = {
["pressHelmets"] call _fnc_setHelmet;
["pressUniforms"] call _fnc_setUniform;
["facewear"] call _fnc_setFacewear;

["items_medical_standard"] call _fnc_addItemSet;

["maps"] call _fnc_addMap;
};
private _prefix = "militia";
private _unitTypes = [
["Press", _pressTemplate],
["Worker", _workerTemplate],
["Man", _manTemplate]
];

[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate;
Loading