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

Templates - Unsung Templates #2201

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
3dd0831
Merge pull request #6 from official-antistasi-community/unstable
stutpip123 Nov 26, 2021
3844311
Add files via upload
stutpip123 Nov 27, 2021
3a64682
Update Unsung_AI_NVA_Tropical.sqf
stutpip123 Nov 27, 2021
9d67797
Update Unsung_AI_US_Tropical.sqf
stutpip123 Nov 27, 2021
59dcc1e
Update detector.sqf
stutpip123 Nov 27, 2021
3e9a7f7
Update selector.sqf
stutpip123 Nov 27, 2021
f1ca7a9
Update params.hpp
stutpip123 Nov 27, 2021
add7019
reduced number of CAS and AA planes
stutpip123 Nov 27, 2021
0e3c1e1
Update Unsung_AI_US_Tropical.sqf
stutpip123 Nov 28, 2021
2b36afa
Update Unsung_AI_NVA_Tropical.sqf
stutpip123 Nov 28, 2021
a4bedb1
Update Unsung_Logistics_Nodes.sqf
stutpip123 Nov 28, 2021
3a90bdc
Add Unsung AA Planes
stutpip123 Nov 28, 2021
3d59adb
Update params.hpp
stutpip123 Nov 28, 2021
d1e96dc
Update Unsung_AI_NVA_Tropical.sqf
stutpip123 Nov 28, 2021
f113f91
Update Unsung_AI_US_Tropical.sqf
stutpip123 Nov 28, 2021
071e5c4
Update Unsung_Reb_VC_Tropical.sqf
stutpip123 Nov 28, 2021
2903a2f
Update Unsung_Reb_VC_Tropical.sqf
stutpip123 Nov 28, 2021
7cddbf9
Update Unsung_AI_NVA_Tropical.sqf
stutpip123 Nov 28, 2021
03ed89f
Update Unsung_Logistics_Nodes.sqf
stutpip123 Nov 28, 2021
5238e44
Update Unsung_Logistics_Nodes.sqf
stutpip123 Nov 28, 2021
77d2150
Update selector.sqf
stutpip123 Nov 28, 2021
0ed9b39
Update Unsung_AI_US_Tropical.sqf
stutpip123 Nov 28, 2021
4e038b3
Update Unsung_AI_US_Tropical.sqf
stutpip123 Nov 28, 2021
46198d2
Merge pull request #7 from official-antistasi-community/unstable
stutpip123 Nov 29, 2021
400d25a
Update fn_equipmentIsValidForCurrentModset.sqf
stutpip123 Dec 11, 2021
fe66e83
Merge remote-tracking branch 'upstream/unstable' into Update-2201
Lazejun Mar 5, 2022
b0659ae
Update Templates.hpp
Lazejun Mar 9, 2022
17bc248
Renaming/Small changes to files to work
Lazejun Mar 9, 2022
40e63cf
Merge branch 'Update-2201' into Update-2201-🙄
Lazejun Mar 9, 2022
cb0d05e
Merge pull request #9 from official-antistasi-community/Update-2201-🙄
stutpip123 Mar 10, 2022
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
35 changes: 35 additions & 0 deletions A3A/addons/core/Templates/Templates.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -392,4 +392,39 @@ class Templates

