Skip to content

Commit

Permalink
Basic AegisAtlas Templates Ported
Browse files Browse the repository at this point in the history
BUG: Rebel factions broken
  • Loading branch information
RetardedFoX committed Apr 11, 2022
1 parent 25962d0 commit a7b05c9
Show file tree
Hide file tree
Showing 14 changed files with 7,623 additions and 3 deletions.
104 changes: 102 additions & 2 deletions A3A/addons/core/Templates/Templates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class Templates
};

class Reb {};


class Civ {};

Expand Down Expand Up @@ -472,4 +472,104 @@ class Templates

Nodes[] = {"CUP_Logistics_Nodes.sqf"};
};
};

class AegisAtlas
{
priorityOcc = 7; //highest is favored when auto picking
priorityInv = 7; //highest is favored when auto picking
priorityReb = 7; //highest is favored when auto picking
priorityCiv = 7; //highest is favored when auto picking

requiredAddons[] = {"A3_Aegis_BaseConfig_F_Aegis", "A3_Atlas_BaseConfig_F_Atlas"}; //the cfgPatches class of the mod these templates are depending on
path = QPATHTOFOLDER(Templates\Templates\AegisAtlas); //the path to the template folder

//Type class: AI, Reb, Civ
class AI
{
/*
//optional file overwrite set the `file` attribute here, whitout file extension, overwrites path aswell (ignored in this scope when factions calsses are defined)
// note if `file` is set it becomes the following: {file}.sqf
//for multiple templates per modset add the classes of faction names in the type class
class CSAT
{ //template file name would follow: {path}\{Modset}_{Type}_{Faction}.sqf
//optional file overwrite set the `file` attribute here, whitout file extension
// note if `file` is set it becomes the following: {file}.sqf
// camo determined by climate. climates: arid, tropical, temperate, arctic
class camo
{ //template file name would follow: {path}\{Modset}_{Type}_{Faction}_{camo}.sqf
// note if `file` is set it becomes the following: {file}_{camo}.sqf
tropical = "Tropical";
temperate = "Enoch";
Default = "Arid"; //default is the fallback if the climate is not in this class
};
};
*/

class Iran {};

class China {};

class Russia {};

class LDF {};

class US
{
class camo
{
arid = "Arid"
tropical = "Tropical";
Default = "Temperate";
};
};

class AAF {};

};

class Reb
{
class FIA {};

class SDK {};
};

class Civ {}; //leave empty for a single template for this modset, file name would follow: {path}\{Modset}_{Type}.sqf

//default template selection, classes within are worldname with side properties with faction name assigned to it (or empty when only one available)
class worldDefaults
{
class Default
{
Occ = "US";
Inv = "Iran";
Reb = "FIA";
//Civ left out because we use only one available as there are not multiple civ factions
};

class altis: Default
{
Occ = "AAF";
};

class tanoa: Default
{
Occ = "China";
Inv = "US";
Reb = "SDK";
};

class enoch: Default
{
Occ = "LDF";
Inv = "Russia";
};
};

//temporary soulution to load logistics nodes (pending logistics data convertion to class based) add full filename
Nodes[] = {"AegisAtlas_Logistics_Nodes.sqf"};
};

};
841 changes: 841 additions & 0 deletions A3A/addons/core/Templates/Templates/AegisAtlas/AegisAtlas_AI_AAF.sqf

Large diffs are not rendered by default.

841 changes: 841 additions & 0 deletions A3A/addons/core/Templates/Templates/AegisAtlas/AegisAtlas_AI_China.sqf

Large diffs are not rendered by default.

856 changes: 856 additions & 0 deletions A3A/addons/core/Templates/Templates/AegisAtlas/AegisAtlas_AI_Iran.sqf

Large diffs are not rendered by default.

827 changes: 827 additions & 0 deletions A3A/addons/core/Templates/Templates/AegisAtlas/AegisAtlas_AI_LDF.sqf

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

210 changes: 210 additions & 0 deletions A3A/addons/core/Templates/Templates/AegisAtlas/AegisAtlas_Civ.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
//////////////////////////////
// Civilian Information //
//////////////////////////////

//////////////////////////
// Vehicles //
//////////////////////////

["vehiclesCivCar", [
"C_Quadbike_01_F", 0.3
,"C_Hatchback_01_F", 2.0
,"C_Hatchback_01_sport_F", 0.3
,"C_Offroad_01_F", 2.0
,"C_SUV_01_F", 1.0
,"C_Van_02_vehicle_F", 1.0 // van from Orange
,"C_Van_02_transport_F", 0.2 // minibus
,"C_Offroad_02_unarmed_F", 0.5 // Apex 4WD
,"C_Offroad_01_comms_F", 0.1 // Contact
,"C_Offroad_01_covered_F", 0.1]] call _fnc_saveToTemplate;

["vehiclesCivIndustrial", [
"C_Van_01_transport_F", 1.0
,"C_Van_01_box_F", 0.8
,"C_Truck_02_transport_F", 0.5
,"C_Truck_02_covered_F", 0.5
,"C_Tractor_01_F", 0.3 ]] call _fnc_saveToTemplate;

["vehiclesCivHeli", []] call _fnc_saveToTemplate;

["vehiclesCivBoat", [
"C_Boat_Civil_01_rescue_F", 0.1 // motorboats
,"C_Boat_Civil_01_police_F", 0.1
,"C_Boat_Civil_01_F", 1.0
,"C_Rubberboat", 1.0 // rescue boat
,"C_Boat_Transport_02_F", 1.0 // RHIB
,"C_Scooter_Transport_01_F", 0.5
,"C_Boat_Civil_02_F", 1.0]] call _fnc_saveToTemplate; // Aegis boat

