From 384431153c9132e16e9a892d28ecfe0d8ed54a0f Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:03:24 +0000 Subject: [PATCH 01/25] Add files via upload --- .../Templates/Templates/UNSUNG/Unsung_Civ.sqf | 48 ++ .../UNSUNG/Unsung_Logistics_Nodes.sqf | 139 ++++ .../UNSUNG/Unsung_Reb_VC_Tropical.sqf | 604 ++++++++++++++++++ 3 files changed, 791 insertions(+) create mode 100644 A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Civ.sqf create mode 100644 A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf create mode 100644 A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Civ.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Civ.sqf new file mode 100644 index 0000000000..b18bc8f6e2 --- /dev/null +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Civ.sqf @@ -0,0 +1,48 @@ +////////////////////////// +// Loadout // +////////////////////////// + +["uniforms", [ + "UNS_CIV_U", + "UNS_CIV_B" +]] call _fnc_saveToTemplate; + +["headgear", [ + "uns_H_Simc_nasi", + "UNS_Conehat_VC", + "UNS_Headband_BK", + "UNS_Boonie_VC", + "uns_sas_booniehat_vc_tan", + "UNS_Boonie3_VC" +]] call _fnc_saveToTemplate; + +////////////////////////// +// 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; \ No newline at end of file diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf new file mode 100644 index 0000000000..be56cd4cd8 --- /dev/null +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf @@ -0,0 +1,139 @@ +//Each element is: [model name, [nodes]] +//Nodes are build like this: [Available(internal use, always 1), Hardpoint location, Seats locked when node is in use] +A3A_logistics_vehicleHardpoints = [ + + ["\uns_m274\uns_m274.p3d",[ + [1,[0.13,-0.4,-0.71],[0,1,2]] + ]], + + ["\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]] + ]], + + //Small Truck + ["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]] + ]], + + ["\A3\boat_f\Boat_Transport_01\Boat_Transport_01_F.p3d", [ + [1, [0,0.7575,-1.045], [0,1,2,3]], + [1, [0,-0.0725,-1.045], []] + ]], + + ["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],[]] + ]], + + ["\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 = [ + //weapons //location //rotation //size //recoil //description + ["uns_dshk_high_VC" call A3A_fnc_classNameToModel, [0.2, -1.2, 1.7], [0, 1, 0], 4, 100], //Static GMG High + ["uns_m2_high" call A3A_fnc_classNameToModel, [0, -1, 0], [0, 1, 0], 4, 100], //Static HMG High + ["uns_pk_high_VC" call A3A_fnc_classNameToModel, [0, -1, 0], [0, 0, 0], 4, 100], //Static HMG + ["uns_m1941_82mm_mortarVC" call A3A_fnc_classNameToModel, [-0.1,-1,0.74], [0, 1, 0], 3, 2000], //Mortar + ["uns_m1941_82mm_mortarNVA" call A3A_fnc_classNameToModel, [-0.1,-1,0.74], [0, 1, 0], 3, 2000], //Mortar + ["uns_M2_60mm_mortar" call A3A_fnc_classNameToModel, [-0.1,-1,0.74], [0, 1, 0], 3, 2000], //Mortar + + //medium sized crates + + //small sized crates //location //rotation //size //description + ["Box_NATO_Equip_F" call A3A_fnc_classNameToModel, [0,0,0.37], [1,0,0], 1], //Equipment box + ["\A3\weapons_F\AmmoBoxes\WpnsBox_F", [0,0,0.17], [0,1,0], 1] //surrender crates +]; + +//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 = [ + "uns_Mi8_VPAF_MG" call A3A_fnc_classNameToModel + , "uns_Mi8_VPAF" 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 = [ + //vanilla + ["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]], + ["B_Mortar_01_F" call A3A_fnc_classNameToModel,["C_Boat_Civil_01_F" call A3A_fnc_classNameToModel, "B_Boat_Transport_01_F" call A3A_fnc_classNameToModel, "C_Boat_Transport_02_F" call A3A_fnc_classNameToModel]], + ["B_HMG_02_F" call A3A_fnc_classNameToModel,[]] +]; diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf new file mode 100644 index 0000000000..79422f8977 --- /dev/null +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf @@ -0,0 +1,604 @@ +/////////////////////////// +// Rebel Information // +/////////////////////////// + +["name", "Viet Cong"] call _fnc_saveToTemplate; //this line determines the faction name -- Example: ["name", "NATO"] - ENTER ONLY ONE OPTION + +["flag", "uns_FlagCarrierVC"] call _fnc_saveToTemplate; //this line determines the flag -- Example: ["flag", "Flag_NATO_F"] - ENTER ONLY ONE OPTION +["flagTexture", "\uns_flags\flag_vc_co.paa"] call _fnc_saveToTemplate; //this line determines the flag texture -- Example: ["flagTexture", "\A3\Data_F\Flags\Flag_NATO_CO.paa"] - ENTER ONLY ONE OPTION +["flagMarkerType", "Faction_UNS_VC"] call _fnc_saveToTemplate; //this line determines the flag marker type -- Example: ["flagMarkerType", "flag_NATO"] - ENTER ONLY ONE OPTION + +["vehicleBasic", "uns_willys_2_usmc"] call _fnc_saveToTemplate; //this line determines basic vehicles, the lightest kind available. -- Example: ["vehiclesBasic", ["B_Quadbike_01_F"]] -- Array, can contain multiple assets +["vehicleLightUnarmed", "uns_Type55"] call _fnc_saveToTemplate; //this line determines light and unarmed vehicles. -- Example: ["vehiclesLightUnarmed", ["B_MRAP_01_F"]] -- Array, can contain multiple assets +["vehicleLightArmed", "uns_Type55_LMG"] call _fnc_saveToTemplate; //this line determines light and armed vehicles -- Example: ["vehiclesLightArmed",["B_MRAP_01_hmg_F","B_MRAP_01_gmg_F"]] -- Array, can contain multiple assets +["vehicleTruck", "uns_nvatruck_open"] call _fnc_saveToTemplate; //this line determines the trucks -- Example: ["vehiclesTrucks", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] -- Array, can contain multiple assets +["vehicleAT", "uns_Type55_RR57"] call _fnc_saveToTemplate; //this line determines AT vehicle -- Example: ["vehiclesCargoTrucks", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] -- Array, can contain multiple assets +["vehicleAA", "uns_nvatruck_zpu"] call _fnc_saveToTemplate; //this line determines AA vehicle -- Example: ["vehiclesCargoTrucks", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] -- Array, can contain multiple assets + +["vehicleBoat", "UNS_VC_Sampan_Transport"] call _fnc_saveToTemplate; //this line determines transport boats -- Example: ["vehiclesTransportBoats", ["B_Boat_Transport_01_F"]] -- Array, can contain multiple assets +["vehicleRepair", "uns_zil157_repair"] call _fnc_saveToTemplate; //this line determines gun boats -- Example: ["vehiclesGunboats", ["B_Boat_Armed_01_minigun_F"]] -- Array, can contain multiple assets + +["vehiclePlane", "uns_Mig21_CAS"] call _fnc_saveToTemplate; //this line determines CAS planes -- Example: ["vehiclesPlanesCAS", ["B_Plane_CAS_01_dynamicLoadout_F"]] -- Array, can contain multiple assets +["vehicleHeli", "uns_Mi8T_VPAF"] call _fnc_saveToTemplate; //this line determines light helis -- Example: ["vehiclesHelisLight", ["B_Heli_Light_01_F"]] -- Array, can contain multiple assets + +["vehicleCivCar", "uns_willys"] call _fnc_saveToTemplate; +["vehicleCivTruck", "uns_zil157"] call _fnc_saveToTemplate; +["vehicleCivHeli", "uns_skymaster_civ_blue"] call _fnc_saveToTemplate; +["vehicleCivBoat", "UNS_skiff2_C"] call _fnc_saveToTemplate; + +["staticMG", "uns_pk_high_VC"] call _fnc_saveToTemplate; //this line determines static MGs -- Example: ["staticMG", ["B_HMG_01_high_F"]] -- Array, can contain multiple assets +["staticAT", "uns_Type36_57mm_VC"] call _fnc_saveToTemplate; //this line determinesstatic ATs -- Example: ["staticAT", ["B_static_AT_F"]] -- Array, can contain multiple assets +["staticAA", "uns_ZPU2_VC"] call _fnc_saveToTemplate; //this line determines static AAs -- Example: ["staticAA", ["B_static_AA_F"]] -- Array, can contain multiple assets +["staticMortar", "uns_m1941_82mm_mortarVC"] call _fnc_saveToTemplate; //this line determines static mortars -- Example: ["staticMortar", ["B_Mortar_01_F"]] -- Array, can contain multiple assets +["staticMortarMagHE", "uns_8Rnd_82mmHE_M1941"] call _fnc_saveToTemplate; +["staticMortarMagSmoke", "uns_8Rnd_82mmSMOKE_M1941"] call _fnc_saveToTemplate; + +//Static weapon definitions +["baggedMGs", [["I_G_HMG_02_high_weapon_F","I_G_HMG_02_support_high_F"]]] call _fnc_saveToTemplate; +["baggedAT", [["I_AT_01_weapon_F","I_G_HMG_02_support_F"]]] call _fnc_saveToTemplate; +["baggedAA", [["I_AA_01_weapon_F","I_G_HMG_02_support_F"]]] call _fnc_saveToTemplate; +["baggedMortars", [["I_Mortar_01_weapon_F","I_Mortar_01_support_F"]]] call _fnc_saveToTemplate; + +["mineAT", "uns_mine_AT_mag"] call _fnc_saveToTemplate; //this line determines AT mines used for spawning in minefields -- Example: ["minefieldAT", ["ATMine_Range_Mag"]] -- Array, can contain multiple assets +["mineAPERS", "uns_mine_AP_mag"] call _fnc_saveToTemplate; //this line determines APERS mines used for spawning in minefields -- Example: ["minefieldAPERS", ["APERSMine_Range_Mag"]] -- Array, can contain multiple assets + +["breachingExplosivesAPC", [["uns_M118_mag_remote", 1],["DemoCharge_Remote_Mag", 1]]] call _fnc_saveToTemplate; +["breachingExplosivesTank", [["uns_M118_mag_remote", 2],["DemoCharge_Remote_Mag", 1]]] call _fnc_saveToTemplate; + +/////////////////////////// +// Rebel Starting Gear // +/////////////////////////// + +["uniforms", [ + "UNS_VC_U", + "UNS_VC_S", + "UNS_VC_K", + "UNS_VC_B", + "UNS_VC_G", + "uns_U_Simc_vc_black_1", + "uns_U_Simc_vc_black_1_trop", + "uns_U_Simc_vc_black_2", + "uns_U_Simc_vc_black_2_trop", + "uns_U_Simc_vc_blau_1_trop", + "uns_U_Simc_vc_blau_2", + "uns_U_Simc_vc_blau_2_trop", + "uns_U_Simc_vc_blau_1", + "uns_U_Simc_vc_grun_1", + "uns_U_Simc_vc_grun_1_trop", + "uns_U_Simc_vc_grun_2", + "uns_U_Simc_vc_grun_2_trop" +]] call _fnc_saveToTemplate; + +["headgear", [ + "UNS_Boonie_VC", + "UNS_Headband_VC", + "UNS_Conehat_VC", + "uns_vc_headband_blue", + "UNS_Boonie2_VC", + "UNS_Boonie3_VC", + "UNS_Boonie4_VC", + "uns_sas_booniehat_vc_tan", + "uns_sas_booniehat_vc", + "uns_H_Simc_nasi" +]] call _fnc_saveToTemplate; + +private _initialRebelEquipment = [ +"uns_baikal","uns_mosin","uns_kar98k","uns_mas36","uns_type99","uns_nagant_m1895", +"uns_12gaugemag_2","uns_mosinmag","uns_kar98kmag","uns_mas36mag","uns_type99mag","uns_nagant_m1895mag","uns_f1gren","uns_molotov_mag","uns_rdg2", +"uns_men_NVA_65_AS3_Bag","uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","UNS_VC_R1", +"uns_vc_chestrig","UNS_VC_A2", +"Binocular"]; + +if (A3A_hasTFAR) then {_initialRebelEquipment append ["tf_microdagr","uns_ItemRadio_PRC25_TFAR"]}; +if (A3A_hasTFAR && startWithLongRangeRadio) then {_initialRebelEquipment pushBack "UNS_USMC_RTO"}; +if (A3A_hasTFARBeta) then {_initialRebelEquipment append ["TFAR_microdagr","uns_ItemRadio_PRC25_TFAR"]}; +if (A3A_hasTFARBeta && startWithLongRangeRadio) then {_initialRebelEquipment pushBack "UNS_USMC_RTO"}; + +["initialRebelEquipment", _initialRebelEquipment] call _fnc_saveToTemplate; + +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +// DO NOT GO PAST THIS LINE + +//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +////////////////////////// +// Loadouts // +////////////////////////// +private _loadoutData = call _fnc_createLoadoutData; +_loadoutData setVariable ["rifles", []]; //this line determines rifles -- Example: ["arifle_MX_F","arifle_MX_pointer_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["carbines", []]; //this line determines carbines -- Example: ["arifle_MXC_F","arifle_MXC_Holo_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["grenadeLaunchers", []]; //this line determines grenade launchers -- Example: ["arifle_MX_GL_ACO_F","arifle_MX_GL_ACO_pointer_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["SMGs", []]; //this line determines SMGs -- Example: ["SMG_01_F","SMG_01_Holo_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["machineGuns", []]; //this line determines machine guns -- Example: ["arifle_MX_SW_F","arifle_MX_SW_Hamr_pointer_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["marksmanRifles", []]; //this line determines markman rifles -- Example: ["arifle_MXM_F","arifle_MXM_Hamr_pointer_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["sniperRifles", []]; //this line determines sniper rifles -- Example: ["srifle_LRR_camo_F","srifle_LRR_camo_SOS_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["lightATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["ATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["missileATLaunchers", []]; //this line determines missile AT launchers -- Example: ["launch_B_Titan_short_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["AALaunchers", []]; //this line determines AA launchers -- Example: ["launch_B_Titan_F"] -- Array, can contain multiple assets +_loadoutData setVariable ["sidearms", []]; //this line determines handguns/sidearms -- Example: ["hgun_Pistol_heavy_01_F", "hgun_P07_F"] -- Array, can contain multiple assets + +_loadoutData setVariable ["ATMines", []]; //this line determines the AT mines which can be carried by units -- Example: ["ATMine_Range_Mag"] -- Array, can contain multiple assets +_loadoutData setVariable ["APMines", []]; //this line determines the APERS mines which can be carried by units -- Example: ["APERSMine_Range_Mag"] -- Array, can contain multiple assets +_loadoutData setVariable ["lightExplosives", []]; //this line determines light explosives -- Example: ["DemoCharge_Remote_Mag"] -- Array, can contain multiple assets +_loadoutData setVariable ["heavyExplosives", []]; //this line determines heavy explosives -- Example: ["SatchelCharge_Remote_Mag"] -- Array, can contain multiple assets + +_loadoutData setVariable ["antiInfantryGrenades", []]; //this line determines anti infantry grenades (frag and such) -- Example: ["HandGrenade","MiniGrenade"] -- Array, can contain multiple assets +_loadoutData setVariable ["antiTankGrenades", []]; //this line determines anti tank grenades. Leave empty when not available. -- Array, can contain multiple assets +_loadoutData setVariable ["smokeGrenades", []]; //this line determines smoke grenades -- Example: ["SmokeShell", "SmokeShellRed"] -- Array, can contain multiple assets + + +//Basic equipment. Shouldn't need touching most of the time. +//Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) +_loadoutData setVariable ["maps", ["ItemMap"]]; +_loadoutData setVariable ["watches", ["ItemWatch"]]; +_loadoutData setVariable ["compasses", ["ItemCompass"]]; +_loadoutData setVariable ["radios", []]; +_loadoutData setVariable ["gpses", []]; +_loadoutData setVariable ["NVGs", []]; //this line determines NVGs -- Array, can contain multiple assets +_loadoutData setVariable ["binoculars", ["Binocular"]]; + +_loadoutData setVariable ["uniforms", [ + "UNS_VC_U", + "UNS_VC_S", + "UNS_VC_K", + "UNS_VC_B", + "UNS_VC_G", + "uns_U_Simc_vc_black_1", + "uns_U_Simc_vc_black_1_trop", + "uns_U_Simc_vc_black_2", + "uns_U_Simc_vc_black_2_trop", + "uns_U_Simc_vc_blau_1_trop", + "uns_U_Simc_vc_blau_2", + "uns_U_Simc_vc_blau_2_trop", + "uns_U_Simc_vc_blau_1", + "uns_U_Simc_vc_grun_1", + "uns_U_Simc_vc_grun_1_trop", + "uns_U_Simc_vc_grun_2", + "uns_U_Simc_vc_grun_2_trop"]]; +_loadoutData setVariable ["vests", []]; +_loadoutData setVariable ["backpacks", []]; +_loadoutData setVariable ["longRangeRadios", []]; +_loadoutData setVariable ["helmets", []]; + +//Item *set* definitions. These are added in their entirety to unit loadouts. No randomisation is applied. +_loadoutData setVariable ["items_medical_basic", ["BASIC"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData setVariable ["items_medical_standard", ["STANDARD"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData setVariable ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData setVariable ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; + +//Unit type specific item sets. Add or remove these, depending on the unit types in use. +_loadoutData setVariable ["items_squadleader_extras", []]; +_loadoutData setVariable ["items_rifleman_extras", []]; +_loadoutData setVariable ["items_medic_extras", []]; +_loadoutData setVariable ["items_grenadier_extras", []]; +_loadoutData setVariable ["items_explosivesExpert_extras", []]; +_loadoutData setVariable ["items_engineer_extras", ["Toolkit", "MineDetector"]]; +_loadoutData setVariable ["items_lat_extras", []]; +_loadoutData setVariable ["items_at_extras", []]; +_loadoutData setVariable ["items_aa_extras", []]; +_loadoutData setVariable ["items_machineGunner_extras", []]; +_loadoutData setVariable ["items_marksman_extras", []]; +_loadoutData setVariable ["items_sniper_extras", []]; +_loadoutData setVariable ["items_police_extras", []]; +_loadoutData setVariable ["items_crew_extras", []]; +_loadoutData setVariable ["items_unarmed_extras", []]; + +//////////////////////// +// Rebel Unit Types // +///////////////////////. + +private _squadLeaderTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + + ["backpacks"] call _fnc_setBackpack; + + [["grenadeLaunchers", "rifles"] call _fnc_fallback] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_squadLeader_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 2] call _fnc_addItem; + ["antiTankGrenades", 1] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["gpses"] call _fnc_addGPS; + ["binoculars"] call _fnc_addBinoculars; + ["NVGs"] call _fnc_addNVGs; +}; + +private _riflemanTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["rifles"] call _fnc_setPrimary; + ["primary", 8] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_rifleman_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 2] call _fnc_addItem; + ["antiTankGrenades", 1] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _medicTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["carbines"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_medic"] call _fnc_addItemSet; + ["items_medic_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 1] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _grenadierTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["grenadeLaunchers"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_grenadier_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 4] call _fnc_addItem; + ["antiTankGrenades", 3] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _explosivesExpertTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["rifles"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_grenadier_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + + ["lightExplosives", 2] call _fnc_addItem; + if (random 1 > 0.5) then {["heavyExplosives", 1] call _fnc_addItem;}; + if (random 1 > 0.5) then {["atMines", 1] call _fnc_addItem;}; + if (random 1 > 0.5) then {["apMines", 1] call _fnc_addItem;}; + + ["antiInfantryGrenades", 1] call _fnc_addItem; + ["smokeGrenades", 1] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _engineerTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["carbines"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_engineer_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + + if (random 1 > 0.5) then {["lightExplosives", 1] call _fnc_addItem;}; + + ["antiInfantryGrenades", 1] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _latTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["rifles"] call _fnc_setPrimary; + ["primary", 8] call _fnc_addMagazines; + + [["lightATLaunchers", "ATLaunchers"] call _fnc_fallback] call _fnc_setLauncher; + //TODO - Add a check if it's disposable. + ["launcher", 1] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_lat_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 1] call _fnc_addItem; + ["antiTankGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 1] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _atTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["rifles"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + [selectRandom ["ATLaunchers", "missileATLaunchers"]] call _fnc_setLauncher; + //TODO - Add a check if it's disposable. + ["launcher", 2] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_at_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 1] call _fnc_addItem; + ["antiTankGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 1] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _aaTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["rifles"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + ["AALaunchers"] call _fnc_setLauncher; + //TODO - Add a check if it's disposable. + ["launcher", 2] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_aa_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _machineGunnerTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["machineGuns"] call _fnc_setPrimary; + ["primary", 4] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_machineGunner_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _marksmanTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["marksmanRifles"] call _fnc_setPrimary; + ["primary", 8] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_marksman_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _sniperTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + ["sniperRifles"] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_sniper_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["antiInfantryGrenades", 2] call _fnc_addItem; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["NVGs"] call _fnc_addNVGs; +}; + +private _policeTemplate = { + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + ["backpacks"] call _fnc_setBackpack; + + [selectRandom ["smgs", "carbines"]] call _fnc_setPrimary; + ["primary", 5] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_police_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["smokeGrenades", 1] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; +}; + +private _crewTemplate = { + ["helmets"] call _fnc_setHelmet; + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + + ["smgs"] call _fnc_setPrimary; + ["primary", 3] call _fnc_addMagazines; + + ["sidearms"] call _fnc_setHandgun; + ["handgun", 2] call _fnc_addMagazines; + + ["items_medical_basic"] call _fnc_addItemSet; + ["items_crew_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + ["smokeGrenades", 2] call _fnc_addItem; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; + ["gpses"] call _fnc_addGPS; + ["NVGs"] call _fnc_addNVGs; +}; + +private _unarmedTemplate = { + ["vests"] call _fnc_setVest; + ["uniforms"] call _fnc_setUniform; + + ["items_medical_basic"] call _fnc_addItemSet; + ["items_unarmed_extras"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["radios"] call _fnc_addRadio; +}; + +private _prefix = "militia"; +private _unitTypes = [ + ["Petros", _squadLeaderTemplate], + ["SquadLeader", _squadLeaderTemplate], + ["Rifleman", _riflemanTemplate], + ["staticCrew", _riflemanTemplate], + ["Medic", _medicTemplate, [["medic", true]]], + ["Engineer", _engineerTemplate, [["engineer", true]]], + ["ExplosivesExpert", _explosivesExpertTemplate, [["explosiveSpecialist", true]]], + ["Grenadier", _grenadierTemplate], + ["LAT", _latTemplate], + ["AT", _atTemplate], + ["AA", _aaTemplate], + ["MachineGunner", _machineGunnerTemplate], + ["Marksman", _marksmanTemplate], + ["Sniper", _sniperTemplate], + ["Unarmed", _unarmedTemplate] +]; + +[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate; From 3a64682c392ebbd622aca10b917c7b6f314496b5 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:11:41 +0000 Subject: [PATCH 02/25] Update Unsung_AI_NVA_Tropical.sqf --- .../UNSUNG/Unsung_AI_NVA_Tropical.sqf | 316 +++++++++++------- 1 file changed, 204 insertions(+), 112 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf index 1eba3880c2..050a2e3163 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf @@ -2,12 +2,12 @@ // Side Information // ////////////////////////// -["name", ""] call _fnc_saveToTemplate; -["spawnMarkerName", ""] call _fnc_saveToTemplate; +["name", "NV Army"] call _fnc_saveToTemplate; +["spawnMarkerName", "NV Reinforcements"] call _fnc_saveToTemplate; -["flag", ""] call _fnc_saveToTemplate; -["flagTexture", ""] call _fnc_saveToTemplate; -["flagMarkerType", ""] call _fnc_saveToTemplate; +["flag", "uns_FlagCarrierNVA"] call _fnc_saveToTemplate; +["flagTexture", "\uns_flags\flag_pavn_co.paa"] call _fnc_saveToTemplate; +["flagMarkerType", "Faction_UNS_NVA"] call _fnc_saveToTemplate; ////////////////////////// // Vehicles // @@ -17,59 +17,61 @@ ["surrenderCrate", "Box_IND_Wps_F"] call _fnc_saveToTemplate; //Changeing this from default will require you to define logistics attachement offset for the box type ["equipmentBox", "Box_NATO_Equip_F"] call _fnc_saveToTemplate; //Changeing this from default will require you to define logistics attachement offset for the box type -["vehiclesBasic", []] call _fnc_saveToTemplate; -["vehiclesLightUnarmed", []] call _fnc_saveToTemplate; -["vehiclesLightArmed",[]] call _fnc_saveToTemplate; -["vehiclesTrucks", []] call _fnc_saveToTemplate; -["vehiclesCargoTrucks", []] call _fnc_saveToTemplate; -["vehiclesAmmoTrucks", []] call _fnc_saveToTemplate; -["vehiclesRepairTrucks", []] call _fnc_saveToTemplate; -["vehiclesFuelTrucks", []] call _fnc_saveToTemplate; -["vehiclesMedical", []] call _fnc_saveToTemplate; -["vehiclesAPCs", []] call _fnc_saveToTemplate; -["vehiclesTanks", []] call _fnc_saveToTemplate; -["vehiclesAA", []] call _fnc_saveToTemplate; +["vehiclesBasic", ["uns_willys"]] call _fnc_saveToTemplate; +["vehiclesLightUnarmed", ["uns_Type55"]] call _fnc_saveToTemplate; +["vehiclesLightArmed",["uns_Type55_LMG","uns_Type55_MG","uns_Type55_patrol","uns_Type55_twinMG","uns_Type55_RR57","uns_Type55_RR73","uns_Type55_M40","uns_nvatruck_mg"]] call _fnc_saveToTemplate; +["vehiclesTrucks", ["uns_nvatruck_open","uns_zil157","uns_nvatruck_camo","uns_nvatruck"]] call _fnc_saveToTemplate; +["vehiclesCargoTrucks", ["uns_nvatruck_open","uns_zil157"]] call _fnc_saveToTemplate; +["vehiclesAmmoTrucks", ["uns_nvatruck_reammo"]] call _fnc_saveToTemplate; +["vehiclesRepairTrucks", ["uns_nvatruck_repair","uns_zil157_repair"]] call _fnc_saveToTemplate; +["vehiclesFuelTrucks", ["uns_nvatruck_refuel","uns_Zil157_refuel"]] call _fnc_saveToTemplate; +["vehiclesMedical", ["uns_Type63_amb"]] call _fnc_saveToTemplate; +["vehiclesAPCs", ["uns_BTR152_DSHK","uns_Type63_mg","uns_pt76","uns_ot34_85_nva"]] call _fnc_saveToTemplate; +["vehiclesTanks", ["uns_t54_nva","uns_t55_nva","uns_to55_nva"]] call _fnc_saveToTemplate; +["vehiclesAA", ["uns_ZSU23_NVA","uns_ZSU57_NVA","uns_Type55_ZU","uns_nvatruck_zpu","uns_nvatruck_zu23","uns_nvatruck_s60"]] call _fnc_saveToTemplate; ["vehiclesLightAPCs", []] call _fnc_saveToTemplate; //this line determines light APCs ["vehiclesIFVs", []] call _fnc_saveToTemplate; //this line determines IFVs -["vehiclesTransportBoats", []] call _fnc_saveToTemplate; -["vehiclesGunBoats", []] call _fnc_saveToTemplate; -["vehiclesAmphibious", []] call _fnc_saveToTemplate; +["vehiclesTransportBoats", ["UNS_Zodiac_NVA"]] call _fnc_saveToTemplate; +["vehiclesGunBoats", ["UNS_PATROL_BOAT_NVA","UNS_ASSAULT_BOAT_NVA"]] call _fnc_saveToTemplate; +["vehiclesAmphibious", ["uns_Type63_mg","uns_pt76"]] call _fnc_saveToTemplate; -["vehiclesPlanesCAS", []] call _fnc_saveToTemplate; -["vehiclesPlanesAA", []] call _fnc_saveToTemplate; -["vehiclesPlanesTransport", []] call _fnc_saveToTemplate; +["vehiclesPlanesCAS", ["uns_an2_cas","uns_Mig21_CAS"]] call _fnc_saveToTemplate; +["vehiclesPlanesAA", ["uns_Mig21_CAP"]] call _fnc_saveToTemplate; +["vehiclesPlanesTransport", ["uns_an2_transport"]] call _fnc_saveToTemplate; -["vehiclesHelisLight", []] call _fnc_saveToTemplate; -["vehiclesHelisTransport", []] call _fnc_saveToTemplate; +["vehiclesHelisLight", ["uns_Mi8T_VPAF"]] call _fnc_saveToTemplate; +["vehiclesHelisTransport", ["uns_Mi8TV_VPAF_MG"]] call _fnc_saveToTemplate; ["vehiclesHelisAttack", []] call _fnc_saveToTemplate; -["vehiclesArtillery", []] call _fnc_saveToTemplate; -["magazines", createHashMapFromArray []] call _fnc_saveToTemplate; //element format: [Vehicle class, [Magazines]] +["vehiclesArtillery", ["uns_m110sp"]] call _fnc_saveToTemplate; +["magazines", createHashMapFromArray [ + ["uns_m110sp",["uns_30Rnd_203mmHE"]] +]] call _fnc_saveToTemplate; //element format: [Vehicle class, [Magazines]] -["uavsAttack", []] call _fnc_saveToTemplate; -["uavsPortable", []] call _fnc_saveToTemplate; +["uavsAttack", ["not_supported"]] call _fnc_saveToTemplate; +["uavsPortable", ["not_supported"]] call _fnc_saveToTemplate; //Config special vehicles -["vehiclesMilitiaLightArmed", []] call _fnc_saveToTemplate; -["vehiclesMilitiaTrucks", []] call _fnc_saveToTemplate; -["vehiclesMilitiaCars", []] call _fnc_saveToTemplate; +["vehiclesMilitiaLightArmed", ["uns_Type55_LMG"]] call _fnc_saveToTemplate; +["vehiclesMilitiaTrucks", ["uns_zil157"]] call _fnc_saveToTemplate; +["vehiclesMilitiaCars", ["uns_willys"]] call _fnc_saveToTemplate; -["vehiclesPolice", []] call _fnc_saveToTemplate; +["vehiclesPolice", ["uns_willys_2_usmp"]] call _fnc_saveToTemplate; -["staticMGs", []] call _fnc_saveToTemplate; -["staticAT", []] call _fnc_saveToTemplate; -["staticAA", []] call _fnc_saveToTemplate; -["staticMortars", []] call _fnc_saveToTemplate; +["staticMGs", ["uns_dshk_high_NVA"]] call _fnc_saveToTemplate; +["staticAT", ["uns_SPG9_73mm_NVA"]] call _fnc_saveToTemplate; +["staticAA", ["uns_ZPU4_NVA"]] call _fnc_saveToTemplate; +["staticMortars", ["uns_m1941_82mm_mortarNVA"]] call _fnc_saveToTemplate; -["mortarMagazineHE", ""] call _fnc_saveToTemplate; -["mortarMagazineSmoke", ""] call _fnc_saveToTemplate; +["mortarMagazineHE", "uns_8Rnd_82mmHE_M1941"] call _fnc_saveToTemplate; +["mortarMagazineSmoke", "uns_8Rnd_82mmSMOKE_M1941"] call _fnc_saveToTemplate; //Minefield definition //Not Magazine type would be: ["APERSBoundingMine", "APERSMine", "ATMine"] -["minefieldAT", []] call _fnc_saveToTemplate; -["minefieldAPERS", []] call _fnc_saveToTemplate; +["minefieldAT", ["uns_mine_t59"]] call _fnc_saveToTemplate; +["minefieldAPERS", ["uns_mine_md82"]] call _fnc_saveToTemplate; ////////////////////////// // Loadouts // @@ -83,37 +85,38 @@ _loadoutData set ["machineGuns", []]; _loadoutData set ["marksmanRifles", []]; _loadoutData set ["sniperRifles", []]; -_loadoutData set ["lightATLaunchers", []]; -_loadoutData set ["ATLaunchers", []]; -_loadoutData set ["missileATLaunchers", []]; -_loadoutData set ["AALaunchers", []]; +_loadoutData setVariable ["lightATLaunchers", [["uns_rpg2", "", "", "", ["uns_rpg2grenade"], [], ""], +["uns_B40", "", "", "", ["uns_B40grenade"], [], ""]]]; +_loadoutData setVariable ["ATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; +_loadoutData setVariable ["missileATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; +_loadoutData setVariable ["AALaunchers", [["uns_sa7b", "", "", "", ["uns_sa7bmag"], [], ""]]]; _loadoutData set ["sidearms", []]; -_loadoutData set ["ATMines", []]; -_loadoutData set ["APMines", []]; -_loadoutData set ["lightExplosives", []]; -_loadoutData set ["heavyExplosives", []]; +_loadoutData setVariable ["ATMines", ["uns_mine_AT_mag"]]; +_loadoutData setVariable ["APMines", ["uns_mine_AP_mag"]]; +_loadoutData setVariable ["lightExplosives", ["uns_M118_mag_remote"]]; +_loadoutData setVariable ["heavyExplosives", ["DemoCharge_Remote_Mag"]]; -_loadoutData set ["antiTankGrenades", []]; -_loadoutData set ["antiInfantryGrenades", []]; -_loadoutData set ["smokeGrenades", []]; +_loadoutData setVariable ["antiTankGrenades", ["uns_molotov_mag","uns_rkg3gren"]]; +_loadoutData setVariable ["antiInfantryGrenades", ["uns_f1gren","uns_rg42gren","uns_rgd33gren","uns_rgd5gren"]]; +_loadoutData setVariable ["smokeGrenades", ["uns_rdg2"]]; //Basic equipment. Shouldn't need touching most of the time. //Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) -_loadoutData set ["maps", ["ItemMap"]]; -_loadoutData set ["watches", ["ItemWatch"]]; -_loadoutData set ["compasses", ["ItemCompass"]]; -_loadoutData set ["radios", ["ItemRadio"]]; -_loadoutData set ["gpses", ["ItemGPS"]]; -_loadoutData set ["NVGs", ["NVGoggles_INDEP"]]; -_loadoutData set ["binoculars", ["Binocular"]]; -_loadoutData set ["Rangefinder", ["Rangefinder"]]; +_loadoutData setVariable ["maps", ["ItemMap"]]; +_loadoutData setVariable ["watches", ["ItemWatch"]]; +_loadoutData setVariable ["compasses", ["ItemCompass"]]; +_loadoutData setVariable ["radios", ["UNS_ItemRadio_T884_TFAR"]]; +_loadoutData setVariable ["gpses", [""]]; +_loadoutData setVariable ["NVGs", [""]]; +_loadoutData setVariable ["binoculars", ["Binocular"]]; +_loadoutData setVariable ["rangefinder", ["uns_ANPVS2"]]; _loadoutData set ["uniforms", []]; _loadoutData set ["vests", []]; _loadoutData set ["backpacks", []]; -_loadoutData set ["longRangeRadios", []]; +_loadoutData set ["longRangeRadios", ["UNS_NVA_RTO"]]; _loadoutData set ["helmets", []]; //Item *set* definitions. These are added in their entirety to unit loadouts. No randomisation is applied. @@ -146,40 +149,95 @@ _loadoutData set ["items_unarmed_extras", []]; /////////////////////////////////////// private _sfLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_sfLoadoutData set ["uniforms", []]; -_sfLoadoutData set ["vests", []]; -_sfLoadoutData set ["backpacks", []]; -_sfLoadoutData set ["helmets", []]; -_sfLoadoutData set ["binoculars", []]; +_sfLoadoutData setVariable ["uniforms", ["UNS_NVA_CC"]]; +_sfLoadoutData setVariable ["vests", ["uns_Simc_Barbelt","uns_Simc_Barbelt_M56","uns_Simc_Barbelt_M56_zusp"]]; +_sfLoadoutData setVariable ["backpacks", ["uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","uns_simc_ARVN_ruck_3"]]; +_sfLoadoutData setVariable ["helmets", ["UNS_NVA_SSH60","UNS_NVA_SSH40","UNS_Beret_AVAB","UNS_M1_1V1","UNS_M1_1V2","UNS_M1_1V1N"]]; +_sfLoadoutData setVariable ["binoculars", ["uns_ANPVS2"]]; //["Weapon", "Muzzle", "Rail", "Sight", [], [], "Bipod"]; -_sfLoadoutData set ["rifles", []]; -_sfLoadoutData set ["carbines", []]; -_sfLoadoutData set ["grenadeLaunchers", []]; -_sfLoadoutData set ["SMGs", []]; -_sfLoadoutData set ["machineGuns", []]; -_sfLoadoutData set ["marksmanRifles", []]; -_sfLoadoutData set ["sniperRifles", []]; -_sfLoadoutData set ["sidearms", []]; +_sfLoadoutData setVariable ["rifles", [["uns_sa58p", "", "", "", ["uns_sa58mag"], [], ""], + ["uns_sa58p", "", "", "", ["uns_sa58mag"], [], ""]]]; +_sfLoadoutData setVariable ["carbines", [["uns_sa58v", "", "", "", ["uns_sa58mag"], [], ""], + ["uns_sa58vf", "", "", "", ["uns_sa58mag"], [], ""]]]; +_sfLoadoutData setVariable ["grenadeLaunchers", [["uns_ex41", "", "", "", ["uns_ex41mag"], ["uns_1Rnd_Smoke_40mm"], ""]]]; +_sfLoadoutData setVariable ["SMGs", [["uns_type50", "", "", "", ["uns_ppshmag_NT"], [], ""], + ["uns_ppsh41", "", "", "", ["uns_ppshmag_NT"], [], ""], + ["uns_m2carbine_shorty", "", "", "", ["uns_m2carbinemag_NT"], [], ""]]]; +_sfLoadoutData setVariable ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ""], + ["uns_RPK_drum", "", "", "", ["uns_75Rnd_akdr"], [], ""], + ["uns_PK", "", "", "", ["uns_100Rnd_762x54_PK"], [], ""], + ["uns_RPK_40", "", "", "", ["uns_rpkmag"], [], ""]]]; +_sfLoadoutData setVariable ["marksmanRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; +_sfLoadoutData setVariable ["sniperRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; +_sfLoadoutData setVariable ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], + ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], + ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], + ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], + ["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], + ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""], + ["uns_pm63p", "", "", "", ["uns_25Rnd_pm_pa"], [], ""]]]; + ///////////////////////////////// // Military Loadout Data // ///////////////////////////////// private _militaryLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militaryLoadoutData set ["uniforms", []]; -_militaryLoadoutData set ["vests", []]; -_militaryLoadoutData set ["backpacks", []]; -_militaryLoadoutData set ["helmets", []]; -_militaryLoadoutData set ["binoculars", []]; - -_militaryLoadoutData set ["rifles", []]; -_militaryLoadoutData set ["carbines", []]; -_militaryLoadoutData set ["grenadeLaunchers", []]; -_militaryLoadoutData set ["SMGs", []]; -_militaryLoadoutData set ["machineGuns", []]; -_militaryLoadoutData set ["marksmanRifles", []]; -_militaryLoadoutData set ["sniperRifles", []]; -_militaryLoadoutData set ["sidearms", []]; +_militaryLoadoutData setVariable ["uniforms", ["UNS_NVA_GS","UNS_NVA_G","uns_U_Simc_nva_1","uns_U_Simc_nva_1_trop","uns_U_Simc_nva_2","uns_U_Simc_nva_2_trop"]]; +_militaryLoadoutData setVariable ["vests", ["uns_Simc_Barbelt","uns_Simc_Barbelt_M56","uns_Simc_Barbelt_M56_zusp"]]; +_militaryLoadoutData setVariable ["backpacks", ["uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","uns_simc_ARVN_ruck_3"]]; +_militaryLoadoutData setVariable ["helmets", ["UNS_NVA_SSH60","UNS_NVA_SSH40","uns_nva_m56","UNS_NVA_HGG","UNS_NVA_HG","UNS_PAVN_HG"]]; +_militaryLoadoutData setVariable ["binoculars", ["Binocular"]]; + +_militaryLoadoutData setVariable ["rifles", [["uns_type56", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_ak47", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_aks47", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akm", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akm_drum", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akms", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akms_drum", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akmsf", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akmsf_drum", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_ak47_52", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_ak47_49", "", "", "", ["uns_ak47mag"], [], ""]]]; +_militaryLoadoutData setVariable ["carbines", [["uns_sks", "", "", "", ["uns_sksmag"], [], ""], + ["uns_type56", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_ak47", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_aks47", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akm", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akms", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_akmsf", "", "", "", ["uns_ak47mag"], [], ""], + ["uns_sks", "", "", "", ["uns_sksmag_NT"], [], ""]]]; +_militaryLoadoutData setVariable ["grenadeLaunchers", [["uns_ex41", "", "", "", ["uns_ex41mag"], ["uns_1Rnd_Smoke_40mm"], ""], + ["uns_mas4956_gl", "", "", "", ["uns_mas4956mag"], ["Uns_1Rnd_22mm_AT","Uns_1Rnd_22mm_smoke","Uns_1Rnd_22mm_WP"], ""]]]; +_militaryLoadoutData setVariable ["SMGs", [["uns_sa61", "", "", "", ["uns_20Rnd_sa61"], [], ""], + ["uns_pm63", "", "", "", ["uns_25Rnd_pm"], [], ""], + ["uns_mat49", "", "", "", ["uns_mat49mag"], [], ""], + ["uns_mac10", "", "", "", ["uns_mac10mag"], [], ""], + ["uns_m50", "", "", "", ["uns_m50mag"], [], ""], + ["uns_m50f", "", "", "", ["uns_m50mag"], [], ""], + ["uns_f1_smg", "", "", "", ["uns_f1_smg_mag"], [], ""], + ["uns_type50", "", "", "", ["uns_ppshmag"], [], ""], + ["uns_uzi", "", "", "", ["uns_32Rnd_uzi"], [], ""], + ["uns_m45", "", "", "", ["uns_m45mag"], [], ""], + ["uns_m45f", "", "", "", ["uns_m45mag"], [], ""]]]; +_militaryLoadoutData setVariable ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ""], + ["uns_RPK_drum", "", "", "", ["uns_75Rnd_akdr"], [], ""], + ["uns_PK", "", "", "", ["uns_100Rnd_762x54_PK"], [], ""], + ["uns_RPK_40", "", "", "", ["uns_rpkmag"], [], ""]]]; +_militaryLoadoutData setVariable ["marksmanRifles", [["uns_svd_base", "", "", "uns_o_pso1", ["uns_svdmag_T"], [], ""], + ["uns_mas4956", "", "", "uns_o_apxsom", ["uns_mas4956mag"], [], ""]]]; +_militaryLoadoutData setVariable ["sniperRifles", [["uns_mosin", "", "", "uns_o_pu", ["uns_mosinmag_T"], [], ""], + ["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], + ["uns_type99", "", "", "uns_o_akatihi4x", ["uns_type99mag"], [], ""], + ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag"], [], ""]]]; +_militaryLoadoutData setVariable ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], + ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], + ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], + ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], + ["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], + ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""], + ["uns_pm63p", "", "", "", ["uns_25Rnd_pm_pa"], [], ""]]]; /////////////////////////////// // Police Loadout Data // @@ -187,44 +245,78 @@ _militaryLoadoutData set ["sidearms", []]; private _policeLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_policeLoadoutData set ["uniforms", []]; -_policeLoadoutData set ["vests", []]; -_policeLoadoutData set ["helmets", []]; - -_policeLoadoutData set ["SMGs", []]; -_policeLoadoutData set ["sidearms", []]; +_policeLoadoutData setVariable ["uniforms", ["UNS_NVA_KS"]]; +_policeLoadoutData setVariable ["vests", ["UNS_NVA_S2"]]; +_policeLoadoutData setVariable ["helmets", ["UNS_NVA_HK"]]; + +_policeLoadoutData setVariable ["smgs", [["uns_PPS43", "", "", "", ["uns_k50mag"], [], ""], + ["uns_PPS43f", "", "", "", ["uns_k50mag"], [], ""], + ["uns_ppsh41", "", "", "", ["uns_k50mag"], [], ""], + ["uns_mp40", "", "", "", ["uns_mp40mag"], [], ""], + ["uns_type100", "", "", "", ["uns_type100mag"], [], ""], + ["uns_sten", "", "", "", ["uns_stenmag"], [], ""], + ["uns_owen", "", "", "", ["uns_owenmag"], [], ""], + ["uns_PPS52", "", "", "", ["uns_k50mag"], [], ""]]]; +_policeLoadoutData setVariable ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], + ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""]]]; //////////////////////////////// // Militia Loadout Data // //////////////////////////////// private _militiaLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militiaLoadoutData set ["uniforms", []]; -_militiaLoadoutData set ["vests", []]; -_militiaLoadoutData set ["backpacks", []]; -_militiaLoadoutData set ["helmets", []]; - -_militiaLoadoutData set ["rifles", []]; -_militiaLoadoutData set ["carbines", []]; -_militiaLoadoutData set ["grenadeLaunchers", []]; -_militiaLoadoutData set ["SMGs", []]; -_militiaLoadoutData set ["machineGuns", []]; -_militiaLoadoutData set ["marksmanRifles", []]; -_militiaLoadoutData set ["sidearms", []]; +_militiaLoadoutData setVariable ["uniforms", ["UNS_NVA_K"]]; +_militiaLoadoutData setVariable ["vests", ["uns_Simc_garlan","uns_Simc_garlan_M56","uns_Simc_garlan_M56_zusp"]]; +_militiaLoadoutData setVariable ["backpacks", ["UNS_NVA_R1","UNS_NVA_RC","UNS_NVA_R3","UNS_NVA_MED"]]; +_militiaLoadoutData setVariable ["helmets", ["UNS_NVA_HK","UNS_NVA_HKG","UNS_PAVN_HN","UNS_PAVN_HC"]]; + +_militiaLoadoutData setVariable ["rifles", [["uns_type99", "", "", "", ["uns_type99mag"], [], ""], + ["uns_smle", "", "", "", ["uns_smlemag"], [], ""], + ["uns_m1903", "", "", "", ["uns_springfieldmag"], [], ""], + ["uns_mas36", "", "", "", ["uns_mas36mag"], [], ""], + ["uns_kar98k", "", "", "", ["uns_kar98kmag"], [], ""], + ["uns_mosin", "", "", "", ["uns_mosinmag"], [], ""]]]; +_militiaLoadoutData setVariable ["carbines", [["uns_sks", "", "", "", ["uns_sksmag"], [], ""], + ["uns_sks", "", "", "", ["uns_sksmag_NT"], [], ""], + ["uns_svt", "", "", "", ["uns_svtmag"], [], ""], + ["uns_STG_44", "", "", "", ["uns_30Rnd_kurtz_stg"], [], ""], + ["uns_mas36short", "", "", "", ["uns_mas36mag"], [], ""], + ["uns_mas4956", "", "", "", ["uns_mas4956mag"], [], ""]]]; +_militiaLoadoutData setVariable ["grenadeLaunchers", [["uns_type99_gl", "", "", "", ["uns_type99mag"], ["Uns_1Rnd_30mm_FRAG"], ""], + ["uns_mas36_gl", "", "", "", ["uns_mas36mag"], ["Uns_1Rnd_22mm_AT","Uns_1Rnd_22mm_smoke","Uns_1Rnd_22mm_WP"], ""], + ["uns_mas36short_gl", "", "", "", ["uns_mas36mag"], ["Uns_1Rnd_22mm_AT","Uns_1Rnd_22mm_smoke","Uns_1Rnd_22mm_WP"], ""]]]; +_militiaLoadoutData setVariable ["smgs", [["uns_PPS43", "", "", "", ["uns_k50mag"], [], ""], + ["uns_PPS43f", "", "", "", ["uns_k50mag"], [], ""], + ["uns_ppsh41", "", "", "", ["uns_k50mag"], [], ""], + ["uns_ppsh41", "", "", "", ["uns_ppshmag"], [], ""], + ["uns_mp40", "", "", "", ["uns_mp40mag"], [], ""], + ["uns_type100", "", "", "", ["uns_type100mag"], [], ""], + ["uns_sten", "", "", "", ["uns_stenmag"], [], ""], + ["uns_owen", "", "", "", ["uns_owenmag"], [], ""], + ["uns_PPS52", "", "", "", ["uns_k50mag"], [], ""]]]; +_militiaLoadoutData setVariable ["machineGuns", [["uns_MG42", "", "", "", ["uns_50Rnd_792x57_Mg42"], [], ""], + ["uns_mg42_bakelite", "", "", "", ["uns_50Rnd_792x57_Mg42"], [], ""], + ["uns_m1919a6", "", "", "", ["uns_100Rnd_m1919"], [], ""]]]; +_militiaLoadoutData setVariable ["marksmanRifles", [["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], + ["uns_type99", "", "", "uns_o_akatihi4x", ["uns_type99mag"], [], ""], + ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag"], [], ""]]]; +_militiaLoadoutData setVariable ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], + ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], + ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""]]]; ////////////////////////// // Misc Loadouts // ////////////////////////// private _crewLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_crewLoadoutData set ["uniforms", []]; -_crewLoadoutData set ["vests", []]; -_crewLoadoutData set ["helmets", []]; +_crewLoadoutData setVariable ["uniforms", ["UNS_NVA_G"]]; +_crewLoadoutData setVariable ["vests", ["UNS_NVA_S2"]]; +_crewLoadoutData setVariable ["helmets", ["UNS_NVA_CH","UNS_NVA_CHB","UNS_NVA_CHG","UNS_NVA_CHBG"]]; private _pilotLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_pilotLoadoutData set ["uniforms", []]; -_pilotLoadoutData set ["vests", []]; -_pilotLoadoutData set ["helmets", []]; +_pilotLoadoutData setVariable ["uniforms", ["UNS_NVA_CG","UNS_NVA_CK","UNS_NVA_CP"]]; +_pilotLoadoutData setVariable ["vests", ["uns_Simc_garlan_M56"]]; +_pilotLoadoutData setVariable ["helmets", ["UNS_NVA_PL","UNS_NVA_PLC"]]; ///////////////////////////////// From 9d67797dfca64bcbe8f98856da1fda909b1b2357 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:17:59 +0000 Subject: [PATCH 03/25] Update Unsung_AI_US_Tropical.sqf --- .../UNSUNG/Unsung_AI_US_Tropical.sqf | 250 ++++++++++-------- 1 file changed, 138 insertions(+), 112 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf index 1eba3880c2..809174101f 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf @@ -2,12 +2,12 @@ // Side Information // ////////////////////////// -["name", ""] call _fnc_saveToTemplate; -["spawnMarkerName", ""] call _fnc_saveToTemplate; +["name", "US Army"] call _fnc_saveToTemplate; +["spawnMarkerName", "US Reinforcements"] call _fnc_saveToTemplate; -["flag", ""] call _fnc_saveToTemplate; -["flagTexture", ""] call _fnc_saveToTemplate; -["flagMarkerType", ""] call _fnc_saveToTemplate; +["flag", "uns_FlagCarrierUS"] call _fnc_saveToTemplate; +["flagTexture", "a3\data_f\flags\flag_us_co.paa"] call _fnc_saveToTemplate; +["flagMarkerType", "Faction_UNS_USA"] call _fnc_saveToTemplate; ////////////////////////// // Vehicles // @@ -17,59 +17,61 @@ ["surrenderCrate", "Box_IND_Wps_F"] call _fnc_saveToTemplate; //Changeing this from default will require you to define logistics attachement offset for the box type ["equipmentBox", "Box_NATO_Equip_F"] call _fnc_saveToTemplate; //Changeing this from default will require you to define logistics attachement offset for the box type -["vehiclesBasic", []] call _fnc_saveToTemplate; -["vehiclesLightUnarmed", []] call _fnc_saveToTemplate; -["vehiclesLightArmed",[]] call _fnc_saveToTemplate; -["vehiclesTrucks", []] call _fnc_saveToTemplate; -["vehiclesCargoTrucks", []] call _fnc_saveToTemplate; -["vehiclesAmmoTrucks", []] call _fnc_saveToTemplate; -["vehiclesRepairTrucks", []] call _fnc_saveToTemplate; -["vehiclesFuelTrucks", []] call _fnc_saveToTemplate; -["vehiclesMedical", []] call _fnc_saveToTemplate; -["vehiclesAPCs", []] call _fnc_saveToTemplate; -["vehiclesTanks", []] call _fnc_saveToTemplate; -["vehiclesAA", []] call _fnc_saveToTemplate; +["vehiclesBasic", ["uns_willys_2_usmc"]] call _fnc_saveToTemplate; +["vehiclesLightUnarmed", ["uns_m37b1","uns_m274"]] call _fnc_saveToTemplate; +["vehiclesLightArmed",["uns_willysmg50","uns_willysmg","uns_willysm40","uns_m37b1_m1919","uns_m274_m40","uns_m274_m60"]] call _fnc_saveToTemplate; +["vehiclesTrucks", ["uns_M35A2_Open","uns_M35A2"]] call _fnc_saveToTemplate; +["vehiclesCargoTrucks", ["uns_M35A2_Open"]] call _fnc_saveToTemplate; +["vehiclesAmmoTrucks", ["uns_M35A2_ammo"]] call _fnc_saveToTemplate; +["vehiclesRepairTrucks", ["uns_M35A2_repair"]] call _fnc_saveToTemplate; +["vehiclesFuelTrucks", ["uns_M35A2_fueltanker","uns_M35A2_fuel"]] call _fnc_saveToTemplate; +["vehiclesMedical", ["uns_M577_amb"]] call _fnc_saveToTemplate; +["vehiclesAPCs", ["uns_xm706e2","uns_xm706e1","uns_M113_XM182","uns_M113_M60","uns_M113_M134","uns_M113A1_M2","uns_M113_30cal","uns_M113_transport"]] call _fnc_saveToTemplate; +["vehiclesTanks", ["uns_m48a3","uns_m551","uns_M67A"]] call _fnc_saveToTemplate; +["vehiclesAA", ["uns_m163"]] call _fnc_saveToTemplate; ["vehiclesLightAPCs", []] call _fnc_saveToTemplate; //this line determines light APCs ["vehiclesIFVs", []] call _fnc_saveToTemplate; //this line determines IFVs -["vehiclesTransportBoats", []] call _fnc_saveToTemplate; -["vehiclesGunBoats", []] call _fnc_saveToTemplate; -["vehiclesAmphibious", []] call _fnc_saveToTemplate; +["vehiclesTransportBoats", ["UNS_Zodiac_W"]] call _fnc_saveToTemplate; +["vehiclesGunBoats", ["uns_pbr_mk18","uns_pbr","uns_PBR_M10"]] call _fnc_saveToTemplate; +["vehiclesAmphibious", ["uns_M113_XM182","uns_M113_M60","uns_M113_M134","uns_M113A1_M2","uns_M113_30cal","uns_M113_transport","uns_M577_amb","uns_m163"]] call _fnc_saveToTemplate; -["vehiclesPlanesCAS", []] call _fnc_saveToTemplate; -["vehiclesPlanesAA", []] call _fnc_saveToTemplate; -["vehiclesPlanesTransport", []] call _fnc_saveToTemplate; +["vehiclesPlanesCAS", ["UNS_skymaster_CAS","UNS_F111_D_CAS","uns_ov10_usaf_CAS","uns_f105D_CAS","uns_f100b_CAS","uns_F4E_CAS","uns_A1J_CAS","uns_A7_CAS"]] call _fnc_saveToTemplate; +["vehiclesPlanesAA", ["uns_F4E_CAP","UNS_F111_D_CAP","uns_f105D_CAP","uns_f100b_CAP","uns_A7_CAP"]] call _fnc_saveToTemplate; +["vehiclesPlanesTransport", ["uns_c1a5cargo","uns_C130_H"]] call _fnc_saveToTemplate; -["vehiclesHelisLight", []] call _fnc_saveToTemplate; -["vehiclesHelisTransport", []] call _fnc_saveToTemplate; -["vehiclesHelisAttack", []] call _fnc_saveToTemplate; +["vehiclesHelisLight", ["uns_H13_transport_Army","uns_H13_gunship_Army","uns_oh6_transport","uns_oh6_m27"]] call _fnc_saveToTemplate; +["vehiclesHelisTransport", ["uns_UH1D_m60","uns_UH1D_m60_light","uns_UH1H_m60","uns_UH1H_m60_light","uns_h21c_mg","uns_ch47_m60_army"]] call _fnc_saveToTemplate; +["vehiclesHelisAttack", ["UNS_AH1G_SUU11","UNS_AH1G_M195","UNS_AH1G_M200","UNS_AH1G","uns_UH1C_M21_M200","uns_UH1C_M21_M158","UNS_UH1C_M3_ARA","UNS_UH1B_TOW","uns_UH1C_M6_M200_1AC"]] call _fnc_saveToTemplate; -["vehiclesArtillery", []] call _fnc_saveToTemplate; -["magazines", createHashMapFromArray []] call _fnc_saveToTemplate; //element format: [Vehicle class, [Magazines]] +["vehiclesArtillery", ["uns_m110sp"]] call _fnc_saveToTemplate; +["magazines", createHashMapFromArray [ + ["uns_m110sp",["uns_30Rnd_203mmHE"]] +]] call _fnc_saveToTemplate; //element format: [Vehicle class, [Magazines]] -["uavsAttack", []] call _fnc_saveToTemplate; -["uavsPortable", []] call _fnc_saveToTemplate; +["uavsAttack", ["not_supported"]] call _fnc_saveToTemplate; +["uavsPortable", ["not_supported"]] call _fnc_saveToTemplate; //Config special vehicles -["vehiclesMilitiaLightArmed", []] call _fnc_saveToTemplate; -["vehiclesMilitiaTrucks", []] call _fnc_saveToTemplate; -["vehiclesMilitiaCars", []] call _fnc_saveToTemplate; +["vehiclesMilitiaLightArmed", ["uns_m274_m60"]] call _fnc_saveToTemplate; +["vehiclesMilitiaTrucks", ["uns_m37b1"]] call _fnc_saveToTemplate; +["vehiclesMilitiaCars", ["uns_m274"]] call _fnc_saveToTemplate; -["vehiclesPolice", []] call _fnc_saveToTemplate; +["vehiclesPolice", ["uns_willys_2_usmp"]] call _fnc_saveToTemplate; -["staticMGs", []] call _fnc_saveToTemplate; -["staticAT", []] call _fnc_saveToTemplate; -["staticAA", []] call _fnc_saveToTemplate; -["staticMortars", []] call _fnc_saveToTemplate; +["staticMGs", ["uns_m2_high"]] call _fnc_saveToTemplate; +["staticAT", ["uns_M40_106mm_US"]] call _fnc_saveToTemplate; +["staticAA", ["Uns_M55_Quad"]] call _fnc_saveToTemplate; +["staticMortars", ["uns_M2_60mm_mortar"]] call _fnc_saveToTemplate; -["mortarMagazineHE", ""] call _fnc_saveToTemplate; -["mortarMagazineSmoke", ""] call _fnc_saveToTemplate; +["mortarMagazineHE", "uns_8Rnd_60mmHE_M2"] call _fnc_saveToTemplate; +["mortarMagazineSmoke", "uns_8Rnd_60mmSMOKE_M2"] call _fnc_saveToTemplate; //Minefield definition //Not Magazine type would be: ["APERSBoundingMine", "APERSMine", "ATMine"] -["minefieldAT", []] call _fnc_saveToTemplate; -["minefieldAPERS", []] call _fnc_saveToTemplate; +["minefieldAT", ["uns_mine_tm57"]] call _fnc_saveToTemplate; +["minefieldAPERS", ["uns_mine_m16"]] call _fnc_saveToTemplate; ////////////////////////// // Loadouts // @@ -83,32 +85,32 @@ _loadoutData set ["machineGuns", []]; _loadoutData set ["marksmanRifles", []]; _loadoutData set ["sniperRifles", []]; -_loadoutData set ["lightATLaunchers", []]; -_loadoutData set ["ATLaunchers", []]; -_loadoutData set ["missileATLaunchers", []]; -_loadoutData set ["AALaunchers", []]; -_loadoutData set ["sidearms", []]; +_loadoutData setVariable ["lightATLaunchers", [["uns_m72", "", "", "", ["uns_m72rocket"], [], ""]]]; +_loadoutData setVariable ["ATLaunchers", [["uns_m20_bazooka", "", "", "", ["uns_M28A2_mag"], [], ""]]]; +_loadoutData setVariable ["missileATLaunchers", [["uns_m20_bazooka", "", "", "", ["uns_M28A2_mag"], [], ""]]]; +_loadoutData setVariable ["AALaunchers", [["uns_sa7", "", "", "", ["uns_sa7mag"], [], ""]]]; +_loadoutData setVariable ["sidearms", []]; -_loadoutData set ["ATMines", []]; -_loadoutData set ["APMines", []]; -_loadoutData set ["lightExplosives", []]; -_loadoutData set ["heavyExplosives", []]; +_loadoutData setVariable ["ATMines", ["uns_mine_AV_mag"]]; +_loadoutData setVariable ["APMines", ["uns_traps_mine_mag"]]; +_loadoutData setVariable ["lightExplosives", ["uns_M118_mag_remote"]]; +_loadoutData setVariable ["heavyExplosives", ["DemoCharge_Remote_Mag"]]; -_loadoutData set ["antiTankGrenades", []]; -_loadoutData set ["antiInfantryGrenades", []]; -_loadoutData set ["smokeGrenades", []]; +_loadoutData setVariable ["antiTankGrenades", ["uns_m14gren", "uns_m34gren"]]; +_loadoutData setVariable ["antiInfantryGrenades", ["uns_m67gren", "uns_m61gren", "uns_mk2gren"]]; +_loadoutData setVariable ["smokeGrenades", ["uns_m18white"]]; //Basic equipment. Shouldn't need touching most of the time. //Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) -_loadoutData set ["maps", ["ItemMap"]]; -_loadoutData set ["watches", ["ItemWatch"]]; -_loadoutData set ["compasses", ["ItemCompass"]]; -_loadoutData set ["radios", ["ItemRadio"]]; -_loadoutData set ["gpses", ["ItemGPS"]]; -_loadoutData set ["NVGs", ["NVGoggles_INDEP"]]; -_loadoutData set ["binoculars", ["Binocular"]]; -_loadoutData set ["Rangefinder", ["Rangefinder"]]; +_loadoutData setVariable ["maps", ["ItemMap"]]; +_loadoutData setVariable ["watches", ["ItemWatch"]]; +_loadoutData setVariable ["compasses", ["ItemCompass"]]; +_loadoutData setVariable ["radios", ["UNS_ItemRadio_PRC_90_TFAR"]]; +_loadoutData setVariable ["gpses", []]; +_loadoutData setVariable ["NVGs", [""]]; +_loadoutData setVariable ["binoculars", ["uns_binocular_navy"]]; +_loadoutData setVariable ["rangefinder", ["uns_binocular_army"]]; _loadoutData set ["uniforms", []]; _loadoutData set ["vests", []]; @@ -146,40 +148,53 @@ _loadoutData set ["items_unarmed_extras", []]; /////////////////////////////////////// private _sfLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_sfLoadoutData set ["uniforms", []]; -_sfLoadoutData set ["vests", []]; -_sfLoadoutData set ["backpacks", []]; -_sfLoadoutData set ["helmets", []]; -_sfLoadoutData set ["binoculars", []]; +_sfLoadoutData setVariable ["uniforms", ["UNS_SAS_BDU_E"]]; +_sfLoadoutData setVariable ["vests", ["uns_sas_web_3","uns_sas_web_3_ugl","uns_sas_web_1","uns_sas_web_1_gl","uns_sas_web_2","uns_sas_web_2_gl"]]; +_sfLoadoutData setVariable ["backpacks", ["uns_sas_alicepack_1","uns_sas_alicepack_2","uns_sas_alicepack_3","uns_sas_alicepack_RTO"]]; +_sfLoadoutData setVariable ["helmets", ["uns_sas_bandana_erdl","uns_sas_booniehat_erdl","uns_sas_booniehat_erdl2","uns_sas_headband_erdl"]]; +_sfLoadoutData setVariable ["binoculars", ["uns_binocular_army"]]; //["Weapon", "Muzzle", "Rail", "Sight", [], [], "Bipod"]; -_sfLoadoutData set ["rifles", []]; -_sfLoadoutData set ["carbines", []]; -_sfLoadoutData set ["grenadeLaunchers", []]; -_sfLoadoutData set ["SMGs", []]; -_sfLoadoutData set ["machineGuns", []]; -_sfLoadoutData set ["marksmanRifles", []]; -_sfLoadoutData set ["sniperRifles", []]; -_sfLoadoutData set ["sidearms", []]; +_sfLoadoutData setVariable ["rifles", [["uns_l1a1", "", "", "", ["uns_l1a1mag"], [], ""], + ["uns_l2a1_shorty", "", "", "", ["uns_l1a1mag"], [], ""]]]; +_sfLoadoutData setVariable ["carbines", [["uns_m3carbine", "", "", "", ["uns_m2carbinemag"], [], ""], + ["uns_xm177e2_stock", "", "", "uns_o_colt4x", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; +_sfLoadoutData setVariable ["grenadeLaunchers", [["uns_l1a1gl", "", "", "", ["uns_l1a1mag"], ["Uns_1Rnd_HE_M381","uns_1Rnd_Smoke_40mm"], ""], + ["uns_m16_xm148_camo", "", "", "", ["uns_30Rnd_556x45_Stanag"], ["uns_m406vest","uns_1Rnd_Smoke_40mm"], ""]]]; +_sfLoadoutData setVariable ["SMGs", [["uns_SterlingSD", "", "", "", ["uns_mk4mag"], [], ""], + ["uns_Sterling", "", "", "", ["uns_mk4mag"], [], ""]]]; +_sfLoadoutData setVariable ["machineGuns", [["uns_m60", "", "", "", ["uns_m60mag"], [], ""], + ["uns_ukvz59", "", "", "", ["uns_100Rnd_762x54_ukvz59"], [], ""]]]; +_sfLoadoutData setVariable ["marksmanRifles", [["uns_m16_camo", "", "", "uns_o_leatherwoodart_m16", ["uns_20Rnd_556x45_Stanag"], [], ""], + ["uns_m14", "", "", "uns_o_leatherwoodart_m14", ["uns_m14mag"], [], ""]]]; +_sfLoadoutData setVariable ["sniperRifles", [["uns_smle_sniper", "", "", "", ["uns_smlemag"], [], ""]]]; +_sfLoadoutData setVariable ["sidearms", [["uns_MX991_m1911SD_base", "uns_s_m1911", "uns_ba30", "", ["uns_m1911mag"], [], ""], + ["uns_bhp", "", "", "", ["uns_13Rnd_hp"], [], ""]]]; + ///////////////////////////////// // Military Loadout Data // ///////////////////////////////// private _militaryLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militaryLoadoutData set ["uniforms", []]; -_militaryLoadoutData set ["vests", []]; -_militaryLoadoutData set ["backpacks", []]; -_militaryLoadoutData set ["helmets", []]; -_militaryLoadoutData set ["binoculars", []]; - -_militaryLoadoutData set ["rifles", []]; -_militaryLoadoutData set ["carbines", []]; -_militaryLoadoutData set ["grenadeLaunchers", []]; -_militaryLoadoutData set ["SMGs", []]; -_militaryLoadoutData set ["machineGuns", []]; -_militaryLoadoutData set ["marksmanRifles", []]; -_militaryLoadoutData set ["sniperRifles", []]; -_militaryLoadoutData set ["sidearms", []]; +_militaryLoadoutData setVariable ["uniforms", ["UNS_USMC_BDU_65"]]; +_militaryLoadoutData setVariable ["vests", ["uns_simc_flak_55","uns_simc_flak_55_M61_79_belt","uns_simc_flak_55_bandoleer","uns_Simc_flak_55_M61_med","uns_simc_flak_55_M61","uns_flak_55_M61_60_2","uns_simc_flak_55_mk2_belt_open","uns_simc_flak_55_mk2_bandoleer_belt"]]; +_militaryLoadoutData setVariable ["backpacks", ["UNS_Alice_F1","UNS_Alice_FR","uns_simc_MC_rajio_flak_1","UNS_USMC_MED","UNS_USMC_R1","uns_simc_MC_packboard_flak_3"]]; +_militaryLoadoutData setVariable ["helmets", ["UNS_M1_2","uns_simc_m1_bitch_op"]]; +_militaryLoadoutData setVariable ["binoculars", ["uns_binocular_army"]]; + +_militaryLoadoutData setVariable ["rifles", [["uns_M16A1", "", "", "", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; +_militaryLoadoutData setVariable ["carbines", [["uns_m2carbine", "", "", "", ["uns_m1carbinemag"], [], ""], + ["uns_xm177e2_stock", "", "", "", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; +_militaryLoadoutData setVariable ["grenadeLaunchers", [["uns_m16a1_m203", "", "", "", ["uns_20Rnd_556x45_Stanag"], ["Uns_1Rnd_HE_M381","uns_1Rnd_Smoke_40mm"], ""]]]; +_militaryLoadoutData setVariable ["SMGs", [["uns_thompson", "", "", "", ["uns_thompsonmag_30"], [], ""], + ["uns_m3a1", "", "", "", ["uns_m3a1mag"], [], ""]]]; +_militaryLoadoutData setVariable ["machineGuns", [["uns_m60", "", "", "", ["uns_m60mag"], [], ""], + ["uns_M63a_LMG", "", "", "", ["uns_m63abox"], [], ""]]]; +_militaryLoadoutData setVariable ["marksmanRifles", [["uns_m16_camo", "", "", "uns_o_leatherwoodart_m16", ["uns_20Rnd_556x45_Stanag"], [], ""], + ["uns_m14", "", "", "uns_o_leatherwoodart_m14", ["uns_m14mag"], [], ""]]]; +_militaryLoadoutData setVariable ["sniperRifles", [["uns_model70_iron", "", "", "uns_o_redfieldart_m70", ["uns_model70mag_T"], [], ""], + ["uns_M40_base", "", "", "uns_o_redfieldart", ["uns_m40mag_T"], [], ""]]]; +_militaryLoadoutData setVariable ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; /////////////////////////////// // Police Loadout Data // @@ -187,44 +202,55 @@ _militaryLoadoutData set ["sidearms", []]; private _policeLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_policeLoadoutData set ["uniforms", []]; -_policeLoadoutData set ["vests", []]; -_policeLoadoutData set ["helmets", []]; +_policeLoadoutData setVariable ["uniforms", ["UNS_ARMY_BDU_716thMPBnpv1"]]; +_policeLoadoutData setVariable ["vests", ["uns_simc_56_ligt"]]; +_policeLoadoutData setVariable ["helmets", ["UNS_M1_MP"]]; -_policeLoadoutData set ["SMGs", []]; -_policeLoadoutData set ["sidearms", []]; +_policeLoadoutData setVariable ["SMGs", [["uns_m870_mk1", "", "", "", ["uns_m870mag"], [], ""], + ["uns_m3a1", "", "", "", ["uns_m3a1mag"], [], ""]]]; +_policeLoadoutData setVariable ["sidearms", [ + ["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""] +]]; //////////////////////////////// // Militia Loadout Data // //////////////////////////////// private _militiaLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militiaLoadoutData set ["uniforms", []]; -_militiaLoadoutData set ["vests", []]; -_militiaLoadoutData set ["backpacks", []]; -_militiaLoadoutData set ["helmets", []]; - -_militiaLoadoutData set ["rifles", []]; -_militiaLoadoutData set ["carbines", []]; -_militiaLoadoutData set ["grenadeLaunchers", []]; -_militiaLoadoutData set ["SMGs", []]; -_militiaLoadoutData set ["machineGuns", []]; -_militiaLoadoutData set ["marksmanRifles", []]; -_militiaLoadoutData set ["sidearms", []]; +_militiaLoadoutData setVariable ["uniforms", ["UNS_ARMY_BDU_65"]]; +_militiaLoadoutData setVariable ["vests", ["uns_simc_56","uns_simc_56_bandoleer","uns_simc_56_frag","uns_simc_56_M43","uns_v_simc_67_ass","uns_v_simc_67_frag_ass","uns_v_simc_67_45","uns_Simc_56_med"]]; +_militiaLoadoutData setVariable ["backpacks", ["uns_simc_pack_trop_1_alt","uns_simc_pack_trop_4_alt","uns_simc_MC_packboard_flak_rajio_2","uns_simc_pack_med_m5_flak","uns_simc_packboard_MG_2","uns_simc_packboard_mortar_1"]]; +_militiaLoadoutData setVariable ["helmets", ["UNS_M1_1","uns_simc_m1_bitch_op"]]; + +_militiaLoadoutData setVariable ["rifles", [["uns_m16", "", "", "", ["uns_20Rnd_556x45_Stanag"], [], ""], + ["uns_m14", "", "", "", ["uns_m14mag"], [], ""]]]; +_militiaLoadoutData setVariable ["carbines", [["uns_m1carbine_pouch", "", "", "", ["uns_m1carbinemag"], [], ""], + ["uns_m1carbine", "", "", "", ["uns_m1carbinemag"], [], ""]]]; +_militiaLoadoutData setVariable ["grenadeLaunchers", [["uns_m79", "", "", "", ["Uns_1Rnd_HE_M381"], ["uns_1Rnd_Smoke_40mm"], ""], + ["uns_m1garand_gl", "", "", "", ["uns_m1garandmag"], ["Uns_1Rnd_22mm_M1a2_FRAG","Uns_1Rnd_22mm_HEAT"], ""]]]; +_militiaLoadoutData setVariable ["SMGs", [["uns_thompson", "", "", "", ["uns_thompsonmag_30"], [], ""], + ["uns_m3a1", "", "", "", ["uns_m3a1mag"], [], ""]]]; +_militiaLoadoutData setVariable ["machineGuns", [["uns_bar", "", "", "", ["uns_barmag"], [], ""], + ["uns_m1919a6", "", "", "", ["uns_100Rnd_m1919"], [], ""]]]; +_militiaLoadoutData setVariable ["marksmanRifles", [["uns_m1garand", "", "", "uns_o_m84", ["uns_m1garandmag"], [], ""], + ["uns_m1garand", "", "", "", ["uns_m1garandmag"], [], ""]]]; +_militiaLoadoutData setVariable ["sniperRifles", [["uns_m1903", "", "", "", ["uns_springfieldmag_T"], [], ""], + ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag_T"], [], ""]]]; +_militiaLoadoutData setVariable ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; ////////////////////////// // Misc Loadouts // ////////////////////////// private _crewLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_crewLoadoutData set ["uniforms", []]; -_crewLoadoutData set ["vests", []]; -_crewLoadoutData set ["helmets", []]; +_crewLoadoutData setVariable ["uniforms", ["UNS_ARMY_BDU_S","UNS_ARMY_BDU_F"]]; +_crewLoadoutData setVariable ["vests", ["uns_simc_56_45_ligt_zusp"]]; +_crewLoadoutData setVariable ["helmets", ["UNS_TC_1","UNS_TC_2"]]; private _pilotLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_pilotLoadoutData set ["uniforms", []]; -_pilotLoadoutData set ["vests", []]; -_pilotLoadoutData set ["helmets", []]; +_pilotLoadoutData setVariable ["uniforms", ["UNS_JPilot_BDU","UNS_Pilot_BDU"]]; +_pilotLoadoutData setVariable ["vests", ["UNS_JP_Vest"]]; +_pilotLoadoutData setVariable ["helmets", ["UNS_JP_Helmet_352TFS","UNS_JP_Helmet_366TFW","UNS_JP_Helmet_389TFS","UNS_HP_Helmet_R33","UNS_HP_Helmet_R8","UNS_HP_Helmet_USA"]]; ///////////////////////////////// From 59dcc1e8507806adb9f6498cd43e014424f6e4d5 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:19:13 +0000 Subject: [PATCH 04/25] Update detector.sqf --- A3-Antistasi/Templates/detector.sqf | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/A3-Antistasi/Templates/detector.sqf b/A3-Antistasi/Templates/detector.sqf index 3c5022beec..3472aac35e 100644 --- a/A3-Antistasi/Templates/detector.sqf +++ b/A3-Antistasi/Templates/detector.sqf @@ -23,6 +23,7 @@ A3A_hasADV = false; A3A_hasD3S = false; A3A_hasRDS = false; A3A_hasKAT = false; +A3A_hasUNS = false; //Actual Detection //IFA Detection @@ -34,6 +35,9 @@ if (isClass (configFile >> "CfgPatches" >> "LIB_Core")) then { ["modUnautorized",false,1,false,false] call BIS_fnc_endMission; }; +//Unsung Detection +if (isClass (configfile >> "CfgFactionClasses" >> "UNSUNG_W")) then {A3A_hasUNS = true; Info("Unsung Detected.") }; + //RHS Detection if (isClass (configFile >> "CfgFactionClasses" >> "rhs_faction_vdv") && isClass (configFile >> "CfgFactionClasses" >> "rhs_faction_usarmy") && isClass (configFile >> "CfgFactionClasses" >> "rhsgref_faction_tla")) then { A3A_hasRHS = true; @@ -75,5 +79,5 @@ if (isClass (configfile >> "CfgVehicles" >> "d3s_baumaschinen")) then {A3A_hasD3 if (isClass (configfile >> "CfgPatches" >> "rds_A2_Civilians")) then {A3A_hasRDS = true; Info("RDS Cars Detected.") }; //No Mods found logging -if (!A3A_hasRHS && !A3A_hasFFAA && !A3A_hasIFA && !A3A_has3CBBAF) then { Info("No Side Replacement Mods Detected.") }; +if (!A3A_hasRHS && !A3A_hasFFAA && !A3A_hasIFA && !A3A_has3CBBAF && !A3A_hasUNS) then { Info("No Side Replacement Mods Detected.") }; if (!A3A_hasIvory && !A3A_hasTCGM && !A3A_hasADV && !A3A_hasKAT) then { Info("No Addon Mods Detected.") }; From 3e9a7f7660618729c75a9aa692af42e00fc0f425 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:31:06 +0000 Subject: [PATCH 05/25] Update selector.sqf --- A3-Antistasi/Templates/selector.sqf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/A3-Antistasi/Templates/selector.sqf b/A3-Antistasi/Templates/selector.sqf index 74afcdf337..14b9ce74cf 100644 --- a/A3-Antistasi/Templates/selector.sqf +++ b/A3-Antistasi/Templates/selector.sqf @@ -54,6 +54,7 @@ private _autoPickAI = { default {"USAF"}; }; }; + case (A3A_hasUNS): {"NVA"}; case (A3A_hasVN): {"PAVN"}; default { switch(true) do { @@ -76,6 +77,7 @@ private _autoPickAI = { }; }; case (A3A_hasRHS): {"AFRF"}; + case (A3A_hasUNS): {"Viet US"}; case (A3A_hasVN): {"MACV"}; default {"CSAT"}; }; @@ -91,6 +93,7 @@ private _autoPickReb = { }; }; case (A3A_hasRHS): {"NAPA"}; + case (A3A_hasUNS): {"VC"}; case (A3A_hasVN): {"POF"}; default { switch(true) do { @@ -135,6 +138,8 @@ private _AIFactionEnums = [ , ["HIDF", A3A_has3CBFactions] , ["MACV", A3A_hasVN] , ["PAVN", A3A_hasVN] + , ["NVA", A3A_hasUNS] + , ["Viet US", A3A_hasUNS] ]; private _rebFactionEnums = [ [_autoPickReb, true] @@ -144,6 +149,7 @@ private _rebFactionEnums = [ , ["CNM", A3A_has3CBFactions] , ["TKM", A3A_has3CBFactions] , ["POF", A3A_hasVN] + , ["VC", A3A_hasUNS] ]; private _civFactionEnums = [ [_autoPickCiv, true] @@ -151,6 +157,7 @@ private _civFactionEnums = [ , ["RHS", A3A_hasRHS] , ["Factions", A3A_has3CBFactions] , ["VN", A3A_hasVN] + , ["UNS", A3A_hasUNS] ]; //======================| @@ -206,6 +213,10 @@ private _pickAITemplate = { }; }; + //UNS + case "NVA": { "Templates\Templates\UNSUNG\Unsung_AI_NVA_Tropical.sqf" }; + case "Viet US": { "Templates\Templates\UNSUNG\Unsung_AI_US_Tropical.sqf" }; + //VN case "PAVN": { "Templates\Templates\VN\VN_PAVN.sqf" }; case "MACV": { "Templates\Templates\VN\VN_MACV.sqf" }; @@ -248,6 +259,9 @@ private _pickRebTemplate = { }; }; + //UNS + case "VC": { "Templates\Templates\Unsung\Unsung_Reb_VC_Tropical.sqf" }; + //VN case "POF": { "Templates\Templates\VN\VN_Reb_POF.sqf" }; @@ -273,6 +287,7 @@ private _pickCIVTemplate = { }; }; case "RHS": { "Templates\Templates\RHS\RHS_Civ.sqf" }; + case "UNS": { "Templates\Templates\UNSUNG\Unsung_Civ.sqf" }; case "VN": { "Templates\Templates\VN\VN_CIV.sqf" }; case "Vanilla": { "Templates\Templates\Vanilla\Vanilla_Civ.sqf" }; }; @@ -386,6 +401,7 @@ if (A3A_hasRHS) then {call compile preProcessFileLineNumbers "Templates\Template if (A3A_has3CBFactions) then {call compile preProcessFileLineNumbers "Templates\Templates\3CB\3CBFactions_Logistics_Nodes.sqf"}; if (A3A_has3CBBAF) then {call compile preProcessFileLineNumbers "Templates\Templates\3CB\3CBBAF_Logistics_Nodes.sqf"}; if (A3A_hasVN) then {call compile preProcessFileLineNumbers "Templates\Templates\VN\VN_Logistics_Nodes.sqf"}; +if (A3A_hasUNS) then {call compile preProcessFileLineNumbers "Templates\Templates\UNS\Unsung_Logistics_Nodes.sqf"}; //if (A3A_hasIFA) then {call compile preProcessFileLineNumbers "Templates\IFA\IFA_Logistics_Nodes.sqf"}; //disabled until imtegrated //if (A3A_hasFFAA) then {call compile preProcessFileLineNumbers "Templates\FFAA\FFAA_Logistics_Nodes.sqf"}; //disabled until imtegrated From f1ca7a954bf21e478c3d0c714ddf416502a29857 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 11:36:26 +0000 Subject: [PATCH 06/25] Update params.hpp --- A3-Antistasi/MissionDescription/params.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/A3-Antistasi/MissionDescription/params.hpp b/A3-Antistasi/MissionDescription/params.hpp index 66a535a3cb..5c05ddebc4 100644 --- a/A3-Antistasi/MissionDescription/params.hpp +++ b/A3-Antistasi/MissionDescription/params.hpp @@ -238,37 +238,37 @@ class Params class RebelFactionEnum { title = "Rebel faction (Required content for faction in parentheses)"; - values[] = {9999, 1,2,3,4,5,6}; - texts[] = {"Default (Auto)", "FIA", "SDK", "NAPA (RHS)", "CNM (Factions)", "TKM (Factions)", "POF (SOG:PF)"}; + values[] = {9999, 1,2,3,4,5,6,7}; + texts[] = {"Default (Auto)", "FIA", "SDK", "NAPA (RHS)", "CNM (Factions)", "TKM (Factions)", "POF (SOG:PF)", "VC (UNS)"}; default = 9999; }; class OccupantsFactionEnum { title = "Occupants faction (Required content for faction in parentheses)"; - values[] = {9999, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; + values[] = {9999, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22}; texts[] = { "Default (Auto)", "NATO", "CSAT", "AAF", "LDF (Contact)", "USAF (RHS)", "AFRF (RHS)","CDF (RHS)" , "US Marines (RHS)", "BAF (BAF)", "Coldwar US (Factions)", "Coldwar Soviets (Factions)" - , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF)" + , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF), "NVA (UNS)", "Viet US (UNS)" }; default = 9999; }; class InvadersFactionEnum { title = "Invaders faction (Required content for faction in parentheses)"; - values[] = {9999, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20}; + values[] = {9999, 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22}; texts[] = { "Default (Auto)", "NATO", "CSAT", "AAF", "LDF (Contact)", "USAF (RHS)", "AFRF (RHS)","CDF (RHS)" , "US Marines (RHS)", "BAF (BAF)", "Coldwar US (Factions)", "Coldwar Soviets (Factions)" - , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF)" + , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF), "NVA (UNS)", "Viet US (UNS)" }; default = 9999; }; class CivFactionEnum { title = "Civilian faction (Required content for faction in parentheses)"; - values[] = {9999, 1,2,3,4}; - texts[] = {"Default (Auto)", "Vanilla", "RHS", "Factions", "VN"}; + values[] = {9999, 1,2,3,4,5}; + texts[] = {"Default (Auto)", "Vanilla", "RHS", "Factions", "VN", "UNS"}; default = 9999; }; class Spacer13 From add701971243d7dc879e09a7146dde5061cd8ceb Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 27 Nov 2021 15:44:56 +0000 Subject: [PATCH 07/25] reduced number of CAS and AA planes --- .../Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf index 809174101f..7836eead06 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf @@ -37,8 +37,8 @@ ["vehiclesGunBoats", ["uns_pbr_mk18","uns_pbr","uns_PBR_M10"]] call _fnc_saveToTemplate; ["vehiclesAmphibious", ["uns_M113_XM182","uns_M113_M60","uns_M113_M134","uns_M113A1_M2","uns_M113_30cal","uns_M113_transport","uns_M577_amb","uns_m163"]] call _fnc_saveToTemplate; -["vehiclesPlanesCAS", ["UNS_skymaster_CAS","UNS_F111_D_CAS","uns_ov10_usaf_CAS","uns_f105D_CAS","uns_f100b_CAS","uns_F4E_CAS","uns_A1J_CAS","uns_A7_CAS"]] call _fnc_saveToTemplate; -["vehiclesPlanesAA", ["uns_F4E_CAP","UNS_F111_D_CAP","uns_f105D_CAP","uns_f100b_CAP","uns_A7_CAP"]] call _fnc_saveToTemplate; +["vehiclesPlanesCAS", ["uns_A1J_CAS","uns_A7_CAS"]] call _fnc_saveToTemplate; +["vehiclesPlanesAA", ["uns_F4E_CAP","UNS_F111_D_CAP"]] call _fnc_saveToTemplate; ["vehiclesPlanesTransport", ["uns_c1a5cargo","uns_C130_H"]] call _fnc_saveToTemplate; ["vehiclesHelisLight", ["uns_H13_transport_Army","uns_H13_gunship_Army","uns_oh6_transport","uns_oh6_m27"]] call _fnc_saveToTemplate; From 0e3c1e12652601d59d2141ff213228e37edb46b3 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 11:33:17 +0000 Subject: [PATCH 08/25] Update Unsung_AI_US_Tropical.sqf --- .../Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf index 7836eead06..ee02896004 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf @@ -38,7 +38,7 @@ ["vehiclesAmphibious", ["uns_M113_XM182","uns_M113_M60","uns_M113_M134","uns_M113A1_M2","uns_M113_30cal","uns_M113_transport","uns_M577_amb","uns_m163"]] call _fnc_saveToTemplate; ["vehiclesPlanesCAS", ["uns_A1J_CAS","uns_A7_CAS"]] call _fnc_saveToTemplate; -["vehiclesPlanesAA", ["uns_F4E_CAP","UNS_F111_D_CAP"]] call _fnc_saveToTemplate; +["vehiclesPlanesAA", ["uns_F4E_CAP","uns_f100b_CAP"]] call _fnc_saveToTemplate; ["vehiclesPlanesTransport", ["uns_c1a5cargo","uns_C130_H"]] call _fnc_saveToTemplate; ["vehiclesHelisLight", ["uns_H13_transport_Army","uns_H13_gunship_Army","uns_oh6_transport","uns_oh6_m27"]] call _fnc_saveToTemplate; From 2b36afa5a16b66983d478189fd3188aa68b7a56e Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 11:48:12 +0000 Subject: [PATCH 09/25] Update Unsung_AI_NVA_Tropical.sqf --- .../Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf index 050a2e3163..56c615bb90 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf @@ -37,7 +37,7 @@ ["vehiclesGunBoats", ["UNS_PATROL_BOAT_NVA","UNS_ASSAULT_BOAT_NVA"]] call _fnc_saveToTemplate; ["vehiclesAmphibious", ["uns_Type63_mg","uns_pt76"]] call _fnc_saveToTemplate; -["vehiclesPlanesCAS", ["uns_an2_cas","uns_Mig21_CAS"]] call _fnc_saveToTemplate; +["vehiclesPlanesCAS", ["uns_Mig21_CAS"]] call _fnc_saveToTemplate; ["vehiclesPlanesAA", ["uns_Mig21_CAP"]] call _fnc_saveToTemplate; ["vehiclesPlanesTransport", ["uns_an2_transport"]] call _fnc_saveToTemplate; From a4bedb14078f15d3d2a8c7ec4988f1de674dd676 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 11:51:21 +0000 Subject: [PATCH 10/25] Update Unsung_Logistics_Nodes.sqf --- .../Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf index be56cd4cd8..f2a8a65943 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf @@ -133,7 +133,5 @@ A3A_logistics_weapons = [ ["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]], - ["B_Mortar_01_F" call A3A_fnc_classNameToModel,["C_Boat_Civil_01_F" call A3A_fnc_classNameToModel, "B_Boat_Transport_01_F" call A3A_fnc_classNameToModel, "C_Boat_Transport_02_F" call A3A_fnc_classNameToModel]], - ["B_HMG_02_F" 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]] ]; From 3a90bdc217589d677dba3af738cb78a981bd1ce5 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 12:04:01 +0000 Subject: [PATCH 11/25] Add Unsung AA Planes --- A3-Antistasi/functions/Base/fn_setPlaneLoadout.sqf | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/A3-Antistasi/functions/Base/fn_setPlaneLoadout.sqf b/A3-Antistasi/functions/Base/fn_setPlaneLoadout.sqf index 3312aa7bd2..d8ae5bb4e5 100644 --- a/A3-Antistasi/functions/Base/fn_setPlaneLoadout.sqf +++ b/A3-Antistasi/functions/Base/fn_setPlaneLoadout.sqf @@ -165,6 +165,19 @@ if (_type == "AA") then case "UK3CB_MDF_B_Mystere_AA1": { _loadout = ["PylonRack_1Rnd_Missile_AA_04_F","PylonRack_1Rnd_AAA_missiles","PylonRack_1Rnd_AAA_missiles","PylonRack_1Rnd_Missile_AA_04_F"]; + }; + //Unsung + case "uns_f100b_CAP": + { + _loadout = ["uns_pylonRack_1Rnd_AIM9D","uns_pylonRack_1Rnd_AIM9D","uns_pylonRack_1Rnd_fuel_f100","uns_pylonRack_1Rnd_fuel_f100","uns_pylonRack_1Rnd_AIM9D","uns_pylonRack_1Rnd_AIM9D","uns_pylonRack_1Rnd_fuel_f100"]; + }; + case "uns_F4E_CAP": + { + _loadout = ["uns_pylonRack_1Rnd_fuel_f4","uns_pylonRack_1Rnd_fuel_f4","","","uns_pylonRack_1Rnd_AIM9E","uns_pylonRack_1Rnd_AIM9E","uns_pylonRack_1Rnd_AIM9E","uns_pylonRack_1Rnd_AIM9E","uns_pylonRack_1Rnd_AIM7","uns_pylonRack_1Rnd_AIM7","uns_pylonRack_1Rnd_AIM7","uns_pylonRack_1Rnd_AIM7","uns_pylonRack_1Rnd_fuel_f4"]; + }; + case "uns_Mig21_CAP": + { + _loadout = ["uns_pylonRack_1Rnd_K13","uns_pylonRack_1Rnd_K13","uns_pylonRack_1Rnd_K13","uns_pylonRack_1Rnd_K13","uns_pylonRack_1rnd_fuel_mig21","uns_pylonRack_1rnd_fuel_mig21","uns_pylonRack_1rnd_fuel_mig21"]; }; default { From 3d59adb32ad39e8b8429f95f3d8b06bd06d4736b Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:00:48 +0000 Subject: [PATCH 12/25] Update params.hpp --- A3-Antistasi/MissionDescription/params.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/A3-Antistasi/MissionDescription/params.hpp b/A3-Antistasi/MissionDescription/params.hpp index 5c05ddebc4..7744e793e2 100644 --- a/A3-Antistasi/MissionDescription/params.hpp +++ b/A3-Antistasi/MissionDescription/params.hpp @@ -249,7 +249,7 @@ class Params texts[] = { "Default (Auto)", "NATO", "CSAT", "AAF", "LDF (Contact)", "USAF (RHS)", "AFRF (RHS)","CDF (RHS)" , "US Marines (RHS)", "BAF (BAF)", "Coldwar US (Factions)", "Coldwar Soviets (Factions)" - , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF), "NVA (UNS)", "Viet US (UNS)" + , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF)", "NVA (UNS)", "Viet US (UNS)" }; default = 9999; }; @@ -260,7 +260,7 @@ class Params texts[] = { "Default (Auto)", "NATO", "CSAT", "AAF", "LDF (Contact)", "USAF (RHS)", "AFRF (RHS)","CDF (RHS)" , "US Marines (RHS)", "BAF (BAF)", "Coldwar US (Factions)", "Coldwar Soviets (Factions)" - , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF), "NVA (UNS)", "Viet US (UNS)" + , "TKA West (Factions)", "TKA East (Factions)", "ADA (Factions)", "ANA (Factions)", "3CB AAF (Factions)", "MDF (Factions)", "HIDF (Factions)", "MACV (SOG:PF)", "PAVN (SOG:PF)", "NVA (UNS)", "Viet US (UNS)" }; default = 9999; }; From d1e96dc9040ccbb3f1b1785f5cfc3dc7702af5bb Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:13:23 +0000 Subject: [PATCH 13/25] Update Unsung_AI_NVA_Tropical.sqf --- .../UNSUNG/Unsung_AI_NVA_Tropical.sqf | 134 +++++++++--------- 1 file changed, 67 insertions(+), 67 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf index 56c615bb90..bf34b4b810 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf @@ -85,33 +85,33 @@ _loadoutData set ["machineGuns", []]; _loadoutData set ["marksmanRifles", []]; _loadoutData set ["sniperRifles", []]; -_loadoutData setVariable ["lightATLaunchers", [["uns_rpg2", "", "", "", ["uns_rpg2grenade"], [], ""], +_loadoutData set ["lightATLaunchers", [["uns_rpg2", "", "", "", ["uns_rpg2grenade"], [], ""], ["uns_B40", "", "", "", ["uns_B40grenade"], [], ""]]]; -_loadoutData setVariable ["ATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; -_loadoutData setVariable ["missileATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; -_loadoutData setVariable ["AALaunchers", [["uns_sa7b", "", "", "", ["uns_sa7bmag"], [], ""]]]; +_loadoutData set ["ATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; +_loadoutData set ["missileATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; +_loadoutData set ["AALaunchers", [["uns_sa7b", "", "", "", ["uns_sa7bmag"], [], ""]]]; _loadoutData set ["sidearms", []]; -_loadoutData setVariable ["ATMines", ["uns_mine_AT_mag"]]; -_loadoutData setVariable ["APMines", ["uns_mine_AP_mag"]]; -_loadoutData setVariable ["lightExplosives", ["uns_M118_mag_remote"]]; -_loadoutData setVariable ["heavyExplosives", ["DemoCharge_Remote_Mag"]]; +_loadoutData set ["ATMines", ["uns_mine_AT_mag"]]; +_loadoutData set ["APMines", ["uns_mine_AP_mag"]]; +_loadoutData set ["lightExplosives", ["uns_M118_mag_remote"]]; +_loadoutData set ["heavyExplosives", ["DemoCharge_Remote_Mag"]]; -_loadoutData setVariable ["antiTankGrenades", ["uns_molotov_mag","uns_rkg3gren"]]; -_loadoutData setVariable ["antiInfantryGrenades", ["uns_f1gren","uns_rg42gren","uns_rgd33gren","uns_rgd5gren"]]; -_loadoutData setVariable ["smokeGrenades", ["uns_rdg2"]]; +_loadoutData set ["antiTankGrenades", ["uns_molotov_mag","uns_rkg3gren"]]; +_loadoutData set ["antiInfantryGrenades", ["uns_f1gren","uns_rg42gren","uns_rgd33gren","uns_rgd5gren"]]; +_loadoutData set ["smokeGrenades", ["uns_rdg2"]]; //Basic equipment. Shouldn't need touching most of the time. //Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) -_loadoutData setVariable ["maps", ["ItemMap"]]; -_loadoutData setVariable ["watches", ["ItemWatch"]]; -_loadoutData setVariable ["compasses", ["ItemCompass"]]; -_loadoutData setVariable ["radios", ["UNS_ItemRadio_T884_TFAR"]]; -_loadoutData setVariable ["gpses", [""]]; -_loadoutData setVariable ["NVGs", [""]]; -_loadoutData setVariable ["binoculars", ["Binocular"]]; -_loadoutData setVariable ["rangefinder", ["uns_ANPVS2"]]; +_loadoutData set ["maps", ["ItemMap"]]; +_loadoutData set ["watches", ["ItemWatch"]]; +_loadoutData set ["compasses", ["ItemCompass"]]; +_loadoutData set ["radios", ["UNS_ItemRadio_T884_TFAR"]]; +_loadoutData set ["gpses", [""]]; +_loadoutData set ["NVGs", [""]]; +_loadoutData set ["binoculars", ["Binocular"]]; +_loadoutData set ["rangefinder", ["uns_ANPVS2"]]; _loadoutData set ["uniforms", []]; _loadoutData set ["vests", []]; @@ -149,28 +149,28 @@ _loadoutData set ["items_unarmed_extras", []]; /////////////////////////////////////// private _sfLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_sfLoadoutData setVariable ["uniforms", ["UNS_NVA_CC"]]; -_sfLoadoutData setVariable ["vests", ["uns_Simc_Barbelt","uns_Simc_Barbelt_M56","uns_Simc_Barbelt_M56_zusp"]]; -_sfLoadoutData setVariable ["backpacks", ["uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","uns_simc_ARVN_ruck_3"]]; -_sfLoadoutData setVariable ["helmets", ["UNS_NVA_SSH60","UNS_NVA_SSH40","UNS_Beret_AVAB","UNS_M1_1V1","UNS_M1_1V2","UNS_M1_1V1N"]]; -_sfLoadoutData setVariable ["binoculars", ["uns_ANPVS2"]]; +_sfLoadoutData set ["uniforms", ["UNS_NVA_CC"]]; +_sfLoadoutData set ["vests", ["uns_Simc_Barbelt","uns_Simc_Barbelt_M56","uns_Simc_Barbelt_M56_zusp"]]; +_sfLoadoutData set ["backpacks", ["uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","uns_simc_ARVN_ruck_3"]]; +_sfLoadoutData set ["helmets", ["UNS_NVA_SSH60","UNS_NVA_SSH40","UNS_Beret_AVAB","UNS_M1_1V1","UNS_M1_1V2","UNS_M1_1V1N"]]; +_sfLoadoutData set ["binoculars", ["uns_ANPVS2"]]; //["Weapon", "Muzzle", "Rail", "Sight", [], [], "Bipod"]; -_sfLoadoutData setVariable ["rifles", [["uns_sa58p", "", "", "", ["uns_sa58mag"], [], ""], +_sfLoadoutData set ["rifles", [["uns_sa58p", "", "", "", ["uns_sa58mag"], [], ""], ["uns_sa58p", "", "", "", ["uns_sa58mag"], [], ""]]]; -_sfLoadoutData setVariable ["carbines", [["uns_sa58v", "", "", "", ["uns_sa58mag"], [], ""], +_sfLoadoutData set ["carbines", [["uns_sa58v", "", "", "", ["uns_sa58mag"], [], ""], ["uns_sa58vf", "", "", "", ["uns_sa58mag"], [], ""]]]; -_sfLoadoutData setVariable ["grenadeLaunchers", [["uns_ex41", "", "", "", ["uns_ex41mag"], ["uns_1Rnd_Smoke_40mm"], ""]]]; -_sfLoadoutData setVariable ["SMGs", [["uns_type50", "", "", "", ["uns_ppshmag_NT"], [], ""], +_sfLoadoutData set ["grenadeLaunchers", [["uns_ex41", "", "", "", ["uns_ex41mag"], ["uns_1Rnd_Smoke_40mm"], ""]]]; +_sfLoadoutData set ["SMGs", [["uns_type50", "", "", "", ["uns_ppshmag_NT"], [], ""], ["uns_ppsh41", "", "", "", ["uns_ppshmag_NT"], [], ""], ["uns_m2carbine_shorty", "", "", "", ["uns_m2carbinemag_NT"], [], ""]]]; -_sfLoadoutData setVariable ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ""], +_sfLoadoutData set ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ""], ["uns_RPK_drum", "", "", "", ["uns_75Rnd_akdr"], [], ""], ["uns_PK", "", "", "", ["uns_100Rnd_762x54_PK"], [], ""], ["uns_RPK_40", "", "", "", ["uns_rpkmag"], [], ""]]]; -_sfLoadoutData setVariable ["marksmanRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; -_sfLoadoutData setVariable ["sniperRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; -_sfLoadoutData setVariable ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], +_sfLoadoutData set ["marksmanRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; +_sfLoadoutData set ["sniperRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; +_sfLoadoutData set ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], @@ -183,13 +183,13 @@ _sfLoadoutData setVariable ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_ ///////////////////////////////// private _militaryLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militaryLoadoutData setVariable ["uniforms", ["UNS_NVA_GS","UNS_NVA_G","uns_U_Simc_nva_1","uns_U_Simc_nva_1_trop","uns_U_Simc_nva_2","uns_U_Simc_nva_2_trop"]]; -_militaryLoadoutData setVariable ["vests", ["uns_Simc_Barbelt","uns_Simc_Barbelt_M56","uns_Simc_Barbelt_M56_zusp"]]; -_militaryLoadoutData setVariable ["backpacks", ["uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","uns_simc_ARVN_ruck_3"]]; -_militaryLoadoutData setVariable ["helmets", ["UNS_NVA_SSH60","UNS_NVA_SSH40","uns_nva_m56","UNS_NVA_HGG","UNS_NVA_HG","UNS_PAVN_HG"]]; -_militaryLoadoutData setVariable ["binoculars", ["Binocular"]]; +_militaryLoadoutData set ["uniforms", ["UNS_NVA_GS","UNS_NVA_G","uns_U_Simc_nva_1","uns_U_Simc_nva_1_trop","uns_U_Simc_nva_2","uns_U_Simc_nva_2_trop"]]; +_militaryLoadoutData set ["vests", ["uns_Simc_Barbelt","uns_Simc_Barbelt_M56","uns_Simc_Barbelt_M56_zusp"]]; +_militaryLoadoutData set ["backpacks", ["uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","uns_simc_ARVN_ruck_3"]]; +_militaryLoadoutData set ["helmets", ["UNS_NVA_SSH60","UNS_NVA_SSH40","uns_nva_m56","UNS_NVA_HGG","UNS_NVA_HG","UNS_PAVN_HG"]]; +_militaryLoadoutData set ["binoculars", ["Binocular"]]; -_militaryLoadoutData setVariable ["rifles", [["uns_type56", "", "", "", ["uns_ak47mag"], [], ""], +_militaryLoadoutData set ["rifles", [["uns_type56", "", "", "", ["uns_ak47mag"], [], ""], ["uns_ak47", "", "", "", ["uns_ak47mag"], [], ""], ["uns_aks47", "", "", "", ["uns_ak47mag"], [], ""], ["uns_akm", "", "", "", ["uns_ak47mag"], [], ""], @@ -200,7 +200,7 @@ _militaryLoadoutData setVariable ["rifles", [["uns_type56", "", "", "", ["uns_ak ["uns_akmsf_drum", "", "", "", ["uns_ak47mag"], [], ""], ["uns_ak47_52", "", "", "", ["uns_ak47mag"], [], ""], ["uns_ak47_49", "", "", "", ["uns_ak47mag"], [], ""]]]; -_militaryLoadoutData setVariable ["carbines", [["uns_sks", "", "", "", ["uns_sksmag"], [], ""], +_militaryLoadoutData set ["carbines", [["uns_sks", "", "", "", ["uns_sksmag"], [], ""], ["uns_type56", "", "", "", ["uns_ak47mag"], [], ""], ["uns_ak47", "", "", "", ["uns_ak47mag"], [], ""], ["uns_aks47", "", "", "", ["uns_ak47mag"], [], ""], @@ -208,9 +208,9 @@ _militaryLoadoutData setVariable ["carbines", [["uns_sks", "", "", "", ["uns_sks ["uns_akms", "", "", "", ["uns_ak47mag"], [], ""], ["uns_akmsf", "", "", "", ["uns_ak47mag"], [], ""], ["uns_sks", "", "", "", ["uns_sksmag_NT"], [], ""]]]; -_militaryLoadoutData setVariable ["grenadeLaunchers", [["uns_ex41", "", "", "", ["uns_ex41mag"], ["uns_1Rnd_Smoke_40mm"], ""], +_militaryLoadoutData set ["grenadeLaunchers", [["uns_ex41", "", "", "", ["uns_ex41mag"], ["uns_1Rnd_Smoke_40mm"], ""], ["uns_mas4956_gl", "", "", "", ["uns_mas4956mag"], ["Uns_1Rnd_22mm_AT","Uns_1Rnd_22mm_smoke","Uns_1Rnd_22mm_WP"], ""]]]; -_militaryLoadoutData setVariable ["SMGs", [["uns_sa61", "", "", "", ["uns_20Rnd_sa61"], [], ""], +_militaryLoadoutData set ["SMGs", [["uns_sa61", "", "", "", ["uns_20Rnd_sa61"], [], ""], ["uns_pm63", "", "", "", ["uns_25Rnd_pm"], [], ""], ["uns_mat49", "", "", "", ["uns_mat49mag"], [], ""], ["uns_mac10", "", "", "", ["uns_mac10mag"], [], ""], @@ -221,17 +221,17 @@ _militaryLoadoutData setVariable ["SMGs", [["uns_sa61", "", "", "", ["uns_20Rnd_ ["uns_uzi", "", "", "", ["uns_32Rnd_uzi"], [], ""], ["uns_m45", "", "", "", ["uns_m45mag"], [], ""], ["uns_m45f", "", "", "", ["uns_m45mag"], [], ""]]]; -_militaryLoadoutData setVariable ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ""], +_militaryLoadoutData set ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ""], ["uns_RPK_drum", "", "", "", ["uns_75Rnd_akdr"], [], ""], ["uns_PK", "", "", "", ["uns_100Rnd_762x54_PK"], [], ""], ["uns_RPK_40", "", "", "", ["uns_rpkmag"], [], ""]]]; -_militaryLoadoutData setVariable ["marksmanRifles", [["uns_svd_base", "", "", "uns_o_pso1", ["uns_svdmag_T"], [], ""], +_militaryLoadoutData set ["marksmanRifles", [["uns_svd_base", "", "", "uns_o_pso1", ["uns_svdmag_T"], [], ""], ["uns_mas4956", "", "", "uns_o_apxsom", ["uns_mas4956mag"], [], ""]]]; -_militaryLoadoutData setVariable ["sniperRifles", [["uns_mosin", "", "", "uns_o_pu", ["uns_mosinmag_T"], [], ""], +_militaryLoadoutData set ["sniperRifles", [["uns_mosin", "", "", "uns_o_pu", ["uns_mosinmag_T"], [], ""], ["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], ["uns_type99", "", "", "uns_o_akatihi4x", ["uns_type99mag"], [], ""], ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag"], [], ""]]]; -_militaryLoadoutData setVariable ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], +_militaryLoadoutData set ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], @@ -245,11 +245,11 @@ _militaryLoadoutData setVariable ["sidearms", [["uns_sa61_p", "", "", "", ["uns_ private _policeLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_policeLoadoutData setVariable ["uniforms", ["UNS_NVA_KS"]]; -_policeLoadoutData setVariable ["vests", ["UNS_NVA_S2"]]; -_policeLoadoutData setVariable ["helmets", ["UNS_NVA_HK"]]; +_policeLoadoutData set ["uniforms", ["UNS_NVA_KS"]]; +_policeLoadoutData set ["vests", ["UNS_NVA_S2"]]; +_policeLoadoutData set ["helmets", ["UNS_NVA_HK"]]; -_policeLoadoutData setVariable ["smgs", [["uns_PPS43", "", "", "", ["uns_k50mag"], [], ""], +_policeLoadoutData set ["SMGs", [["uns_PPS43", "", "", "", ["uns_k50mag"], [], ""], ["uns_PPS43f", "", "", "", ["uns_k50mag"], [], ""], ["uns_ppsh41", "", "", "", ["uns_k50mag"], [], ""], ["uns_mp40", "", "", "", ["uns_mp40mag"], [], ""], @@ -257,7 +257,7 @@ _policeLoadoutData setVariable ["smgs", [["uns_PPS43", "", "", "", ["uns_k50mag" ["uns_sten", "", "", "", ["uns_stenmag"], [], ""], ["uns_owen", "", "", "", ["uns_owenmag"], [], ""], ["uns_PPS52", "", "", "", ["uns_k50mag"], [], ""]]]; -_policeLoadoutData setVariable ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], +_policeLoadoutData set ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""]]]; //////////////////////////////// @@ -265,27 +265,27 @@ _policeLoadoutData setVariable ["sidearms", [["uns_Tt33", "", "", "", ["uns_toka //////////////////////////////// private _militiaLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militiaLoadoutData setVariable ["uniforms", ["UNS_NVA_K"]]; -_militiaLoadoutData setVariable ["vests", ["uns_Simc_garlan","uns_Simc_garlan_M56","uns_Simc_garlan_M56_zusp"]]; -_militiaLoadoutData setVariable ["backpacks", ["UNS_NVA_R1","UNS_NVA_RC","UNS_NVA_R3","UNS_NVA_MED"]]; -_militiaLoadoutData setVariable ["helmets", ["UNS_NVA_HK","UNS_NVA_HKG","UNS_PAVN_HN","UNS_PAVN_HC"]]; +_militiaLoadoutData set ["uniforms", ["UNS_NVA_K"]]; +_militiaLoadoutData set ["vests", ["uns_Simc_garlan","uns_Simc_garlan_M56","uns_Simc_garlan_M56_zusp"]]; +_militiaLoadoutData set ["backpacks", ["UNS_NVA_R1","UNS_NVA_RC","UNS_NVA_R3","UNS_NVA_MED"]]; +_militiaLoadoutData set ["helmets", ["UNS_NVA_HK","UNS_NVA_HKG","UNS_PAVN_HN","UNS_PAVN_HC"]]; -_militiaLoadoutData setVariable ["rifles", [["uns_type99", "", "", "", ["uns_type99mag"], [], ""], +_militiaLoadoutData set ["rifles", [["uns_type99", "", "", "", ["uns_type99mag"], [], ""], ["uns_smle", "", "", "", ["uns_smlemag"], [], ""], ["uns_m1903", "", "", "", ["uns_springfieldmag"], [], ""], ["uns_mas36", "", "", "", ["uns_mas36mag"], [], ""], ["uns_kar98k", "", "", "", ["uns_kar98kmag"], [], ""], ["uns_mosin", "", "", "", ["uns_mosinmag"], [], ""]]]; -_militiaLoadoutData setVariable ["carbines", [["uns_sks", "", "", "", ["uns_sksmag"], [], ""], +_militiaLoadoutData set ["carbines", [["uns_sks", "", "", "", ["uns_sksmag"], [], ""], ["uns_sks", "", "", "", ["uns_sksmag_NT"], [], ""], ["uns_svt", "", "", "", ["uns_svtmag"], [], ""], ["uns_STG_44", "", "", "", ["uns_30Rnd_kurtz_stg"], [], ""], ["uns_mas36short", "", "", "", ["uns_mas36mag"], [], ""], ["uns_mas4956", "", "", "", ["uns_mas4956mag"], [], ""]]]; -_militiaLoadoutData setVariable ["grenadeLaunchers", [["uns_type99_gl", "", "", "", ["uns_type99mag"], ["Uns_1Rnd_30mm_FRAG"], ""], +_militiaLoadoutData set ["grenadeLaunchers", [["uns_type99_gl", "", "", "", ["uns_type99mag"], ["Uns_1Rnd_30mm_FRAG"], ""], ["uns_mas36_gl", "", "", "", ["uns_mas36mag"], ["Uns_1Rnd_22mm_AT","Uns_1Rnd_22mm_smoke","Uns_1Rnd_22mm_WP"], ""], ["uns_mas36short_gl", "", "", "", ["uns_mas36mag"], ["Uns_1Rnd_22mm_AT","Uns_1Rnd_22mm_smoke","Uns_1Rnd_22mm_WP"], ""]]]; -_militiaLoadoutData setVariable ["smgs", [["uns_PPS43", "", "", "", ["uns_k50mag"], [], ""], +_militiaLoadoutData set ["SMGs", [["uns_PPS43", "", "", "", ["uns_k50mag"], [], ""], ["uns_PPS43f", "", "", "", ["uns_k50mag"], [], ""], ["uns_ppsh41", "", "", "", ["uns_k50mag"], [], ""], ["uns_ppsh41", "", "", "", ["uns_ppshmag"], [], ""], @@ -294,13 +294,13 @@ _militiaLoadoutData setVariable ["smgs", [["uns_PPS43", "", "", "", ["uns_k50mag ["uns_sten", "", "", "", ["uns_stenmag"], [], ""], ["uns_owen", "", "", "", ["uns_owenmag"], [], ""], ["uns_PPS52", "", "", "", ["uns_k50mag"], [], ""]]]; -_militiaLoadoutData setVariable ["machineGuns", [["uns_MG42", "", "", "", ["uns_50Rnd_792x57_Mg42"], [], ""], +_militiaLoadoutData set ["machineGuns", [["uns_MG42", "", "", "", ["uns_50Rnd_792x57_Mg42"], [], ""], ["uns_mg42_bakelite", "", "", "", ["uns_50Rnd_792x57_Mg42"], [], ""], ["uns_m1919a6", "", "", "", ["uns_100Rnd_m1919"], [], ""]]]; -_militiaLoadoutData setVariable ["marksmanRifles", [["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], +_militiaLoadoutData set ["marksmanRifles", [["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], ["uns_type99", "", "", "uns_o_akatihi4x", ["uns_type99mag"], [], ""], ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag"], [], ""]]]; -_militiaLoadoutData setVariable ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], +_militiaLoadoutData set ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""]]]; @@ -309,14 +309,14 @@ _militiaLoadoutData setVariable ["sidearms", [["uns_Tt33", "", "", "", ["uns_tok ////////////////////////// private _crewLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_crewLoadoutData setVariable ["uniforms", ["UNS_NVA_G"]]; -_crewLoadoutData setVariable ["vests", ["UNS_NVA_S2"]]; -_crewLoadoutData setVariable ["helmets", ["UNS_NVA_CH","UNS_NVA_CHB","UNS_NVA_CHG","UNS_NVA_CHBG"]]; +_crewLoadoutData set ["uniforms", ["UNS_NVA_G"]]; +_crewLoadoutData set ["vests", ["UNS_NVA_S2"]]; +_crewLoadoutData set ["helmets", ["UNS_NVA_CH","UNS_NVA_CHB","UNS_NVA_CHG","UNS_NVA_CHBG"]]; private _pilotLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_pilotLoadoutData setVariable ["uniforms", ["UNS_NVA_CG","UNS_NVA_CK","UNS_NVA_CP"]]; -_pilotLoadoutData setVariable ["vests", ["uns_Simc_garlan_M56"]]; -_pilotLoadoutData setVariable ["helmets", ["UNS_NVA_PL","UNS_NVA_PLC"]]; +_pilotLoadoutData set ["uniforms", ["UNS_NVA_CG","UNS_NVA_CK","UNS_NVA_CP"]]; +_pilotLoadoutData set ["vests", ["uns_Simc_garlan_M56"]]; +_pilotLoadoutData set ["helmets", ["UNS_NVA_PL","UNS_NVA_PLC"]]; ///////////////////////////////// From f113f91fc66e36ccee855ce7b357b1e6d46e8363 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:16:57 +0000 Subject: [PATCH 14/25] Update Unsung_AI_US_Tropical.sqf --- .../UNSUNG/Unsung_AI_US_Tropical.sqf | 140 +++++++++--------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf index ee02896004..8c3dfd9efc 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf @@ -85,32 +85,32 @@ _loadoutData set ["machineGuns", []]; _loadoutData set ["marksmanRifles", []]; _loadoutData set ["sniperRifles", []]; -_loadoutData setVariable ["lightATLaunchers", [["uns_m72", "", "", "", ["uns_m72rocket"], [], ""]]]; -_loadoutData setVariable ["ATLaunchers", [["uns_m20_bazooka", "", "", "", ["uns_M28A2_mag"], [], ""]]]; -_loadoutData setVariable ["missileATLaunchers", [["uns_m20_bazooka", "", "", "", ["uns_M28A2_mag"], [], ""]]]; -_loadoutData setVariable ["AALaunchers", [["uns_sa7", "", "", "", ["uns_sa7mag"], [], ""]]]; -_loadoutData setVariable ["sidearms", []]; +_loadoutData set ["lightATLaunchers", [["uns_m72", "", "", "", ["uns_m72rocket"], [], ""]]]; +_loadoutData set ["ATLaunchers", [["uns_m20_bazooka", "", "", "", ["uns_M28A2_mag"], [], ""]]]; +_loadoutData set ["missileATLaunchers", [["uns_m20_bazooka", "", "", "", ["uns_M28A2_mag"], [], ""]]]; +_loadoutData set ["AALaunchers", [["uns_sa7", "", "", "", ["uns_sa7mag"], [], ""]]]; +_loadoutData set ["sidearms", []]; -_loadoutData setVariable ["ATMines", ["uns_mine_AV_mag"]]; -_loadoutData setVariable ["APMines", ["uns_traps_mine_mag"]]; -_loadoutData setVariable ["lightExplosives", ["uns_M118_mag_remote"]]; -_loadoutData setVariable ["heavyExplosives", ["DemoCharge_Remote_Mag"]]; +_loadoutData set ["ATMines", ["uns_mine_AV_mag"]]; +_loadoutData set ["APMines", ["uns_traps_mine_mag"]]; +_loadoutData set ["lightExplosives", ["uns_M118_mag_remote"]]; +_loadoutData set ["heavyExplosives", ["DemoCharge_Remote_Mag"]]; -_loadoutData setVariable ["antiTankGrenades", ["uns_m14gren", "uns_m34gren"]]; -_loadoutData setVariable ["antiInfantryGrenades", ["uns_m67gren", "uns_m61gren", "uns_mk2gren"]]; -_loadoutData setVariable ["smokeGrenades", ["uns_m18white"]]; +_loadoutData set ["antiTankGrenades", ["uns_m14gren", "uns_m34gren"]]; +_loadoutData set ["antiInfantryGrenades", ["uns_m67gren", "uns_m61gren", "uns_mk2gren"]]; +_loadoutData set ["smokeGrenades", ["uns_m18white"]]; //Basic equipment. Shouldn't need touching most of the time. //Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) -_loadoutData setVariable ["maps", ["ItemMap"]]; -_loadoutData setVariable ["watches", ["ItemWatch"]]; -_loadoutData setVariable ["compasses", ["ItemCompass"]]; -_loadoutData setVariable ["radios", ["UNS_ItemRadio_PRC_90_TFAR"]]; -_loadoutData setVariable ["gpses", []]; -_loadoutData setVariable ["NVGs", [""]]; -_loadoutData setVariable ["binoculars", ["uns_binocular_navy"]]; -_loadoutData setVariable ["rangefinder", ["uns_binocular_army"]]; +_loadoutData set ["maps", ["ItemMap"]]; +_loadoutData set ["watches", ["ItemWatch"]]; +_loadoutData set ["compasses", ["ItemCompass"]]; +_loadoutData set ["radios", ["UNS_ItemRadio_PRC_90_TFAR"]]; +_loadoutData set ["gpses", []]; +_loadoutData set ["NVGs", [""]]; +_loadoutData set ["binoculars", ["uns_binocular_navy"]]; +_loadoutData set ["rangefinder", ["uns_binocular_army"]]; _loadoutData set ["uniforms", []]; _loadoutData set ["vests", []]; @@ -148,27 +148,27 @@ _loadoutData set ["items_unarmed_extras", []]; /////////////////////////////////////// private _sfLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_sfLoadoutData setVariable ["uniforms", ["UNS_SAS_BDU_E"]]; -_sfLoadoutData setVariable ["vests", ["uns_sas_web_3","uns_sas_web_3_ugl","uns_sas_web_1","uns_sas_web_1_gl","uns_sas_web_2","uns_sas_web_2_gl"]]; -_sfLoadoutData setVariable ["backpacks", ["uns_sas_alicepack_1","uns_sas_alicepack_2","uns_sas_alicepack_3","uns_sas_alicepack_RTO"]]; -_sfLoadoutData setVariable ["helmets", ["uns_sas_bandana_erdl","uns_sas_booniehat_erdl","uns_sas_booniehat_erdl2","uns_sas_headband_erdl"]]; -_sfLoadoutData setVariable ["binoculars", ["uns_binocular_army"]]; +_sfLoadoutData set ["uniforms", ["UNS_SAS_BDU_E"]]; +_sfLoadoutData set ["vests", ["uns_sas_web_3","uns_sas_web_3_ugl","uns_sas_web_1","uns_sas_web_1_gl","uns_sas_web_2","uns_sas_web_2_gl"]]; +_sfLoadoutData set ["backpacks", ["uns_sas_alicepack_1","uns_sas_alicepack_2","uns_sas_alicepack_3","uns_sas_alicepack_RTO"]]; +_sfLoadoutData set ["helmets", ["uns_sas_bandana_erdl","uns_sas_booniehat_erdl","uns_sas_booniehat_erdl2","uns_sas_headband_erdl"]]; +_sfLoadoutData set ["binoculars", ["uns_binocular_army"]]; //["Weapon", "Muzzle", "Rail", "Sight", [], [], "Bipod"]; -_sfLoadoutData setVariable ["rifles", [["uns_l1a1", "", "", "", ["uns_l1a1mag"], [], ""], +_sfLoadoutData set ["rifles", [["uns_l1a1", "", "", "", ["uns_l1a1mag"], [], ""], ["uns_l2a1_shorty", "", "", "", ["uns_l1a1mag"], [], ""]]]; -_sfLoadoutData setVariable ["carbines", [["uns_m3carbine", "", "", "", ["uns_m2carbinemag"], [], ""], +_sfLoadoutData set ["carbines", [["uns_m3carbine", "", "", "", ["uns_m2carbinemag"], [], ""], ["uns_xm177e2_stock", "", "", "uns_o_colt4x", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; -_sfLoadoutData setVariable ["grenadeLaunchers", [["uns_l1a1gl", "", "", "", ["uns_l1a1mag"], ["Uns_1Rnd_HE_M381","uns_1Rnd_Smoke_40mm"], ""], +_sfLoadoutData set ["grenadeLaunchers", [["uns_l1a1gl", "", "", "", ["uns_l1a1mag"], ["Uns_1Rnd_HE_M381","uns_1Rnd_Smoke_40mm"], ""], ["uns_m16_xm148_camo", "", "", "", ["uns_30Rnd_556x45_Stanag"], ["uns_m406vest","uns_1Rnd_Smoke_40mm"], ""]]]; -_sfLoadoutData setVariable ["SMGs", [["uns_SterlingSD", "", "", "", ["uns_mk4mag"], [], ""], +_sfLoadoutData set ["SMGs", [["uns_SterlingSD", "", "", "", ["uns_mk4mag"], [], ""], ["uns_Sterling", "", "", "", ["uns_mk4mag"], [], ""]]]; -_sfLoadoutData setVariable ["machineGuns", [["uns_m60", "", "", "", ["uns_m60mag"], [], ""], +_sfLoadoutData set ["machineGuns", [["uns_m60", "", "", "", ["uns_m60mag"], [], ""], ["uns_ukvz59", "", "", "", ["uns_100Rnd_762x54_ukvz59"], [], ""]]]; -_sfLoadoutData setVariable ["marksmanRifles", [["uns_m16_camo", "", "", "uns_o_leatherwoodart_m16", ["uns_20Rnd_556x45_Stanag"], [], ""], +_sfLoadoutData set ["marksmanRifles", [["uns_m16_camo", "", "", "uns_o_leatherwoodart_m16", ["uns_20Rnd_556x45_Stanag"], [], ""], ["uns_m14", "", "", "uns_o_leatherwoodart_m14", ["uns_m14mag"], [], ""]]]; -_sfLoadoutData setVariable ["sniperRifles", [["uns_smle_sniper", "", "", "", ["uns_smlemag"], [], ""]]]; -_sfLoadoutData setVariable ["sidearms", [["uns_MX991_m1911SD_base", "uns_s_m1911", "uns_ba30", "", ["uns_m1911mag"], [], ""], +_sfLoadoutData set ["sniperRifles", [["uns_smle_sniper", "", "", "", ["uns_smlemag"], [], ""]]]; +_sfLoadoutData set ["sidearms", [["uns_MX991_m1911SD_base", "uns_s_m1911", "uns_ba30", "", ["uns_m1911mag"], [], ""], ["uns_bhp", "", "", "", ["uns_13Rnd_hp"], [], ""]]]; ///////////////////////////////// @@ -176,25 +176,25 @@ _sfLoadoutData setVariable ["sidearms", [["uns_MX991_m1911SD_base", "uns_s_m1911 ///////////////////////////////// private _militaryLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militaryLoadoutData setVariable ["uniforms", ["UNS_USMC_BDU_65"]]; -_militaryLoadoutData setVariable ["vests", ["uns_simc_flak_55","uns_simc_flak_55_M61_79_belt","uns_simc_flak_55_bandoleer","uns_Simc_flak_55_M61_med","uns_simc_flak_55_M61","uns_flak_55_M61_60_2","uns_simc_flak_55_mk2_belt_open","uns_simc_flak_55_mk2_bandoleer_belt"]]; -_militaryLoadoutData setVariable ["backpacks", ["UNS_Alice_F1","UNS_Alice_FR","uns_simc_MC_rajio_flak_1","UNS_USMC_MED","UNS_USMC_R1","uns_simc_MC_packboard_flak_3"]]; -_militaryLoadoutData setVariable ["helmets", ["UNS_M1_2","uns_simc_m1_bitch_op"]]; -_militaryLoadoutData setVariable ["binoculars", ["uns_binocular_army"]]; - -_militaryLoadoutData setVariable ["rifles", [["uns_M16A1", "", "", "", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; -_militaryLoadoutData setVariable ["carbines", [["uns_m2carbine", "", "", "", ["uns_m1carbinemag"], [], ""], +_militaryLoadoutData set ["uniforms", ["UNS_USMC_BDU_65"]]; +_militaryLoadoutData set ["vests", ["uns_simc_flak_55","uns_simc_flak_55_M61_79_belt","uns_simc_flak_55_bandoleer","uns_Simc_flak_55_M61_med","uns_simc_flak_55_M61","uns_flak_55_M61_60_2","uns_simc_flak_55_mk2_belt_open","uns_simc_flak_55_mk2_bandoleer_belt"]]; +_militaryLoadoutData set ["backpacks", ["UNS_Alice_F1","UNS_Alice_FR","uns_simc_MC_rajio_flak_1","UNS_USMC_MED","UNS_USMC_R1","uns_simc_MC_packboard_flak_3"]]; +_militaryLoadoutData set ["helmets", ["UNS_M1_2","uns_simc_m1_bitch_op"]]; +_militaryLoadoutData set ["binoculars", ["uns_binocular_army"]]; + +_militaryLoadoutData set ["rifles", [["uns_M16A1", "", "", "", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; +_militaryLoadoutData set ["carbines", [["uns_m2carbine", "", "", "", ["uns_m1carbinemag"], [], ""], ["uns_xm177e2_stock", "", "", "", ["uns_30Rnd_556x45_Stanag"], [], ""]]]; -_militaryLoadoutData setVariable ["grenadeLaunchers", [["uns_m16a1_m203", "", "", "", ["uns_20Rnd_556x45_Stanag"], ["Uns_1Rnd_HE_M381","uns_1Rnd_Smoke_40mm"], ""]]]; -_militaryLoadoutData setVariable ["SMGs", [["uns_thompson", "", "", "", ["uns_thompsonmag_30"], [], ""], +_militaryLoadoutData set ["grenadeLaunchers", [["uns_m16a1_m203", "", "", "", ["uns_20Rnd_556x45_Stanag"], ["Uns_1Rnd_HE_M381","uns_1Rnd_Smoke_40mm"], ""]]]; +_militaryLoadoutData set ["SMGs", [["uns_thompson", "", "", "", ["uns_thompsonmag_30"], [], ""], ["uns_m3a1", "", "", "", ["uns_m3a1mag"], [], ""]]]; -_militaryLoadoutData setVariable ["machineGuns", [["uns_m60", "", "", "", ["uns_m60mag"], [], ""], +_militaryLoadoutData set ["machineGuns", [["uns_m60", "", "", "", ["uns_m60mag"], [], ""], ["uns_M63a_LMG", "", "", "", ["uns_m63abox"], [], ""]]]; -_militaryLoadoutData setVariable ["marksmanRifles", [["uns_m16_camo", "", "", "uns_o_leatherwoodart_m16", ["uns_20Rnd_556x45_Stanag"], [], ""], +_militaryLoadoutData set ["marksmanRifles", [["uns_m16_camo", "", "", "uns_o_leatherwoodart_m16", ["uns_20Rnd_556x45_Stanag"], [], ""], ["uns_m14", "", "", "uns_o_leatherwoodart_m14", ["uns_m14mag"], [], ""]]]; -_militaryLoadoutData setVariable ["sniperRifles", [["uns_model70_iron", "", "", "uns_o_redfieldart_m70", ["uns_model70mag_T"], [], ""], +_militaryLoadoutData set ["sniperRifles", [["uns_model70_iron", "", "", "uns_o_redfieldart_m70", ["uns_model70mag_T"], [], ""], ["uns_M40_base", "", "", "uns_o_redfieldart", ["uns_m40mag_T"], [], ""]]]; -_militaryLoadoutData setVariable ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; +_militaryLoadoutData set ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; /////////////////////////////// // Police Loadout Data // @@ -202,13 +202,13 @@ _militaryLoadoutData setVariable ["sidearms", [["uns_m1911", "", "", "", ["uns_m private _policeLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_policeLoadoutData setVariable ["uniforms", ["UNS_ARMY_BDU_716thMPBnpv1"]]; -_policeLoadoutData setVariable ["vests", ["uns_simc_56_ligt"]]; -_policeLoadoutData setVariable ["helmets", ["UNS_M1_MP"]]; +_policeLoadoutData set ["uniforms", ["UNS_ARMY_BDU_716thMPBnpv1"]]; +_policeLoadoutData set ["vests", ["uns_simc_56_ligt"]]; +_policeLoadoutData set ["helmets", ["UNS_M1_MP"]]; -_policeLoadoutData setVariable ["SMGs", [["uns_m870_mk1", "", "", "", ["uns_m870mag"], [], ""], +_policeLoadoutData set ["SMGs", [["uns_m870_mk1", "", "", "", ["uns_m870mag"], [], ""], ["uns_m3a1", "", "", "", ["uns_m3a1mag"], [], ""]]]; -_policeLoadoutData setVariable ["sidearms", [ +_policeLoadoutData set ["sidearms", [ ["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""] ]]; @@ -217,40 +217,40 @@ _policeLoadoutData setVariable ["sidearms", [ //////////////////////////////// private _militiaLoadoutData = _loadoutData call _fnc_copyLoadoutData; -_militiaLoadoutData setVariable ["uniforms", ["UNS_ARMY_BDU_65"]]; -_militiaLoadoutData setVariable ["vests", ["uns_simc_56","uns_simc_56_bandoleer","uns_simc_56_frag","uns_simc_56_M43","uns_v_simc_67_ass","uns_v_simc_67_frag_ass","uns_v_simc_67_45","uns_Simc_56_med"]]; -_militiaLoadoutData setVariable ["backpacks", ["uns_simc_pack_trop_1_alt","uns_simc_pack_trop_4_alt","uns_simc_MC_packboard_flak_rajio_2","uns_simc_pack_med_m5_flak","uns_simc_packboard_MG_2","uns_simc_packboard_mortar_1"]]; -_militiaLoadoutData setVariable ["helmets", ["UNS_M1_1","uns_simc_m1_bitch_op"]]; +_militiaLoadoutData set ["uniforms", ["UNS_ARMY_BDU_65"]]; +_militiaLoadoutData set ["vests", ["uns_simc_56","uns_simc_56_bandoleer","uns_simc_56_frag","uns_simc_56_M43","uns_v_simc_67_ass","uns_v_simc_67_frag_ass","uns_v_simc_67_45","uns_Simc_56_med"]]; +_militiaLoadoutData set ["backpacks", ["uns_simc_pack_trop_1_alt","uns_simc_pack_trop_4_alt","uns_simc_MC_packboard_flak_rajio_2","uns_simc_pack_med_m5_flak","uns_simc_packboard_MG_2","uns_simc_packboard_mortar_1"]]; +_militiaLoadoutData set ["helmets", ["UNS_M1_1","uns_simc_m1_bitch_op"]]; -_militiaLoadoutData setVariable ["rifles", [["uns_m16", "", "", "", ["uns_20Rnd_556x45_Stanag"], [], ""], +_militiaLoadoutData set ["rifles", [["uns_m16", "", "", "", ["uns_20Rnd_556x45_Stanag"], [], ""], ["uns_m14", "", "", "", ["uns_m14mag"], [], ""]]]; -_militiaLoadoutData setVariable ["carbines", [["uns_m1carbine_pouch", "", "", "", ["uns_m1carbinemag"], [], ""], +_militiaLoadoutData set ["carbines", [["uns_m1carbine_pouch", "", "", "", ["uns_m1carbinemag"], [], ""], ["uns_m1carbine", "", "", "", ["uns_m1carbinemag"], [], ""]]]; -_militiaLoadoutData setVariable ["grenadeLaunchers", [["uns_m79", "", "", "", ["Uns_1Rnd_HE_M381"], ["uns_1Rnd_Smoke_40mm"], ""], +_militiaLoadoutData set ["grenadeLaunchers", [["uns_m79", "", "", "", ["Uns_1Rnd_HE_M381"], ["uns_1Rnd_Smoke_40mm"], ""], ["uns_m1garand_gl", "", "", "", ["uns_m1garandmag"], ["Uns_1Rnd_22mm_M1a2_FRAG","Uns_1Rnd_22mm_HEAT"], ""]]]; -_militiaLoadoutData setVariable ["SMGs", [["uns_thompson", "", "", "", ["uns_thompsonmag_30"], [], ""], +_militiaLoadoutData set ["SMGs", [["uns_thompson", "", "", "", ["uns_thompsonmag_30"], [], ""], ["uns_m3a1", "", "", "", ["uns_m3a1mag"], [], ""]]]; -_militiaLoadoutData setVariable ["machineGuns", [["uns_bar", "", "", "", ["uns_barmag"], [], ""], +_militiaLoadoutData set ["machineGuns", [["uns_bar", "", "", "", ["uns_barmag"], [], ""], ["uns_m1919a6", "", "", "", ["uns_100Rnd_m1919"], [], ""]]]; -_militiaLoadoutData setVariable ["marksmanRifles", [["uns_m1garand", "", "", "uns_o_m84", ["uns_m1garandmag"], [], ""], +_militiaLoadoutData set ["marksmanRifles", [["uns_m1garand", "", "", "uns_o_m84", ["uns_m1garandmag"], [], ""], ["uns_m1garand", "", "", "", ["uns_m1garandmag"], [], ""]]]; -_militiaLoadoutData setVariable ["sniperRifles", [["uns_m1903", "", "", "", ["uns_springfieldmag_T"], [], ""], +_militiaLoadoutData set ["sniperRifles", [["uns_m1903", "", "", "", ["uns_springfieldmag_T"], [], ""], ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag_T"], [], ""]]]; -_militiaLoadoutData setVariable ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; +_militiaLoadoutData set ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; ////////////////////////// // Misc Loadouts // ////////////////////////// private _crewLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_crewLoadoutData setVariable ["uniforms", ["UNS_ARMY_BDU_S","UNS_ARMY_BDU_F"]]; -_crewLoadoutData setVariable ["vests", ["uns_simc_56_45_ligt_zusp"]]; -_crewLoadoutData setVariable ["helmets", ["UNS_TC_1","UNS_TC_2"]]; +_crewLoadoutData set ["uniforms", ["UNS_ARMY_BDU_S","UNS_ARMY_BDU_F"]]; +_crewLoadoutData set ["vests", ["uns_simc_56_45_ligt_zusp"]]; +_crewLoadoutData set ["helmets", ["UNS_TC_1","UNS_TC_2"]]; private _pilotLoadoutData = _militaryLoadoutData call _fnc_copyLoadoutData; -_pilotLoadoutData setVariable ["uniforms", ["UNS_JPilot_BDU","UNS_Pilot_BDU"]]; -_pilotLoadoutData setVariable ["vests", ["UNS_JP_Vest"]]; -_pilotLoadoutData setVariable ["helmets", ["UNS_JP_Helmet_352TFS","UNS_JP_Helmet_366TFW","UNS_JP_Helmet_389TFS","UNS_HP_Helmet_R33","UNS_HP_Helmet_R8","UNS_HP_Helmet_USA"]]; +_pilotLoadoutData set ["uniforms", ["UNS_JPilot_BDU","UNS_Pilot_BDU"]]; +_pilotLoadoutData set ["vests", ["UNS_JP_Vest"]]; +_pilotLoadoutData set ["helmets", ["UNS_JP_Helmet_352TFS","UNS_JP_Helmet_366TFW","UNS_JP_Helmet_389TFS","UNS_HP_Helmet_R33","UNS_HP_Helmet_R8","UNS_HP_Helmet_USA"]]; ///////////////////////////////// From 071e5c4d468abc1aaf2cba6a572636711518034f Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:19:42 +0000 Subject: [PATCH 15/25] Update Unsung_Reb_VC_Tropical.sqf --- .../UNSUNG/Unsung_Reb_VC_Tropical.sqf | 106 +++++++++--------- 1 file changed, 53 insertions(+), 53 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf index 79422f8977..aa00246903 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf @@ -106,40 +106,40 @@ if (A3A_hasTFARBeta && startWithLongRangeRadio) then {_initialRebelEquipment pus // Loadouts // ////////////////////////// private _loadoutData = call _fnc_createLoadoutData; -_loadoutData setVariable ["rifles", []]; //this line determines rifles -- Example: ["arifle_MX_F","arifle_MX_pointer_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["carbines", []]; //this line determines carbines -- Example: ["arifle_MXC_F","arifle_MXC_Holo_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["grenadeLaunchers", []]; //this line determines grenade launchers -- Example: ["arifle_MX_GL_ACO_F","arifle_MX_GL_ACO_pointer_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["SMGs", []]; //this line determines SMGs -- Example: ["SMG_01_F","SMG_01_Holo_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["machineGuns", []]; //this line determines machine guns -- Example: ["arifle_MX_SW_F","arifle_MX_SW_Hamr_pointer_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["marksmanRifles", []]; //this line determines markman rifles -- Example: ["arifle_MXM_F","arifle_MXM_Hamr_pointer_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["sniperRifles", []]; //this line determines sniper rifles -- Example: ["srifle_LRR_camo_F","srifle_LRR_camo_SOS_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["lightATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["ATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["missileATLaunchers", []]; //this line determines missile AT launchers -- Example: ["launch_B_Titan_short_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["AALaunchers", []]; //this line determines AA launchers -- Example: ["launch_B_Titan_F"] -- Array, can contain multiple assets -_loadoutData setVariable ["sidearms", []]; //this line determines handguns/sidearms -- Example: ["hgun_Pistol_heavy_01_F", "hgun_P07_F"] -- Array, can contain multiple assets - -_loadoutData setVariable ["ATMines", []]; //this line determines the AT mines which can be carried by units -- Example: ["ATMine_Range_Mag"] -- Array, can contain multiple assets -_loadoutData setVariable ["APMines", []]; //this line determines the APERS mines which can be carried by units -- Example: ["APERSMine_Range_Mag"] -- Array, can contain multiple assets -_loadoutData setVariable ["lightExplosives", []]; //this line determines light explosives -- Example: ["DemoCharge_Remote_Mag"] -- Array, can contain multiple assets -_loadoutData setVariable ["heavyExplosives", []]; //this line determines heavy explosives -- Example: ["SatchelCharge_Remote_Mag"] -- Array, can contain multiple assets - -_loadoutData setVariable ["antiInfantryGrenades", []]; //this line determines anti infantry grenades (frag and such) -- Example: ["HandGrenade","MiniGrenade"] -- Array, can contain multiple assets -_loadoutData setVariable ["antiTankGrenades", []]; //this line determines anti tank grenades. Leave empty when not available. -- Array, can contain multiple assets -_loadoutData setVariable ["smokeGrenades", []]; //this line determines smoke grenades -- Example: ["SmokeShell", "SmokeShellRed"] -- Array, can contain multiple assets +_loadoutData set ["rifles", []]; //this line determines rifles -- Example: ["arifle_MX_F","arifle_MX_pointer_F"] -- Array, can contain multiple assets +_loadoutData set ["carbines", []]; //this line determines carbines -- Example: ["arifle_MXC_F","arifle_MXC_Holo_F"] -- Array, can contain multiple assets +_loadoutData set ["grenadeLaunchers", []]; //this line determines grenade launchers -- Example: ["arifle_MX_GL_ACO_F","arifle_MX_GL_ACO_pointer_F"] -- Array, can contain multiple assets +_loadoutData set ["SMGs", []]; //this line determines SMGs -- Example: ["SMG_01_F","SMG_01_Holo_F"] -- Array, can contain multiple assets +_loadoutData set ["machineGuns", []]; //this line determines machine guns -- Example: ["arifle_MX_SW_F","arifle_MX_SW_Hamr_pointer_F"] -- Array, can contain multiple assets +_loadoutData set ["marksmanRifles", []]; //this line determines markman rifles -- Example: ["arifle_MXM_F","arifle_MXM_Hamr_pointer_F"] -- Array, can contain multiple assets +_loadoutData set ["sniperRifles", []]; //this line determines sniper rifles -- Example: ["srifle_LRR_camo_F","srifle_LRR_camo_SOS_F"] -- Array, can contain multiple assets +_loadoutData set ["lightATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets +_loadoutData set ["ATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets +_loadoutData set ["missileATLaunchers", []]; //this line determines missile AT launchers -- Example: ["launch_B_Titan_short_F"] -- Array, can contain multiple assets +_loadoutData set ["AALaunchers", []]; //this line determines AA launchers -- Example: ["launch_B_Titan_F"] -- Array, can contain multiple assets +_loadoutData set ["sidearms", []]; //this line determines handguns/sidearms -- Example: ["hgun_Pistol_heavy_01_F", "hgun_P07_F"] -- Array, can contain multiple assets + +_loadoutData set ["ATMines", []]; //this line determines the AT mines which can be carried by units -- Example: ["ATMine_Range_Mag"] -- Array, can contain multiple assets +_loadoutData set ["APMines", []]; //this line determines the APERS mines which can be carried by units -- Example: ["APERSMine_Range_Mag"] -- Array, can contain multiple assets +_loadoutData set ["lightExplosives", []]; //this line determines light explosives -- Example: ["DemoCharge_Remote_Mag"] -- Array, can contain multiple assets +_loadoutData set ["heavyExplosives", []]; //this line determines heavy explosives -- Example: ["SatchelCharge_Remote_Mag"] -- Array, can contain multiple assets + +_loadoutData set ["antiInfantryGrenades", []]; //this line determines anti infantry grenades (frag and such) -- Example: ["HandGrenade","MiniGrenade"] -- Array, can contain multiple assets +_loadoutData set ["antiTankGrenades", []]; //this line determines anti tank grenades. Leave empty when not available. -- Array, can contain multiple assets +_loadoutData set ["smokeGrenades", []]; //this line determines smoke grenades -- Example: ["SmokeShell", "SmokeShellRed"] -- Array, can contain multiple assets //Basic equipment. Shouldn't need touching most of the time. //Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) -_loadoutData setVariable ["maps", ["ItemMap"]]; -_loadoutData setVariable ["watches", ["ItemWatch"]]; -_loadoutData setVariable ["compasses", ["ItemCompass"]]; -_loadoutData setVariable ["radios", []]; -_loadoutData setVariable ["gpses", []]; -_loadoutData setVariable ["NVGs", []]; //this line determines NVGs -- Array, can contain multiple assets -_loadoutData setVariable ["binoculars", ["Binocular"]]; - -_loadoutData setVariable ["uniforms", [ +_loadoutData set ["maps", ["ItemMap"]]; +_loadoutData set ["watches", ["ItemWatch"]]; +_loadoutData set ["compasses", ["ItemCompass"]]; +_loadoutData set ["radios", []]; +_loadoutData set ["gpses", []]; +_loadoutData set ["NVGs", []]; //this line determines NVGs -- Array, can contain multiple assets +_loadoutData set ["binoculars", ["Binocular"]]; + +_loadoutData set ["uniforms", [ "UNS_VC_U", "UNS_VC_S", "UNS_VC_K", @@ -157,33 +157,33 @@ _loadoutData setVariable ["uniforms", [ "uns_U_Simc_vc_grun_1_trop", "uns_U_Simc_vc_grun_2", "uns_U_Simc_vc_grun_2_trop"]]; -_loadoutData setVariable ["vests", []]; -_loadoutData setVariable ["backpacks", []]; -_loadoutData setVariable ["longRangeRadios", []]; -_loadoutData setVariable ["helmets", []]; +_loadoutData set ["vests", []]; +_loadoutData set ["backpacks", []]; +_loadoutData set ["longRangeRadios", []]; +_loadoutData set ["helmets", []]; //Item *set* definitions. These are added in their entirety to unit loadouts. No randomisation is applied. -_loadoutData setVariable ["items_medical_basic", ["BASIC"] call A3A_fnc_itemset_medicalSupplies]; -_loadoutData setVariable ["items_medical_standard", ["STANDARD"] call A3A_fnc_itemset_medicalSupplies]; -_loadoutData setVariable ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalSupplies]; -_loadoutData setVariable ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; +_loadoutData set ["items_medical_basic", ["BASIC"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData set ["items_medical_standard", ["STANDARD"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData set ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData set ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; //Unit type specific item sets. Add or remove these, depending on the unit types in use. -_loadoutData setVariable ["items_squadleader_extras", []]; -_loadoutData setVariable ["items_rifleman_extras", []]; -_loadoutData setVariable ["items_medic_extras", []]; -_loadoutData setVariable ["items_grenadier_extras", []]; -_loadoutData setVariable ["items_explosivesExpert_extras", []]; -_loadoutData setVariable ["items_engineer_extras", ["Toolkit", "MineDetector"]]; -_loadoutData setVariable ["items_lat_extras", []]; -_loadoutData setVariable ["items_at_extras", []]; -_loadoutData setVariable ["items_aa_extras", []]; -_loadoutData setVariable ["items_machineGunner_extras", []]; -_loadoutData setVariable ["items_marksman_extras", []]; -_loadoutData setVariable ["items_sniper_extras", []]; -_loadoutData setVariable ["items_police_extras", []]; -_loadoutData setVariable ["items_crew_extras", []]; -_loadoutData setVariable ["items_unarmed_extras", []]; +_loadoutData set ["items_squadleader_extras", []]; +_loadoutData set ["items_rifleman_extras", []]; +_loadoutData set ["items_medic_extras", []]; +_loadoutData set ["items_grenadier_extras", []]; +_loadoutData set ["items_explosivesExpert_extras", []]; +_loadoutData set ["items_engineer_extras", ["Toolkit", "MineDetector"]]; +_loadoutData set ["items_lat_extras", []]; +_loadoutData set ["items_at_extras", []]; +_loadoutData set ["items_aa_extras", []]; +_loadoutData set ["items_machineGunner_extras", []]; +_loadoutData set ["items_marksman_extras", []]; +_loadoutData set ["items_sniper_extras", []]; +_loadoutData set ["items_police_extras", []]; +_loadoutData set ["items_crew_extras", []]; +_loadoutData set ["items_unarmed_extras", []]; //////////////////////// // Rebel Unit Types // From 2903a2fc41b7076c358cfa44c19925d307eda7bc Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:20:55 +0000 Subject: [PATCH 16/25] Update Unsung_Reb_VC_Tropical.sqf --- .../Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf index aa00246903..c8c119b94e 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf @@ -527,7 +527,7 @@ private _policeTemplate = { ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; - [selectRandom ["smgs", "carbines"]] call _fnc_setPrimary; + [selectRandom ["SMGs", "carbines"]] call _fnc_setPrimary; ["primary", 5] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; @@ -549,7 +549,7 @@ private _crewTemplate = { ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["smgs"] call _fnc_setPrimary; + ["SMGs"] call _fnc_setPrimary; ["primary", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; From 7cddbf95fcf4037b0df8f728422f25696c15fbe6 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:26:23 +0000 Subject: [PATCH 17/25] Update Unsung_AI_NVA_Tropical.sqf --- .../UNSUNG/Unsung_AI_NVA_Tropical.sqf | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf index bf34b4b810..6320833aa8 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf @@ -330,13 +330,13 @@ _pilotLoadoutData set ["helmets", ["UNS_NVA_PL","UNS_NVA_PLC"]]; private _squadLeaderTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["Hvests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; [selectRandom ["grenadeLaunchers", "rifles"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["primary", 4] call _fnc_addAdditionalMuzzleMagazines; ["sidearms"] call _fnc_setHandgun; @@ -347,7 +347,7 @@ private _squadLeaderTemplate = { ["items_miscEssentials"] call _fnc_addItemSet; ["antiInfantryGrenades", 2] call _fnc_addItem; ["smokeGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; + ["signalsmokeGrenades", 2] call _fnc_addItem; ["maps"] call _fnc_addMap; ["watches"] call _fnc_addWatch; @@ -362,10 +362,10 @@ private _riflemanTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -385,11 +385,11 @@ private _riflemanTemplate = { private _medicTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["Hvests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; - [selectRandom ["carbines", "SMGs"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + [selectRandom ["carbines", "SMGs"]] call _fnc_setPrimary; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -409,12 +409,12 @@ private _medicTemplate = { private _grenadierTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["glVests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; ["grenadeLaunchers"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["primary", 10] call _fnc_addAdditionalMuzzleMagazines; ["sidearms"] call _fnc_setHandgun; @@ -435,19 +435,19 @@ private _grenadierTemplate = { private _explosivesExpertTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["glVests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; ["items_medical_standard"] call _fnc_addItemSet; - ["items_grenadier_extras"] call _fnc_addItemSet; + ["items_explosivesExpert_extras"] call _fnc_addItemSet; ["items_miscEssentials"] call _fnc_addItemSet; ["lightExplosives", 2] call _fnc_addItem; @@ -472,7 +472,7 @@ private _engineerTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["carbines", "SMGs"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -500,11 +500,11 @@ private _latTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; [["lightATLaunchers", "ATLaunchers"] call _fnc_fallback] call _fnc_setLauncher; //TODO - Add a check if it's disposable. - ["launcher", 1] call _fnc_addMagazines; + ["launcher", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -529,11 +529,11 @@ private _atTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; [selectRandom ["ATLaunchers", "missileATLaunchers"]] call _fnc_setLauncher; //TODO - Add a check if it's disposable. - ["launcher", 2] call _fnc_addMagazines; + ["launcher", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -558,11 +558,11 @@ private _aaTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["AALaunchers"] call _fnc_setLauncher; //TODO - Add a check if it's disposable. - ["launcher", 2] call _fnc_addMagazines; + ["launcher", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -609,10 +609,10 @@ private _marksmanTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + ["marksmanRifles"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -627,7 +627,7 @@ private _marksmanTemplate = { ["watches"] call _fnc_addWatch; ["compasses"] call _fnc_addCompass; ["radios"] call _fnc_addRadio; - ["Rangefinder"] call _fnc_addBinoculars; + ["rangefinders"] call _fnc_addBinoculars; ["NVGs"] call _fnc_addNVGs; }; @@ -635,7 +635,7 @@ private _sniperTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + ["sniperRifles"] call _fnc_setPrimary; ["primary", 7] call _fnc_addMagazines; @@ -653,7 +653,7 @@ private _sniperTemplate = { ["watches"] call _fnc_addWatch; ["compasses"] call _fnc_addCompass; ["radios"] call _fnc_addRadio; - ["Rangefinder"] call _fnc_addBinoculars; + ["rangefinders"] call _fnc_addBinoculars; ["NVGs"] call _fnc_addNVGs; }; @@ -661,7 +661,7 @@ private _policeTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + ["SMGs"] call _fnc_setPrimary; ["primary", 3] call _fnc_addMagazines; @@ -784,7 +784,7 @@ private _unitTypes = [ //////////////////////// private _prefix = "police"; private _unitTypes = [ - ["SquadLeader", _squadLeaderTemplate], + ["SquadLeader", _policeTemplate], ["Standard", _policeTemplate] ]; @@ -823,3 +823,5 @@ private _unitTypes = [ ["other", [["Official", _policeTemplate]], _militaryLoadoutData] call _fnc_generateAndSaveUnitsToTemplate; //The following lines are determining the loadout for the AI used in the "kill the traitor" mission ["other", [["Traitor", _traitorTemplate]], _militaryLoadoutData] call _fnc_generateAndSaveUnitsToTemplate; +//The following lines are determining the loadout for the AI used in the "Invader Punishment" mission +["other", [["Unarmed", _UnarmedTemplate]], _militaryLoadoutData] call _fnc_generateAndSaveUnitsToTemplate; From 03ed89fe893082a6bf2ec16fb12396de7e22f4b8 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 13:40:36 +0000 Subject: [PATCH 18/25] Update Unsung_Logistics_Nodes.sqf --- .../Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf index f2a8a65943..03c0eacf49 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf @@ -115,8 +115,8 @@ A3A_logistics_attachmentOffset = [ //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 = [ - "uns_Mi8_VPAF_MG" call A3A_fnc_classNameToModel - , "uns_Mi8_VPAF" call A3A_fnc_classNameToModel + "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 From 5238e44b554c6e25eaf013e6045861667672e7c2 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 14:04:46 +0000 Subject: [PATCH 19/25] Update Unsung_Logistics_Nodes.sqf --- .../Templates/UNSUNG/Unsung_Logistics_Nodes.sqf | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf index 03c0eacf49..8c4d62c6c6 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf @@ -1,17 +1,18 @@ //Each element is: [model name, [nodes]] //Nodes are build like this: [Available(internal use, always 1), Hardpoint location, Seats locked when node is in use] A3A_logistics_vehicleHardpoints = [ - + //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]] ]], - //Small Truck + //Trucks ["uns_m35\uns_M35A2",[ [1,[0,-0.4,-0.5],[3,4]], [1,[0,-1.2,-0.5],[5,6,7,8]], @@ -33,10 +34,11 @@ A3A_logistics_vehicleHardpoints = [ [1,[0,-2.1,1.4],[7,8]] ]], - ["\A3\boat_f\Boat_Transport_01\Boat_Transport_01_F.p3d", [ - [1, [0,0.7575,-1.045], [0,1,2,3]], - [1, [0,-0.0725,-1.045], []] - ]], + //Boats + ["\A3\boat_f\Boat_Transport_01\Boat_Transport_01_F.p3d", [ + [1, [0,0.7575,-1.045], [0,1,2,3]], + [1, [0,-0.0725,-1.045], []] + ]], ["uns_boats\skiff\uns_skiff_1",[ [1,[0,0.6,-0.675],[0,1]] @@ -66,6 +68,7 @@ A3A_logistics_vehicleHardpoints = [ [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],[]], From 77d2150f08b0f69159bd7db3386ac0369b3a84fe Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 16:06:57 +0000 Subject: [PATCH 20/25] Update selector.sqf --- A3-Antistasi/Templates/selector.sqf | 1 + 1 file changed, 1 insertion(+) diff --git a/A3-Antistasi/Templates/selector.sqf b/A3-Antistasi/Templates/selector.sqf index 14b9ce74cf..61156cbcf8 100644 --- a/A3-Antistasi/Templates/selector.sqf +++ b/A3-Antistasi/Templates/selector.sqf @@ -107,6 +107,7 @@ private _autoPickCiv = { switch (true) do { case (A3A_has3CBFactions): { "Factions" }; case (A3A_hasRHS): { "RHS" }; + case (A3A_hasUNS): { "UNS" }; case (A3A_hasVN): { "VN" }; default { "Vanilla" }; }; From 0ed9b399e1f5143499befe97ad7e00ed759fadcc Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 16:11:58 +0000 Subject: [PATCH 21/25] Update Unsung_AI_US_Tropical.sqf --- .../Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf index 8c3dfd9efc..56051418d0 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf @@ -177,7 +177,7 @@ _sfLoadoutData set ["sidearms", [["uns_MX991_m1911SD_base", "uns_s_m1911", "uns_ private _militaryLoadoutData = _loadoutData call _fnc_copyLoadoutData; _militaryLoadoutData set ["uniforms", ["UNS_USMC_BDU_65"]]; -_militaryLoadoutData set ["vests", ["uns_simc_flak_55","uns_simc_flak_55_M61_79_belt","uns_simc_flak_55_bandoleer","uns_Simc_flak_55_M61_med","uns_simc_flak_55_M61","uns_flak_55_M61_60_2","uns_simc_flak_55_mk2_belt_open","uns_simc_flak_55_mk2_bandoleer_belt"]]; +_militaryLoadoutData set ["vests", ["uns_simc_flak_55","uns_simc_flak_55_M61_79_belt","uns_simc_flak_55_bandoleer","uns_Simc_flak_55_M61_med","uns_simc_flak_55_M61","uns_simc_flak_55_mk2_belt_open","uns_simc_flak_55_mk2_bandoleer_belt"]]; _militaryLoadoutData set ["backpacks", ["UNS_Alice_F1","UNS_Alice_FR","uns_simc_MC_rajio_flak_1","UNS_USMC_MED","UNS_USMC_R1","uns_simc_MC_packboard_flak_3"]]; _militaryLoadoutData set ["helmets", ["UNS_M1_2","uns_simc_m1_bitch_op"]]; _militaryLoadoutData set ["binoculars", ["uns_binocular_army"]]; From 4e038b3d977e438b1af2835957df0c3005d6b707 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sun, 28 Nov 2021 20:22:21 +0000 Subject: [PATCH 22/25] Update Unsung_AI_US_Tropical.sqf --- .../UNSUNG/Unsung_AI_US_Tropical.sqf | 56 ++++++++++--------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf index 56051418d0..39255649ce 100644 --- a/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3-Antistasi/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf @@ -264,13 +264,13 @@ _pilotLoadoutData set ["helmets", ["UNS_JP_Helmet_352TFS","UNS_JP_Helmet_366TFW" private _squadLeaderTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["Hvests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; [selectRandom ["grenadeLaunchers", "rifles"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["primary", 4] call _fnc_addAdditionalMuzzleMagazines; ["sidearms"] call _fnc_setHandgun; @@ -281,7 +281,7 @@ private _squadLeaderTemplate = { ["items_miscEssentials"] call _fnc_addItemSet; ["antiInfantryGrenades", 2] call _fnc_addItem; ["smokeGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; + ["signalsmokeGrenades", 2] call _fnc_addItem; ["maps"] call _fnc_addMap; ["watches"] call _fnc_addWatch; @@ -296,10 +296,10 @@ private _riflemanTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -319,11 +319,11 @@ private _riflemanTemplate = { private _medicTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["Hvests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; - [selectRandom ["carbines", "SMGs"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + [selectRandom ["carbines", "SMGs"]] call _fnc_setPrimary; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -343,12 +343,12 @@ private _medicTemplate = { private _grenadierTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["glVests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; ["grenadeLaunchers"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["primary", 10] call _fnc_addAdditionalMuzzleMagazines; ["sidearms"] call _fnc_setHandgun; @@ -369,19 +369,19 @@ private _grenadierTemplate = { private _explosivesExpertTemplate = { ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; + [["glVests", "vests"] call _fnc_fallback] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; ["items_medical_standard"] call _fnc_addItemSet; - ["items_grenadier_extras"] call _fnc_addItemSet; + ["items_explosivesExpert_extras"] call _fnc_addItemSet; ["items_miscEssentials"] call _fnc_addItemSet; ["lightExplosives", 2] call _fnc_addItem; @@ -406,7 +406,7 @@ private _engineerTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["carbines", "SMGs"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -434,11 +434,11 @@ private _latTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; [["lightATLaunchers", "ATLaunchers"] call _fnc_fallback] call _fnc_setLauncher; //TODO - Add a check if it's disposable. - ["launcher", 1] call _fnc_addMagazines; + ["launcher", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -463,11 +463,11 @@ private _atTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; [selectRandom ["ATLaunchers", "missileATLaunchers"]] call _fnc_setLauncher; //TODO - Add a check if it's disposable. - ["launcher", 2] call _fnc_addMagazines; + ["launcher", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -492,11 +492,11 @@ private _aaTemplate = { ["backpacks"] call _fnc_setBackpack; [selectRandom ["rifles", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["AALaunchers"] call _fnc_setLauncher; //TODO - Add a check if it's disposable. - ["launcher", 2] call _fnc_addMagazines; + ["launcher", 3] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -543,10 +543,10 @@ private _marksmanTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + ["marksmanRifles"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; + ["primary", 6] call _fnc_addMagazines; ["sidearms"] call _fnc_setHandgun; ["handgun", 2] call _fnc_addMagazines; @@ -561,7 +561,7 @@ private _marksmanTemplate = { ["watches"] call _fnc_addWatch; ["compasses"] call _fnc_addCompass; ["radios"] call _fnc_addRadio; - ["Rangefinder"] call _fnc_addBinoculars; + ["rangefinders"] call _fnc_addBinoculars; ["NVGs"] call _fnc_addNVGs; }; @@ -569,7 +569,7 @@ private _sniperTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + ["sniperRifles"] call _fnc_setPrimary; ["primary", 7] call _fnc_addMagazines; @@ -587,7 +587,7 @@ private _sniperTemplate = { ["watches"] call _fnc_addWatch; ["compasses"] call _fnc_addCompass; ["radios"] call _fnc_addRadio; - ["Rangefinder"] call _fnc_addBinoculars; + ["rangefinders"] call _fnc_addBinoculars; ["NVGs"] call _fnc_addNVGs; }; @@ -595,7 +595,7 @@ private _policeTemplate = { ["helmets"] call _fnc_setHelmet; ["vests"] call _fnc_setVest; ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; + ["SMGs"] call _fnc_setPrimary; ["primary", 3] call _fnc_addMagazines; @@ -718,7 +718,7 @@ private _unitTypes = [ //////////////////////// private _prefix = "police"; private _unitTypes = [ - ["SquadLeader", _squadLeaderTemplate], + ["SquadLeader", _policeTemplate], ["Standard", _policeTemplate] ]; @@ -757,3 +757,5 @@ private _unitTypes = [ ["other", [["Official", _policeTemplate]], _militaryLoadoutData] call _fnc_generateAndSaveUnitsToTemplate; //The following lines are determining the loadout for the AI used in the "kill the traitor" mission ["other", [["Traitor", _traitorTemplate]], _militaryLoadoutData] call _fnc_generateAndSaveUnitsToTemplate; +//The following lines are determining the loadout for the AI used in the "Invader Punishment" mission +["other", [["Unarmed", _UnarmedTemplate]], _militaryLoadoutData] call _fnc_generateAndSaveUnitsToTemplate; From 400d25a9d4dafaad33b07e9b5f41f496ab940751 Mon Sep 17 00:00:00 2001 From: stutpip123 <77023662+stutpip123@users.noreply.github.com> Date: Sat, 11 Dec 2021 16:59:56 +0000 Subject: [PATCH 23/25] Update fn_equipmentIsValidForCurrentModset.sqf --- .../fn_equipmentIsValidForCurrentModset.sqf | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/A3-Antistasi/functions/Ammunition/fn_equipmentIsValidForCurrentModset.sqf b/A3-Antistasi/functions/Ammunition/fn_equipmentIsValidForCurrentModset.sqf index 84382f7760..87522700a0 100644 --- a/A3-Antistasi/functions/Ammunition/fn_equipmentIsValidForCurrentModset.sqf +++ b/A3-Antistasi/functions/Ammunition/fn_equipmentIsValidForCurrentModset.sqf @@ -107,7 +107,35 @@ if (A3A_hasVN && {(_itemIsVanilla || _itemMod in _acemods || _itemMod in _TFARmo default { true }; }; }; - +if (A3A_hasUNS && {(_itemIsVanilla || _itemMod in _acemods || _itemMod in _TFARmods)}) exitWith { + switch (_categories select 0) do { + case "Item": { + switch (_categories select 1) do { + case "AccessoryMuzzle"; + case "AccessoryPointer"; + case "AccessorySights"; + case "AccessoryBipod"; + case "Binocular"; + case "Compass"; + case "GPS"; + case "LaserDesignator"; + case "MineDetector"; + case "NVGoggles"; + case "Radio"; + case "UAVTerminal"; + case "Compasses"; + case "Unknown"; + case "Watch": { false }; + default { true }; + }; + }; + case "Weapon"; + case "Equipment"; + case "Magazine"; + case "Mine": { false }; + default { true }; + }; +}; //no other CDLC content when using VN if (A3A_hasVN && {toLower _itemMod isNotEqualTo "vn"} && {toLower _itemMod in (allCDLC apply {toLower (_x#1)})}) exitWith {false}; From b0659ae46f68e90bc3f92e20f1a773314c0aa8ab Mon Sep 17 00:00:00 2001 From: Lazejun <57111907+Lazejun@users.noreply.github.com> Date: Wed, 9 Mar 2022 21:43:13 +0100 Subject: [PATCH 24/25] Update Templates.hpp --- A3A/addons/core/Templates/Templates.hpp | 35 +++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/A3A/addons/core/Templates/Templates.hpp b/A3A/addons/core/Templates/Templates.hpp index 2300fcb2ae..cd78056d84 100644 --- a/A3A/addons/core/Templates/Templates.hpp +++ b/A3A/addons/core/Templates/Templates.hpp @@ -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"}; + }; }; From 17bc24848fcf8cbac2d5ed6b5fe500e7532e5a6e Mon Sep 17 00:00:00 2001 From: Lazejun <57111907+Lazejun@users.noreply.github.com> Date: Wed, 9 Mar 2022 21:43:44 +0100 Subject: [PATCH 25/25] Renaming/Small changes to files to work --- .../UNS_AI_NVA.sqf} | 47 +- .../UNS_AI_US.sqf} | 25 +- .../core/Templates/Templates/UNS/UNS_Civ.sqf | 110 ++++ .../Templates/UNS/UNS_Logistics_Nodes.sqf | 127 ++++ .../Templates/Templates/UNS/UNS_Reb_VC.sqf | 157 +++++ .../Templates/Templates/UNSUNG/Unsung_Civ.sqf | 48 -- .../UNSUNG/Unsung_Logistics_Nodes.sqf | 140 ---- .../UNSUNG/Unsung_Reb_VC_Tropical.sqf | 604 ------------------ 8 files changed, 439 insertions(+), 819 deletions(-) rename A3A/addons/core/Templates/Templates/{UNSUNG/Unsung_AI_NVA_Tropical.sqf => UNS/UNS_AI_NVA.sqf} (96%) rename A3A/addons/core/Templates/Templates/{UNSUNG/Unsung_AI_US_Tropical.sqf => UNS/UNS_AI_US.sqf} (98%) create mode 100644 A3A/addons/core/Templates/Templates/UNS/UNS_Civ.sqf create mode 100644 A3A/addons/core/Templates/Templates/UNS/UNS_Logistics_Nodes.sqf create mode 100644 A3A/addons/core/Templates/Templates/UNS/UNS_Reb_VC.sqf delete mode 100644 A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Civ.sqf delete mode 100644 A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf delete mode 100644 A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf diff --git a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf b/A3A/addons/core/Templates/Templates/UNS/UNS_AI_NVA.sqf similarity index 96% rename from A3A/addons/core/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf rename to A3A/addons/core/Templates/Templates/UNS/UNS_AI_NVA.sqf index 6320833aa8..98a9f086b8 100644 --- a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_AI_NVA_Tropical.sqf +++ b/A3A/addons/core/Templates/Templates/UNS/UNS_AI_NVA.sqf @@ -2,8 +2,8 @@ // Side Information // ////////////////////////// -["name", "NV Army"] call _fnc_saveToTemplate; -["spawnMarkerName", "NV Reinforcements"] call _fnc_saveToTemplate; +["name", "NVA"] call _fnc_saveToTemplate; +["spawnMarkerName", "NVA Reinforcements"] call _fnc_saveToTemplate; ["flag", "uns_FlagCarrierNVA"] call _fnc_saveToTemplate; ["flagTexture", "\uns_flags\flag_pavn_co.paa"] call _fnc_saveToTemplate; @@ -50,8 +50,8 @@ ["uns_m110sp",["uns_30Rnd_203mmHE"]] ]] call _fnc_saveToTemplate; //element format: [Vehicle class, [Magazines]] -["uavsAttack", ["not_supported"]] call _fnc_saveToTemplate; -["uavsPortable", ["not_supported"]] call _fnc_saveToTemplate; +["uavsAttack", []] call _fnc_saveToTemplate; +["uavsPortable", []] call _fnc_saveToTemplate; //Config special vehicles ["vehiclesMilitiaLightArmed", ["uns_Type55_LMG"]] call _fnc_saveToTemplate; @@ -85,8 +85,10 @@ _loadoutData set ["machineGuns", []]; _loadoutData set ["marksmanRifles", []]; _loadoutData set ["sniperRifles", []]; -_loadoutData set ["lightATLaunchers", [["uns_rpg2", "", "", "", ["uns_rpg2grenade"], [], ""], -["uns_B40", "", "", "", ["uns_B40grenade"], [], ""]]]; +_loadoutData set ["lightATLaunchers", [ +["uns_rpg2", "", "", "", ["uns_rpg2grenade"], [], ""], +["uns_B40", "", "", "", ["uns_B40grenade"], [], ""] +]]; _loadoutData set ["ATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; _loadoutData set ["missileATLaunchers", [["uns_rpg7", "", "", "", ["uns_rpg7grenade"], [], ""]]]; _loadoutData set ["AALaunchers", [["uns_sa7b", "", "", "", ["uns_sa7bmag"], [], ""]]]; @@ -108,8 +110,6 @@ _loadoutData set ["maps", ["ItemMap"]]; _loadoutData set ["watches", ["ItemWatch"]]; _loadoutData set ["compasses", ["ItemCompass"]]; _loadoutData set ["radios", ["UNS_ItemRadio_T884_TFAR"]]; -_loadoutData set ["gpses", [""]]; -_loadoutData set ["NVGs", [""]]; _loadoutData set ["binoculars", ["Binocular"]]; _loadoutData set ["rangefinder", ["uns_ANPVS2"]]; @@ -126,18 +126,27 @@ _loadoutData set ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalS _loadoutData set ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; //Unit type specific item sets. Add or remove these, depending on the unit types in use. -_loadoutData set ["items_squadleader_extras", []]; + +private _eeItems = ["ToolKit", "UNS_TrapKit"]; +private _mmItems = []; + +if (A3A_hasACE) then { + _eeItems append ["ACE_Clacker", "ACE_DefusalKit"]; + _mmItems append ["ACE_RangeCard"]; +}; + +_loadoutData set ["items_squadLeader_extras", []]; _loadoutData set ["items_rifleman_extras", []]; _loadoutData set ["items_medic_extras", []]; _loadoutData set ["items_grenadier_extras", []]; -_loadoutData set ["items_explosivesExpert_extras", ["ToolKit", "MineDetector"]]; -_loadoutData set ["items_engineer_extras", ["ToolKit", "MineDetector"]]; +_loadoutData set ["items_explosivesExpert_extras", _eeItems]; +_loadoutData set ["items_engineer_extras", _eeItems]; _loadoutData set ["items_lat_extras", []]; _loadoutData set ["items_at_extras", []]; _loadoutData set ["items_aa_extras", []]; _loadoutData set ["items_machineGunner_extras", []]; -_loadoutData set ["items_marksman_extras", []]; -_loadoutData set ["items_sniper_extras", []]; +_loadoutData set ["items_marksman_extras", _mmItems]; +_loadoutData set ["items_sniper_extras", _mmItems]; _loadoutData set ["items_police_extras", []]; _loadoutData set ["items_crew_extras", []]; _loadoutData set ["items_unarmed_extras", []]; @@ -168,8 +177,8 @@ _sfLoadoutData set ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"], [], ["uns_RPK_drum", "", "", "", ["uns_75Rnd_akdr"], [], ""], ["uns_PK", "", "", "", ["uns_100Rnd_762x54_PK"], [], ""], ["uns_RPK_40", "", "", "", ["uns_rpkmag"], [], ""]]]; -_sfLoadoutData set ["marksmanRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; -_sfLoadoutData set ["sniperRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_pso1_camo", ["uns_svdmag"], [], ""]]]; +_sfLoadoutData set ["marksmanRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_PSO1_camo", ["uns_svdmag"], [], ""]]]; +_sfLoadoutData set ["sniperRifles", [["uns_SVD_CAMO_base", "", "", "uns_o_PSO1_camo", ["uns_svdmag"], [], ""]]]; _sfLoadoutData set ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], @@ -225,12 +234,12 @@ _militaryLoadoutData set ["machineGuns", [["uns_rpd", "", "", "", ["uns_rpdmag"] ["uns_RPK_drum", "", "", "", ["uns_75Rnd_akdr"], [], ""], ["uns_PK", "", "", "", ["uns_100Rnd_762x54_PK"], [], ""], ["uns_RPK_40", "", "", "", ["uns_rpkmag"], [], ""]]]; -_militaryLoadoutData set ["marksmanRifles", [["uns_svd_base", "", "", "uns_o_pso1", ["uns_svdmag_T"], [], ""], +_militaryLoadoutData set ["marksmanRifles", [["uns_svd_base", "", "", "uns_o_PSO1", ["uns_svdmag_T"], [], ""], ["uns_mas4956", "", "", "uns_o_apxsom", ["uns_mas4956mag"], [], ""]]]; -_militaryLoadoutData set ["sniperRifles", [["uns_mosin", "", "", "uns_o_pu", ["uns_mosinmag_T"], [], ""], +_militaryLoadoutData set ["sniperRifles", [["uns_mosin", "", "", "uns_o_PU", ["uns_mosinmag_T"], [], ""], ["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], ["uns_type99", "", "", "uns_o_akatihi4x", ["uns_type99mag"], [], ""], - ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag"], [], ""]]]; + ["uns_m1903", "", "", "uns_o_Unertl8x", ["uns_springfieldmag"], [], ""]]]; _militaryLoadoutData set ["sidearms", [["uns_sa61_p", "", "", "", ["uns_20Rnd_sa61_pa"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], ["uns_p64", "", "", "", ["uns_6Rnd_czak"], [], ""], @@ -299,7 +308,7 @@ _militiaLoadoutData set ["machineGuns", [["uns_MG42", "", "", "", ["uns_50Rnd_79 ["uns_m1919a6", "", "", "", ["uns_100Rnd_m1919"], [], ""]]]; _militiaLoadoutData set ["marksmanRifles", [["uns_kar98k", "", "", "uns_o_zf41", ["uns_kar98kmag"], [], ""], ["uns_type99", "", "", "uns_o_akatihi4x", ["uns_type99mag"], [], ""], - ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag"], [], ""]]]; + ["uns_m1903", "", "", "uns_o_Unertl8x", ["uns_springfieldmag"], [], ""]]]; _militiaLoadoutData set ["sidearms", [["uns_Tt33", "", "", "", ["uns_tokarevmag"], [], ""], ["uns_sw_m10", "", "", "", ["uns_38specmag"], [], ""], ["uns_tt30", "", "", "", ["uns_tokarevmag"], [], ""]]]; diff --git a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf b/A3A/addons/core/Templates/Templates/UNS/UNS_AI_US.sqf similarity index 98% rename from A3A/addons/core/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf rename to A3A/addons/core/Templates/Templates/UNS/UNS_AI_US.sqf index 39255649ce..63069fa5de 100644 --- a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_AI_US_Tropical.sqf +++ b/A3A/addons/core/Templates/Templates/UNS/UNS_AI_US.sqf @@ -50,8 +50,8 @@ ["uns_m110sp",["uns_30Rnd_203mmHE"]] ]] call _fnc_saveToTemplate; //element format: [Vehicle class, [Magazines]] -["uavsAttack", ["not_supported"]] call _fnc_saveToTemplate; -["uavsPortable", ["not_supported"]] call _fnc_saveToTemplate; +["uavsAttack", []] call _fnc_saveToTemplate; +["uavsPortable", []] call _fnc_saveToTemplate; //Config special vehicles ["vehiclesMilitiaLightArmed", ["uns_m274_m60"]] call _fnc_saveToTemplate; @@ -125,18 +125,27 @@ _loadoutData set ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalS _loadoutData set ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; //Unit type specific item sets. Add or remove these, depending on the unit types in use. -_loadoutData set ["items_squadleader_extras", []]; + +private _eeItems = ["ToolKit", "UNS_TrapKit"]; +private _mmItems = []; + +if (A3A_hasACE) then { + _eeItems append ["ACE_Clacker", "ACE_DefusalKit"]; + _mmItems append ["ACE_RangeCard"]; +}; + +_loadoutData set ["items_squadLeader_extras", []]; _loadoutData set ["items_rifleman_extras", []]; _loadoutData set ["items_medic_extras", []]; _loadoutData set ["items_grenadier_extras", []]; -_loadoutData set ["items_explosivesExpert_extras", ["ToolKit", "MineDetector"]]; -_loadoutData set ["items_engineer_extras", ["ToolKit", "MineDetector"]]; +_loadoutData set ["items_explosivesExpert_extras", _eeItems]; +_loadoutData set ["items_engineer_extras", _eeItems]; _loadoutData set ["items_lat_extras", []]; _loadoutData set ["items_at_extras", []]; _loadoutData set ["items_aa_extras", []]; _loadoutData set ["items_machineGunner_extras", []]; -_loadoutData set ["items_marksman_extras", []]; -_loadoutData set ["items_sniper_extras", []]; +_loadoutData set ["items_marksman_extras", _mmItems]; +_loadoutData set ["items_sniper_extras", _mmItems]; _loadoutData set ["items_police_extras", []]; _loadoutData set ["items_crew_extras", []]; _loadoutData set ["items_unarmed_extras", []]; @@ -235,7 +244,7 @@ _militiaLoadoutData set ["machineGuns", [["uns_bar", "", "", "", ["uns_barmag"], _militiaLoadoutData set ["marksmanRifles", [["uns_m1garand", "", "", "uns_o_m84", ["uns_m1garandmag"], [], ""], ["uns_m1garand", "", "", "", ["uns_m1garandmag"], [], ""]]]; _militiaLoadoutData set ["sniperRifles", [["uns_m1903", "", "", "", ["uns_springfieldmag_T"], [], ""], - ["uns_m1903", "", "", "uns_o_unertl8x", ["uns_springfieldmag_T"], [], ""]]]; + ["uns_m1903", "", "", "uns_o_Unertl8x", ["uns_springfieldmag_T"], [], ""]]]; _militiaLoadoutData set ["sidearms", [["uns_m1911", "", "", "", ["uns_m1911mag"], [], ""]]]; ////////////////////////// diff --git a/A3A/addons/core/Templates/Templates/UNS/UNS_Civ.sqf b/A3A/addons/core/Templates/Templates/UNS/UNS_Civ.sqf new file mode 100644 index 0000000000..ebdaa8fcfb --- /dev/null +++ b/A3A/addons/core/Templates/Templates/UNS/UNS_Civ.sqf @@ -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; \ No newline at end of file diff --git a/A3A/addons/core/Templates/Templates/UNS/UNS_Logistics_Nodes.sqf b/A3A/addons/core/Templates/Templates/UNS/UNS_Logistics_Nodes.sqf new file mode 100644 index 0000000000..5844d4b1a5 --- /dev/null +++ b/A3A/addons/core/Templates/Templates/UNS/UNS_Logistics_Nodes.sqf @@ -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]] +]; \ No newline at end of file diff --git a/A3A/addons/core/Templates/Templates/UNS/UNS_Reb_VC.sqf b/A3A/addons/core/Templates/Templates/UNS/UNS_Reb_VC.sqf new file mode 100644 index 0000000000..b7a9428716 --- /dev/null +++ b/A3A/addons/core/Templates/Templates/UNS/UNS_Reb_VC.sqf @@ -0,0 +1,157 @@ +/////////////////////////// +// Rebel Information // +/////////////////////////// + +["name", "VC"] call _fnc_saveToTemplate; + +["flag", "uns_FlagCarrierVC"] call _fnc_saveToTemplate; +["flagTexture", "\uns_flags\flag_vc_co.paa"] call _fnc_saveToTemplate; +["flagMarkerType", "Faction_UNS_VC"] call _fnc_saveToTemplate; + +["vehicleBasic", "uns_m274"] call _fnc_saveToTemplate; +["vehicleLightUnarmed", "uns_Type55"] call _fnc_saveToTemplate; +["vehicleLightArmed", "uns_Type55_LMG"] call _fnc_saveToTemplate; +["vehicleTruck", "uns_nvatruck_open"] call _fnc_saveToTemplate; +["vehicleAT", "uns_Type55_RR57"] call _fnc_saveToTemplate; +["vehicleAA", "uns_nvatruck_zpu"] call _fnc_saveToTemplate; + +["vehicleBoat", "UNS_VC_Sampan_Transport"] call _fnc_saveToTemplate; +["vehicleRepair", "uns_zil157_repair"] call _fnc_saveToTemplate; + +["vehiclePlane", "uns_an2"] call _fnc_saveToTemplate; + +["vehicleCivCar", "uns_willys"] call _fnc_saveToTemplate; +["vehicleCivTruck", "uns_zil157"] call _fnc_saveToTemplate; +["vehicleCivHeli", ""] call _fnc_saveToTemplate; +["vehicleCivBoat", "UNS_skiff2_C"] call _fnc_saveToTemplate; + +["staticMG", "uns_pk_high_VC"] call _fnc_saveToTemplate; +["staticAT", "uns_Type36_57mm_VC"] call _fnc_saveToTemplate; +["staticAA", "uns_ZPU2_VC"] call _fnc_saveToTemplate; +["staticMortar", "uns_m1941_82mm_mortarVC"] call _fnc_saveToTemplate; +["staticMortarMagHE", "uns_8Rnd_82mmHE_M1941"] call _fnc_saveToTemplate; +["staticMortarMagSmoke", "uns_8Rnd_82mmSMOKE_M1941"] call _fnc_saveToTemplate; + +["mineAT", "uns_mine_AT_mag"] call _fnc_saveToTemplate; +["mineAPERS", "uns_mine_AP_mag"] call _fnc_saveToTemplate; + +["breachingExplosivesAPC", [["uns_M118_mag_remote", 1],["PipeBomb", 1]]] call _fnc_saveToTemplate; +["breachingExplosivesTank", [["PipeBomb", 2],["uns_M118_mag_remote", 2],["uns_mine_TM_mag", 1]]] call _fnc_saveToTemplate; + +/////////////////////////// +// Rebel Starting Gear // +/////////////////////////// + +private _initialRebelEquipment = [ +"uns_baikal","uns_mosin","uns_kar98k","uns_mas36","uns_type99","uns_nagant_m1895", +"uns_12gaugemag_2","uns_mosinmag","uns_kar98kmag","uns_mas36mag","uns_type99mag","uns_nagant_m1895mag","uns_f1gren","uns_molotov_mag","uns_rdg2", +"uns_men_NVA_65_AS3_Bag","uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","UNS_VC_R1", +"uns_vc_chestrig","UNS_VC_A2", +"Binocular"]; + +if (A3A_hasTFAR) then {_initialRebelEquipment append ["tf_microdagr","UNS_ItemRadio_PRC_90_TFAR"]}; +if (A3A_hasTFAR && startWithLongRangeRadio) then {_initialRebelEquipment pushBack "UNS_USMC_RTO"}; +if (A3A_hasTFARBeta) then {_initialRebelEquipment append ["TFAR_microdagr","UNS_ItemRadio_PRC_90_TFAR"]}; +if (A3A_hasTFARBeta && startWithLongRangeRadio) then {_initialRebelEquipment pushBack "UNS_USMC_RTO"}; + +["initialRebelEquipment", _initialRebelEquipment] call _fnc_saveToTemplate; + +private _rebUniforms = [ + "UNS_VC_U", + "UNS_VC_S", + "UNS_VC_K", + "UNS_VC_B", + "UNS_VC_G", + "uns_U_Simc_vc_black_1", + "uns_U_Simc_vc_black_1_trop", + "uns_U_Simc_vc_black_2", + "uns_U_Simc_vc_black_2_trop", + "uns_U_Simc_vc_blau_1_trop", + "uns_U_Simc_vc_blau_2", + "uns_U_Simc_vc_blau_2_trop", + "uns_U_Simc_vc_blau_1", + "uns_U_Simc_vc_grun_1", + "uns_U_Simc_vc_grun_1_trop", + "uns_U_Simc_vc_grun_2", + "uns_U_Simc_vc_grun_2_trop" +]; + +["uniforms", _rebUniforms] call _fnc_saveToTemplate; + +["headgear", [ + "UNS_Boonie_VC", + "UNS_Headband_VC", + "UNS_Conehat_VC", + "uns_vc_headband_blue", + "UNS_Boonie2_VC", + "UNS_Boonie3_VC", + "UNS_Boonie4_VC", + "uns_sas_booniehat_vc_tan", + "uns_sas_booniehat_vc", + "uns_H_Simc_nasi" +]] call _fnc_saveToTemplate; + +////////////////////////// +// Loadouts // +////////////////////////// + +private _loadoutData = call _fnc_createLoadoutData; +_loadoutData set ["maps", ["ItemMap"]]; +_loadoutData set ["watches", ["ItemWatch"]]; +_loadoutData set ["compasses", ["ItemCompass"]]; +_loadoutData set ["binoculars", ["Binocular"]]; + +_loadoutData set ["uniforms", _rebUniforms]; + +_loadoutData set ["items_medical_basic", ["BASIC"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData set ["items_medical_standard", ["STANDARD"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData set ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalSupplies]; +_loadoutData set ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; + +//////////////////////// +// Rebel Unit Types // +///////////////////////. + +private _squadLeaderTemplate = { + ["uniforms"] call _fnc_setUniform; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; + ["binoculars"] call _fnc_addBinoculars; +}; + +private _riflemanTemplate = { + ["uniforms"] call _fnc_setUniform; + + ["items_medical_standard"] call _fnc_addItemSet; + ["items_miscEssentials"] call _fnc_addItemSet; + + ["maps"] call _fnc_addMap; + ["watches"] call _fnc_addWatch; + ["compasses"] call _fnc_addCompass; +}; + +private _prefix = "militia"; +private _unitTypes = [ + ["Petros", _squadLeaderTemplate], + ["SquadLeader", _squadLeaderTemplate], + ["Rifleman", _riflemanTemplate], + ["staticCrew", _riflemanTemplate], + ["Medic", _riflemanTemplate, [["medic", true]]], + ["Engineer", _riflemanTemplate, [["engineer", true]]], + ["ExplosivesExpert", _riflemanTemplate, [["explosiveSpecialist", true]]], + ["Grenadier", _riflemanTemplate], + ["LAT", _riflemanTemplate], + ["AT", _riflemanTemplate], + ["AA", _riflemanTemplate], + ["MachineGunner", _riflemanTemplate], + ["Marksman", _riflemanTemplate], + ["Sniper", _riflemanTemplate], + ["Unarmed", _riflemanTemplate] +]; + +[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate; diff --git a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Civ.sqf b/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Civ.sqf deleted file mode 100644 index b18bc8f6e2..0000000000 --- a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Civ.sqf +++ /dev/null @@ -1,48 +0,0 @@ -////////////////////////// -// Loadout // -////////////////////////// - -["uniforms", [ - "UNS_CIV_U", - "UNS_CIV_B" -]] call _fnc_saveToTemplate; - -["headgear", [ - "uns_H_Simc_nasi", - "UNS_Conehat_VC", - "UNS_Headband_BK", - "UNS_Boonie_VC", - "uns_sas_booniehat_vc_tan", - "UNS_Boonie3_VC" -]] call _fnc_saveToTemplate; - -////////////////////////// -// 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; \ No newline at end of file diff --git a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf b/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf deleted file mode 100644 index 8c4d62c6c6..0000000000 --- a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Logistics_Nodes.sqf +++ /dev/null @@ -1,140 +0,0 @@ -//Each element is: [model name, [nodes]] -//Nodes are build like this: [Available(internal use, always 1), Hardpoint location, Seats locked when node is in use] -A3A_logistics_vehicleHardpoints = [ - //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 - ["\A3\boat_f\Boat_Transport_01\Boat_Transport_01_F.p3d", [ - [1, [0,0.7575,-1.045], [0,1,2,3]], - [1, [0,-0.0725,-1.045], []] - ]], - - ["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 = [ - //weapons //location //rotation //size //recoil //description - ["uns_dshk_high_VC" call A3A_fnc_classNameToModel, [0.2, -1.2, 1.7], [0, 1, 0], 4, 100], //Static GMG High - ["uns_m2_high" call A3A_fnc_classNameToModel, [0, -1, 0], [0, 1, 0], 4, 100], //Static HMG High - ["uns_pk_high_VC" call A3A_fnc_classNameToModel, [0, -1, 0], [0, 0, 0], 4, 100], //Static HMG - ["uns_m1941_82mm_mortarVC" call A3A_fnc_classNameToModel, [-0.1,-1,0.74], [0, 1, 0], 3, 2000], //Mortar - ["uns_m1941_82mm_mortarNVA" call A3A_fnc_classNameToModel, [-0.1,-1,0.74], [0, 1, 0], 3, 2000], //Mortar - ["uns_M2_60mm_mortar" call A3A_fnc_classNameToModel, [-0.1,-1,0.74], [0, 1, 0], 3, 2000], //Mortar - - //medium sized crates - - //small sized crates //location //rotation //size //description - ["Box_NATO_Equip_F" call A3A_fnc_classNameToModel, [0,0,0.37], [1,0,0], 1], //Equipment box - ["\A3\weapons_F\AmmoBoxes\WpnsBox_F", [0,0,0.17], [0,1,0], 1] //surrender crates -]; - -//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 = [ - "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 = [ - //vanilla - ["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]] -]; diff --git a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf b/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf deleted file mode 100644 index c8c119b94e..0000000000 --- a/A3A/addons/core/Templates/Templates/UNSUNG/Unsung_Reb_VC_Tropical.sqf +++ /dev/null @@ -1,604 +0,0 @@ -/////////////////////////// -// Rebel Information // -/////////////////////////// - -["name", "Viet Cong"] call _fnc_saveToTemplate; //this line determines the faction name -- Example: ["name", "NATO"] - ENTER ONLY ONE OPTION - -["flag", "uns_FlagCarrierVC"] call _fnc_saveToTemplate; //this line determines the flag -- Example: ["flag", "Flag_NATO_F"] - ENTER ONLY ONE OPTION -["flagTexture", "\uns_flags\flag_vc_co.paa"] call _fnc_saveToTemplate; //this line determines the flag texture -- Example: ["flagTexture", "\A3\Data_F\Flags\Flag_NATO_CO.paa"] - ENTER ONLY ONE OPTION -["flagMarkerType", "Faction_UNS_VC"] call _fnc_saveToTemplate; //this line determines the flag marker type -- Example: ["flagMarkerType", "flag_NATO"] - ENTER ONLY ONE OPTION - -["vehicleBasic", "uns_willys_2_usmc"] call _fnc_saveToTemplate; //this line determines basic vehicles, the lightest kind available. -- Example: ["vehiclesBasic", ["B_Quadbike_01_F"]] -- Array, can contain multiple assets -["vehicleLightUnarmed", "uns_Type55"] call _fnc_saveToTemplate; //this line determines light and unarmed vehicles. -- Example: ["vehiclesLightUnarmed", ["B_MRAP_01_F"]] -- Array, can contain multiple assets -["vehicleLightArmed", "uns_Type55_LMG"] call _fnc_saveToTemplate; //this line determines light and armed vehicles -- Example: ["vehiclesLightArmed",["B_MRAP_01_hmg_F","B_MRAP_01_gmg_F"]] -- Array, can contain multiple assets -["vehicleTruck", "uns_nvatruck_open"] call _fnc_saveToTemplate; //this line determines the trucks -- Example: ["vehiclesTrucks", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] -- Array, can contain multiple assets -["vehicleAT", "uns_Type55_RR57"] call _fnc_saveToTemplate; //this line determines AT vehicle -- Example: ["vehiclesCargoTrucks", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] -- Array, can contain multiple assets -["vehicleAA", "uns_nvatruck_zpu"] call _fnc_saveToTemplate; //this line determines AA vehicle -- Example: ["vehiclesCargoTrucks", ["B_Truck_01_transport_F","B_Truck_01_covered_F"]] -- Array, can contain multiple assets - -["vehicleBoat", "UNS_VC_Sampan_Transport"] call _fnc_saveToTemplate; //this line determines transport boats -- Example: ["vehiclesTransportBoats", ["B_Boat_Transport_01_F"]] -- Array, can contain multiple assets -["vehicleRepair", "uns_zil157_repair"] call _fnc_saveToTemplate; //this line determines gun boats -- Example: ["vehiclesGunboats", ["B_Boat_Armed_01_minigun_F"]] -- Array, can contain multiple assets - -["vehiclePlane", "uns_Mig21_CAS"] call _fnc_saveToTemplate; //this line determines CAS planes -- Example: ["vehiclesPlanesCAS", ["B_Plane_CAS_01_dynamicLoadout_F"]] -- Array, can contain multiple assets -["vehicleHeli", "uns_Mi8T_VPAF"] call _fnc_saveToTemplate; //this line determines light helis -- Example: ["vehiclesHelisLight", ["B_Heli_Light_01_F"]] -- Array, can contain multiple assets - -["vehicleCivCar", "uns_willys"] call _fnc_saveToTemplate; -["vehicleCivTruck", "uns_zil157"] call _fnc_saveToTemplate; -["vehicleCivHeli", "uns_skymaster_civ_blue"] call _fnc_saveToTemplate; -["vehicleCivBoat", "UNS_skiff2_C"] call _fnc_saveToTemplate; - -["staticMG", "uns_pk_high_VC"] call _fnc_saveToTemplate; //this line determines static MGs -- Example: ["staticMG", ["B_HMG_01_high_F"]] -- Array, can contain multiple assets -["staticAT", "uns_Type36_57mm_VC"] call _fnc_saveToTemplate; //this line determinesstatic ATs -- Example: ["staticAT", ["B_static_AT_F"]] -- Array, can contain multiple assets -["staticAA", "uns_ZPU2_VC"] call _fnc_saveToTemplate; //this line determines static AAs -- Example: ["staticAA", ["B_static_AA_F"]] -- Array, can contain multiple assets -["staticMortar", "uns_m1941_82mm_mortarVC"] call _fnc_saveToTemplate; //this line determines static mortars -- Example: ["staticMortar", ["B_Mortar_01_F"]] -- Array, can contain multiple assets -["staticMortarMagHE", "uns_8Rnd_82mmHE_M1941"] call _fnc_saveToTemplate; -["staticMortarMagSmoke", "uns_8Rnd_82mmSMOKE_M1941"] call _fnc_saveToTemplate; - -//Static weapon definitions -["baggedMGs", [["I_G_HMG_02_high_weapon_F","I_G_HMG_02_support_high_F"]]] call _fnc_saveToTemplate; -["baggedAT", [["I_AT_01_weapon_F","I_G_HMG_02_support_F"]]] call _fnc_saveToTemplate; -["baggedAA", [["I_AA_01_weapon_F","I_G_HMG_02_support_F"]]] call _fnc_saveToTemplate; -["baggedMortars", [["I_Mortar_01_weapon_F","I_Mortar_01_support_F"]]] call _fnc_saveToTemplate; - -["mineAT", "uns_mine_AT_mag"] call _fnc_saveToTemplate; //this line determines AT mines used for spawning in minefields -- Example: ["minefieldAT", ["ATMine_Range_Mag"]] -- Array, can contain multiple assets -["mineAPERS", "uns_mine_AP_mag"] call _fnc_saveToTemplate; //this line determines APERS mines used for spawning in minefields -- Example: ["minefieldAPERS", ["APERSMine_Range_Mag"]] -- Array, can contain multiple assets - -["breachingExplosivesAPC", [["uns_M118_mag_remote", 1],["DemoCharge_Remote_Mag", 1]]] call _fnc_saveToTemplate; -["breachingExplosivesTank", [["uns_M118_mag_remote", 2],["DemoCharge_Remote_Mag", 1]]] call _fnc_saveToTemplate; - -/////////////////////////// -// Rebel Starting Gear // -/////////////////////////// - -["uniforms", [ - "UNS_VC_U", - "UNS_VC_S", - "UNS_VC_K", - "UNS_VC_B", - "UNS_VC_G", - "uns_U_Simc_vc_black_1", - "uns_U_Simc_vc_black_1_trop", - "uns_U_Simc_vc_black_2", - "uns_U_Simc_vc_black_2_trop", - "uns_U_Simc_vc_blau_1_trop", - "uns_U_Simc_vc_blau_2", - "uns_U_Simc_vc_blau_2_trop", - "uns_U_Simc_vc_blau_1", - "uns_U_Simc_vc_grun_1", - "uns_U_Simc_vc_grun_1_trop", - "uns_U_Simc_vc_grun_2", - "uns_U_Simc_vc_grun_2_trop" -]] call _fnc_saveToTemplate; - -["headgear", [ - "UNS_Boonie_VC", - "UNS_Headband_VC", - "UNS_Conehat_VC", - "uns_vc_headband_blue", - "UNS_Boonie2_VC", - "UNS_Boonie3_VC", - "UNS_Boonie4_VC", - "uns_sas_booniehat_vc_tan", - "uns_sas_booniehat_vc", - "uns_H_Simc_nasi" -]] call _fnc_saveToTemplate; - -private _initialRebelEquipment = [ -"uns_baikal","uns_mosin","uns_kar98k","uns_mas36","uns_type99","uns_nagant_m1895", -"uns_12gaugemag_2","uns_mosinmag","uns_kar98kmag","uns_mas36mag","uns_type99mag","uns_nagant_m1895mag","uns_f1gren","uns_molotov_mag","uns_rdg2", -"uns_men_NVA_65_AS3_Bag","uns_simc_ARVN_ruck_1","uns_simc_ARVN_ruck_2","UNS_VC_R1", -"uns_vc_chestrig","UNS_VC_A2", -"Binocular"]; - -if (A3A_hasTFAR) then {_initialRebelEquipment append ["tf_microdagr","uns_ItemRadio_PRC25_TFAR"]}; -if (A3A_hasTFAR && startWithLongRangeRadio) then {_initialRebelEquipment pushBack "UNS_USMC_RTO"}; -if (A3A_hasTFARBeta) then {_initialRebelEquipment append ["TFAR_microdagr","uns_ItemRadio_PRC25_TFAR"]}; -if (A3A_hasTFARBeta && startWithLongRangeRadio) then {_initialRebelEquipment pushBack "UNS_USMC_RTO"}; - -["initialRebelEquipment", _initialRebelEquipment] call _fnc_saveToTemplate; - -//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -// DO NOT GO PAST THIS LINE - -//!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - -////////////////////////// -// Loadouts // -////////////////////////// -private _loadoutData = call _fnc_createLoadoutData; -_loadoutData set ["rifles", []]; //this line determines rifles -- Example: ["arifle_MX_F","arifle_MX_pointer_F"] -- Array, can contain multiple assets -_loadoutData set ["carbines", []]; //this line determines carbines -- Example: ["arifle_MXC_F","arifle_MXC_Holo_F"] -- Array, can contain multiple assets -_loadoutData set ["grenadeLaunchers", []]; //this line determines grenade launchers -- Example: ["arifle_MX_GL_ACO_F","arifle_MX_GL_ACO_pointer_F"] -- Array, can contain multiple assets -_loadoutData set ["SMGs", []]; //this line determines SMGs -- Example: ["SMG_01_F","SMG_01_Holo_F"] -- Array, can contain multiple assets -_loadoutData set ["machineGuns", []]; //this line determines machine guns -- Example: ["arifle_MX_SW_F","arifle_MX_SW_Hamr_pointer_F"] -- Array, can contain multiple assets -_loadoutData set ["marksmanRifles", []]; //this line determines markman rifles -- Example: ["arifle_MXM_F","arifle_MXM_Hamr_pointer_F"] -- Array, can contain multiple assets -_loadoutData set ["sniperRifles", []]; //this line determines sniper rifles -- Example: ["srifle_LRR_camo_F","srifle_LRR_camo_SOS_F"] -- Array, can contain multiple assets -_loadoutData set ["lightATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets -_loadoutData set ["ATLaunchers", []]; //this line determines light AT launchers -- Example: ["launch_NLAW_F"] -- Array, can contain multiple assets -_loadoutData set ["missileATLaunchers", []]; //this line determines missile AT launchers -- Example: ["launch_B_Titan_short_F"] -- Array, can contain multiple assets -_loadoutData set ["AALaunchers", []]; //this line determines AA launchers -- Example: ["launch_B_Titan_F"] -- Array, can contain multiple assets -_loadoutData set ["sidearms", []]; //this line determines handguns/sidearms -- Example: ["hgun_Pistol_heavy_01_F", "hgun_P07_F"] -- Array, can contain multiple assets - -_loadoutData set ["ATMines", []]; //this line determines the AT mines which can be carried by units -- Example: ["ATMine_Range_Mag"] -- Array, can contain multiple assets -_loadoutData set ["APMines", []]; //this line determines the APERS mines which can be carried by units -- Example: ["APERSMine_Range_Mag"] -- Array, can contain multiple assets -_loadoutData set ["lightExplosives", []]; //this line determines light explosives -- Example: ["DemoCharge_Remote_Mag"] -- Array, can contain multiple assets -_loadoutData set ["heavyExplosives", []]; //this line determines heavy explosives -- Example: ["SatchelCharge_Remote_Mag"] -- Array, can contain multiple assets - -_loadoutData set ["antiInfantryGrenades", []]; //this line determines anti infantry grenades (frag and such) -- Example: ["HandGrenade","MiniGrenade"] -- Array, can contain multiple assets -_loadoutData set ["antiTankGrenades", []]; //this line determines anti tank grenades. Leave empty when not available. -- Array, can contain multiple assets -_loadoutData set ["smokeGrenades", []]; //this line determines smoke grenades -- Example: ["SmokeShell", "SmokeShellRed"] -- Array, can contain multiple assets - - -//Basic equipment. Shouldn't need touching most of the time. -//Mods might override this, or certain mods might want items removed (No GPSs in WW2, for example) -_loadoutData set ["maps", ["ItemMap"]]; -_loadoutData set ["watches", ["ItemWatch"]]; -_loadoutData set ["compasses", ["ItemCompass"]]; -_loadoutData set ["radios", []]; -_loadoutData set ["gpses", []]; -_loadoutData set ["NVGs", []]; //this line determines NVGs -- Array, can contain multiple assets -_loadoutData set ["binoculars", ["Binocular"]]; - -_loadoutData set ["uniforms", [ - "UNS_VC_U", - "UNS_VC_S", - "UNS_VC_K", - "UNS_VC_B", - "UNS_VC_G", - "uns_U_Simc_vc_black_1", - "uns_U_Simc_vc_black_1_trop", - "uns_U_Simc_vc_black_2", - "uns_U_Simc_vc_black_2_trop", - "uns_U_Simc_vc_blau_1_trop", - "uns_U_Simc_vc_blau_2", - "uns_U_Simc_vc_blau_2_trop", - "uns_U_Simc_vc_blau_1", - "uns_U_Simc_vc_grun_1", - "uns_U_Simc_vc_grun_1_trop", - "uns_U_Simc_vc_grun_2", - "uns_U_Simc_vc_grun_2_trop"]]; -_loadoutData set ["vests", []]; -_loadoutData set ["backpacks", []]; -_loadoutData set ["longRangeRadios", []]; -_loadoutData set ["helmets", []]; - -//Item *set* definitions. These are added in their entirety to unit loadouts. No randomisation is applied. -_loadoutData set ["items_medical_basic", ["BASIC"] call A3A_fnc_itemset_medicalSupplies]; -_loadoutData set ["items_medical_standard", ["STANDARD"] call A3A_fnc_itemset_medicalSupplies]; -_loadoutData set ["items_medical_medic", ["MEDIC"] call A3A_fnc_itemset_medicalSupplies]; -_loadoutData set ["items_miscEssentials", [] call A3A_fnc_itemset_miscEssentials]; - -//Unit type specific item sets. Add or remove these, depending on the unit types in use. -_loadoutData set ["items_squadleader_extras", []]; -_loadoutData set ["items_rifleman_extras", []]; -_loadoutData set ["items_medic_extras", []]; -_loadoutData set ["items_grenadier_extras", []]; -_loadoutData set ["items_explosivesExpert_extras", []]; -_loadoutData set ["items_engineer_extras", ["Toolkit", "MineDetector"]]; -_loadoutData set ["items_lat_extras", []]; -_loadoutData set ["items_at_extras", []]; -_loadoutData set ["items_aa_extras", []]; -_loadoutData set ["items_machineGunner_extras", []]; -_loadoutData set ["items_marksman_extras", []]; -_loadoutData set ["items_sniper_extras", []]; -_loadoutData set ["items_police_extras", []]; -_loadoutData set ["items_crew_extras", []]; -_loadoutData set ["items_unarmed_extras", []]; - -//////////////////////// -// Rebel Unit Types // -///////////////////////. - -private _squadLeaderTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - - ["backpacks"] call _fnc_setBackpack; - - [["grenadeLaunchers", "rifles"] call _fnc_fallback] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_squadLeader_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 2] call _fnc_addItem; - ["antiTankGrenades", 1] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["gpses"] call _fnc_addGPS; - ["binoculars"] call _fnc_addBinoculars; - ["NVGs"] call _fnc_addNVGs; -}; - -private _riflemanTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["rifles"] call _fnc_setPrimary; - ["primary", 8] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_rifleman_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 2] call _fnc_addItem; - ["antiTankGrenades", 1] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _medicTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["carbines"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_medic"] call _fnc_addItemSet; - ["items_medic_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 1] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _grenadierTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["grenadeLaunchers"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_grenadier_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 4] call _fnc_addItem; - ["antiTankGrenades", 3] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _explosivesExpertTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["rifles"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_grenadier_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - - ["lightExplosives", 2] call _fnc_addItem; - if (random 1 > 0.5) then {["heavyExplosives", 1] call _fnc_addItem;}; - if (random 1 > 0.5) then {["atMines", 1] call _fnc_addItem;}; - if (random 1 > 0.5) then {["apMines", 1] call _fnc_addItem;}; - - ["antiInfantryGrenades", 1] call _fnc_addItem; - ["smokeGrenades", 1] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _engineerTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["carbines"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_engineer_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - - if (random 1 > 0.5) then {["lightExplosives", 1] call _fnc_addItem;}; - - ["antiInfantryGrenades", 1] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _latTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["rifles"] call _fnc_setPrimary; - ["primary", 8] call _fnc_addMagazines; - - [["lightATLaunchers", "ATLaunchers"] call _fnc_fallback] call _fnc_setLauncher; - //TODO - Add a check if it's disposable. - ["launcher", 1] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_lat_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 1] call _fnc_addItem; - ["antiTankGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 1] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _atTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["rifles"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - [selectRandom ["ATLaunchers", "missileATLaunchers"]] call _fnc_setLauncher; - //TODO - Add a check if it's disposable. - ["launcher", 2] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_at_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 1] call _fnc_addItem; - ["antiTankGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 1] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _aaTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["rifles"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - ["AALaunchers"] call _fnc_setLauncher; - //TODO - Add a check if it's disposable. - ["launcher", 2] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_aa_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _machineGunnerTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["machineGuns"] call _fnc_setPrimary; - ["primary", 4] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_machineGunner_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _marksmanTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["marksmanRifles"] call _fnc_setPrimary; - ["primary", 8] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_marksman_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _sniperTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - ["sniperRifles"] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_sniper_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["antiInfantryGrenades", 2] call _fnc_addItem; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["NVGs"] call _fnc_addNVGs; -}; - -private _policeTemplate = { - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - ["backpacks"] call _fnc_setBackpack; - - [selectRandom ["SMGs", "carbines"]] call _fnc_setPrimary; - ["primary", 5] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_standard"] call _fnc_addItemSet; - ["items_police_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["smokeGrenades", 1] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; -}; - -private _crewTemplate = { - ["helmets"] call _fnc_setHelmet; - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - - ["SMGs"] call _fnc_setPrimary; - ["primary", 3] call _fnc_addMagazines; - - ["sidearms"] call _fnc_setHandgun; - ["handgun", 2] call _fnc_addMagazines; - - ["items_medical_basic"] call _fnc_addItemSet; - ["items_crew_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - ["smokeGrenades", 2] call _fnc_addItem; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; - ["gpses"] call _fnc_addGPS; - ["NVGs"] call _fnc_addNVGs; -}; - -private _unarmedTemplate = { - ["vests"] call _fnc_setVest; - ["uniforms"] call _fnc_setUniform; - - ["items_medical_basic"] call _fnc_addItemSet; - ["items_unarmed_extras"] call _fnc_addItemSet; - ["items_miscEssentials"] call _fnc_addItemSet; - - ["maps"] call _fnc_addMap; - ["watches"] call _fnc_addWatch; - ["compasses"] call _fnc_addCompass; - ["radios"] call _fnc_addRadio; -}; - -private _prefix = "militia"; -private _unitTypes = [ - ["Petros", _squadLeaderTemplate], - ["SquadLeader", _squadLeaderTemplate], - ["Rifleman", _riflemanTemplate], - ["staticCrew", _riflemanTemplate], - ["Medic", _medicTemplate, [["medic", true]]], - ["Engineer", _engineerTemplate, [["engineer", true]]], - ["ExplosivesExpert", _explosivesExpertTemplate, [["explosiveSpecialist", true]]], - ["Grenadier", _grenadierTemplate], - ["LAT", _latTemplate], - ["AT", _atTemplate], - ["AA", _aaTemplate], - ["MachineGunner", _machineGunnerTemplate], - ["Marksman", _marksmanTemplate], - ["Sniper", _sniperTemplate], - ["Unarmed", _unarmedTemplate] -]; - -[_prefix, _unitTypes, _loadoutData] call _fnc_generateAndSaveUnitsToTemplate;