Nodes[] = {"3CBBAF_Logistics_Nodes.sqf"};
};
class UNS
{
priorityOcc = 5;
priorityInv = 5;
priorityReb = 5;
priorityCiv = 5;

requiredAddons[] = {
"uns_weap_w"
};
path = QPATHTOFOLDER(Templates\Templates\UNS);

class AI
{
class NVA {};
class US {};
};
class Reb
{
class VC {};
};

class Civ {};

class worldDefaults
{
class Default {
Occ = "NVA";
Inv = "US";
Reb = "VC"
};
};

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

Large diffs are not rendered by default.

Large diffs are not rendered by default.

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

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

["vehiclesCivCar", [
"uns_willys", 1
,"uns_zil157", 0.3]] call _fnc_saveToTemplate;

["vehiclesCivIndustrial", [
"uns_zil157", 0.5]] call _fnc_saveToTemplate;

["vehiclesCivHeli", []] call _fnc_saveToTemplate;

["vehiclesCivBoat", [
"UNS_skiff2_C", 0.4
,"UNS_skiff_C", 0.4
,"UNS_skiff2_cargo_C", 0.5
,"UNS_skiff_cargo_C", 0.5
,"UNS_sampan_cargo", 0.6
,"UNS_sampan_fish1", 0.5
,"UNS_sampan_large", 0.3
,"UNS_sampan_supply", 0.4
,"UNS_Sampan_Transport", 0.2
,"UNS_sampan_village", 0.3]] call _fnc_saveToTemplate;

["vehiclesCivRepair", ["uns_zil157_repair", 0.3]] call _fnc_saveToTemplate;

["vehiclesCivMedical", []] call _fnc_saveToTemplate;

["vehiclesCivFuel", ["uns_Zil157_refuel", 0.2]] call _fnc_saveToTemplate;

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

private _civUniforms = [
"UNS_CIV_U",
"UNS_CIV_B"
];

private _pressUniforms = [
"U_Marshal"
];

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

private _civhats = [
"uns_H_Simc_nasi",
"UNS_Conehat_VC",
"UNS_Headband_BK",
"UNS_Boonie_VC",
"uns_sas_booniehat_vc_tan",
"UNS_Boonie3_VC"
];

["headgear", _civHats] call _fnc_saveToTemplate;

private _loadoutData = call _fnc_createLoadoutData;

_loadoutData set ["uniforms", _civUniforms];
_loadoutData set ["pressUniforms", _pressUniforms];
_loadoutData set ["workerHelmets", ["vn_c_conehat_02"]];
_loadoutData set ["helmets", _civHats];

_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 = {
["workerHelmets"] 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 _pressTemplate = {
["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;
127 changes: 127 additions & 0 deletions A3A/addons/core/Templates/Templates/UNS/UNS_Logistics_Nodes.sqf
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
A3A_logistics_vehicleHardpoints append [
//Cars
["\uns_m274\uns_m274.p3d",[
[1, [0.13,-0.4,-0.71], [0,1,2]]
]],

//Small Trucks
["\uns_wheeled_w\m37b\uns_m37b1.p3d",[
[1, [0,-1.25,-0.82], [1,2,6]],
[1, [0,-2.05,-0.82], [3,4,5]]
]],

//Trucks
["uns_m35\uns_M35A2",[
[1, [0,-0.4,-0.5], [3,4]],
[1, [0,-1.2,-0.5], [5,6,7,8]],
[1, [0,-2,-0.5], [9,10]],
[1, [0,-2.8,-0.5], [1,2]]
]],

["\uns_wheeled_e\ural\uns_ural.p3d",[
[1, [0,-0.6,0.1], [2,3]],
[1, [0,-1.4,0.1], [4,5,6,7]],
[1, [0,-2.2,0.1], [8,9]],
[1, [0,-3,0.1], [10,11]]
]],

["uns_wheeled_e\zil157\uns_zil157.p3d",[
[1, [0,0.3,1.4], [2,11,12]],
[1, [0,-0.5,1.4], [1,3,4]],
[1, [0,-1.3,1.4], [5,6]],
[1, [0,-2.1,1.4], [7,8]]
]],

//Boats
["uns_boats\skiff\uns_skiff_1",[
[1, [0,0.6,-0.675], [0,1]]
]],

["\UNS_sampan\UNS_sampan_fish1.P3D",[
[1, [0.15,3.6,-0.445], []],
[1, [0.15,2.8,-0.445], []],
[1, [0.15,2,-0.445], []],
[1, [0.15,1.2,-0.445], [1]],
[1, [0.15,0.4,-0.445], []],
[1, [0.15,-0.4,-0.445], []]
]],

["\UNS_sampan\UNS_sampan_Transport.P3D",[
[1, [0,3.35,-0.7], [0]],
[1, [0,2.55,-0.7], []],
[1, [0,1.75,-0.7], [5]],
[1, [0,0.95,-0.7], []],
[1, [0,0.15,-0.7], []]
]],

["\UNS_sampan\UNS_sampan_large.P3D",[
[1, [0,2.3,-1.2], []],
[1, [0,1.5,-1.2], []],
[1, [0,0.7,-1.2], []],
[1, [0,-0.1,-1.2], []]
]],

//Helicopters
["\uns_ch47a\uns_ch47a.p3d",[
[1, [0.01,3.6,-2.71], []],
[1, [0.01,2.8,-2.71], []],
[1, [0.01,2,-2.71], []],
[1, [0.01,1.2,-2.71], []],
[1, [0.01,0.4,-2.71], []],
[1, [0.01,-0.4,-2.71], []],
[1, [0.01,-1.2,-2.71], []],
[1, [0.01,-2,-2.71], []],
[1, [0.01,-2.8,-2.71], []],
[1, [0.01,-3.6,-2.71], []]
]],

["\uns_mi8\uns_Mi8_MT",[
[1, [0.01,3.6,-2.29], []],
[1, [0.01,2.8,-2.29], []],
[1, [0.01,2,-2.29], []],
[1, [0.01,1.2,-2.29], []],
[1, [0.01,0.4,-2.29], []]
]],

["\uns_mi8\uns_Mi8_MTV",[
[1, [0.01,3.6,-2.29], []],
[1, [0.01,2.8,-2.29], []],
[1, [0.01,2,-2.29], []],
[1, [0.01,1.2,-2.29], []],
[1, [0.01,0.4,-2.29], []]
]]
];

//Offsets for adding new statics/boxes to the JNL script.
A3A_logistics_attachmentOffset append [
//weapons //location //rotation //size //recoil //description
["uns_dshk_high_VC" call A3A_fnc_classNameToModel, [0.25, -0.5, 1.64], [0, 1, 0], 4, 100],
["uns_m2_high" call A3A_fnc_classNameToModel, [0.04, 0.13, 0], [0, 1, 0], 4, 100],
["uns_pk_high_VC" call A3A_fnc_classNameToModel, [0.04, 0, 0], [0, 1, 0], 4, 100],
["uns_m1941_82mm_mortarVC" call A3A_fnc_classNameToModel, [0,-0.52,0.74], [0, 1, 0], 3, 2000],
["uns_M1_81mm_mortar" call A3A_fnc_classNameToModel, [0.02,-0.39,0.70], [0, 1, 0], 3, 2000],
["uns_M2_60mm_mortar" call A3A_fnc_classNameToModel, [-0.02,-0.39.74], [0, 1, 0], 3, 1500],
["uns_M30_107mm_mortar" call A3A_fnc_classNameToModel, [0.02,-0.6,1.05], [0, 1, 0], 3, 3000]
];

//all vehicles with jnl loading nodes where the nodes are not located in the open, this can be because its inside the vehicle or it has a cover over the loading plane.
A3A_logistics_coveredVehicles append [
"uns_Mi8T_VPAF" call A3A_fnc_classNameToModel
, "uns_Mi8TV_VPAF_MG" call A3A_fnc_classNameToModel
, "uns_M35A2"
, "uns_nvatruck"
, "UNS_sampan_large" call A3A_fnc_classNameToModel
, "UNS_Sampan_Transport" call A3A_fnc_classNameToModel
, "uns_ch47_m60_army" call A3A_fnc_classNameToModel
];

//if you want a weapon to be loadable you need to add it to this as a array of [model, [blacklist specific vehicles]],
//if the vehicle is in the coveredVehicles array dont add it to the blacklist in this array.
A3A_logistics_weapons append [
["uns_pk_high_VC" call A3A_fnc_classNameToModel,["uns_M35A2", "uns_nvatruck"]],
["uns_dshk_high_VC" call A3A_fnc_classNameToModel,["uns_M35A2", "uns_nvatruck"]],
["uns_m1941_82mm_mortarVC" call A3A_fnc_classNameToModel,["uns_M35A2", "uns_nvatruck", "B_Boat_Transport_01_F" call A3A_fnc_classNameToModel, "UNS_sampan_fish1" call A3A_fnc_classNameToModel]],
["uns_m2_high" call A3A_fnc_classNameToModel,["uns_M35A2", "uns_nvatruck"]],
["uns_M2_60mm_mortar" call A3A_fnc_classNameToModel,["uns_M35A2", "uns_nvatruck", "B_Boat_Transport_01_F" call A3A_fnc_classNameToModel, "UNS_sampan_fish1" call A3A_fnc_classNameToModel]],
["uns_m1941_82mm_mortarNVA" call A3A_fnc_classNameToModel,["uns_M35A2", "uns_nvatruck", "B_Boat_Transport_01_F" call A3A_fnc_classNameToModel, "UNS_sampan_fish1" call A3A_fnc_classNameToModel]]
];
Loading