["vehiclesCivRepair", [
"C_Offroad_01_repair_F", 0.3
,"C_Van_02_service_F", 0.3 // orange
,"C_Truck_02_box_F", 0.1]] call _fnc_saveToTemplate;

["vehiclesCivMedical", ["C_Van_02_medevac_F", 0.1]] call _fnc_saveToTemplate;

["vehiclesCivFuel", [
"C_Van_01_fuel_F", 0.2
,"C_Truck_02_fuel_F", 0.1]] call _fnc_saveToTemplate;

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

private _civUniforms = [
"U_C_Man_casual_1_F",
"U_C_Man_casual_2_F",
"U_C_Man_casual_3_F",
"U_C_Man_casual_4_F",
"U_C_Man_casual_5_F",
"U_C_Man_casual_6_F",
"U_C_ArtTShirt_01_v1_F",
"U_C_ArtTShirt_01_v2_F",
"U_C_ArtTShirt_01_v3_F",
"U_C_ArtTShirt_01_v4_F",
"U_C_ArtTShirt_01_v5_F",
"U_C_ArtTShirt_01_v6_F",
"U_NikosBody",
"U_NikosAgedBody",
"U_C_Poloshirt_blue",
"U_C_Poloshirt_burgundy",
"U_C_Poloshirt_stripped",
"U_C_Poloshirt_tricolour",
"U_C_Poloshirt_salmon",
"U_C_Poloshirt_redwhite",
"U_OrestesBody",
"U_C_Poor_1",
"U_C_HunterBody_grn",
"U_I_L_Uniform_01_tshirt_skull_F",
"U_I_L_Uniform_01_tshirt_black_F",
"U_I_L_Uniform_01_tshirt_sport_F",
"U_C_Scientist",
"U_C_Uniform_Scientist_02_formal_F",
"U_C_Uniform_Scientist_02_F",
"U_C_Uniform_Scientist_01_F",
"U_C_Poor_2", //this and below be Aegis and Atlas
"Atlas_U_C_Uniform_01_tshirt_white_F",
"U_jayholder",
"U_C_Man_casual_7_F",
"U_C_Man_casual_8_F",
"U_C_Man_casual_9_F",
"U_C_PriestBody",
"U_C_Commoner1_1",
"U_C_Commoner1_2",
"U_C_Commoner1_3",
"U_C_Uniform_Formal_01_blue_F",
"U_C_Uniform_Formal_01_striped_F",
"U_C_Uniform_Formal_01_white_F"
];

private _pressUniforms = [
"U_C_Journalist",
"U_Marshal"
];

private _workerUniforms = [
"U_C_WorkerCoveralls",
"U_C_Uniform_Farmer_01_F"
];

private _dlcUniforms = [];

if (allowDLCExpansion) then {_dlcUniforms append [
"U_C_man_sport_1_F",
"U_C_man_sport_2_F",
"U_C_man_sport_3_F"];
};

if (allowDLCOrange) then {
_dlcUniforms append [
"U_C_Paramedic_01_F",
"U_C_Mechanic_01_F"
];
_workerUniforms append [
"U_C_ConstructionCoverall_Black_F",
"U_C_ConstructionCoverall_Blue_F",
"U_C_ConstructionCoverall_Red_F",
"U_C_ConstructionCoverall_Vrana_F"
];
};

["uniforms", _civUniforms + _pressUniforms + _workerUniforms + _dlcUniforms] call _fnc_saveToTemplate;

private _civhats = [
"H_Bandanna_blu",
"H_Bandanna_cbr",
"H_Bandanna_gry",
"H_Bandanna_khk",
"H_Bandanna_sand",
"H_Bandanna_sgg",
"H_Bandanna_surfer",
"H_Bandanna_surfer_blk",
"H_Bandanna_surfer_grn",
"H_Cap_blk",
"H_Cap_blu",
"H_Cap_grn",
"H_Cap_grn_BI",
"H_Cap_oli",
"H_Cap_red",
"H_Cap_surfer",
"H_Cap_tan",
"H_StrawHat",
"H_StrawHat_dark",
"H_Hat_checker"
];

["headgear", _civHats] call _fnc_saveToTemplate;

private _loadoutData = call _fnc_createLoadoutData;

_loadoutData set ["uniforms", _civUniforms];
_loadoutData set ["pressUniforms", _pressUniforms];
_loadoutData set ["workerUniforms", _workerUniforms];
_loadoutData set ["pressVests", ["V_Press_F"]];
_loadoutData set ["helmets", _civHats];
_loadoutData set ["pressHelmets", ["H_Cap_press"]];

_loadoutData set ["maps", ["ItemMap"]];
_loadoutData set ["watches", ["ItemWatch"]];
_loadoutData set ["compasses", ["ItemCompass"]];


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

["items_medical_standard"] call _fnc_addItemSet;

["maps"] call _fnc_addMap;
["watches"] call _fnc_addWatch;
["compasses"] call _fnc_addCompass;
};
private _workerTemplate = {
["helmets"] call _fnc_setHelmet;
["workerUniforms"] call _fnc_setUniform;

["items_medical_standard"] call _fnc_addItemSet;

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

["items_medical_standard"] call _fnc_addItemSet;

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

[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate;
Loading

0 comments on commit a7b05c9

Please sign in to comment.