diff --git a/f/assignGear/f_assignGear_3IFB.sqf b/f/assignGear/f_assignGear_3IFB.sqf index 2d7e131a..09240541 100644 --- a/f/assignGear/f_assignGear_3IFB.sqf +++ b/f/assignGear/f_assignGear_3IFB.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_aaf.sqf b/f/assignGear/f_assignGear_aaf.sqf index dfa19992..38bba83e 100644 --- a/f/assignGear/f_assignGear_aaf.sqf +++ b/f/assignGear/f_assignGear_aaf.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_attachments.sqf b/f/assignGear/f_assignGear_attachments.sqf index 16ec909a..372a193f 100644 --- a/f/assignGear/f_assignGear_attachments.sqf +++ b/f/assignGear/f_assignGear_attachments.sqf @@ -1,7 +1,7 @@ if (_attachments isEqualType []) then { removeAllPrimaryWeaponItems _unit; { - // loop trough the attachments and add them to the weapon + // loop through the attachments and add them to the weapon _unit addPrimaryWeaponItem _x; } foreach _attachments; }; @@ -10,7 +10,18 @@ if (_attachments isEqualType []) then { if (_hg_attachments isEqualType []) then { removeAllHandgunItems _unit; { - // loop trough the attachments and add them to the weapon + // loop through the attachments and add them to the weapon _unit addHandgunItem _x; } foreach _hg_attachments; }; + +// Handle launcher attachments +if (_lau_attachments isEqualType []) then { + { + _unit removeSecondaryWeaponItem _x; + } forEach secondaryWeaponItems _unit; + { + // loop through the attachments and add them to the weapon + _unit addSecondaryWeaponItem _x; + } foreach _lau_attachments; +}; diff --git a/f/assignGear/f_assignGear_csat.sqf b/f/assignGear/f_assignGear_csat.sqf index 31574ed5..4f5327a6 100644 --- a/f/assignGear/f_assignGear_csat.sqf +++ b/f/assignGear/f_assignGear_csat.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_csatPacific.sqf b/f/assignGear/f_assignGear_csatPacific.sqf index 9b1cb8f4..2a71c975 100644 --- a/f/assignGear/f_assignGear_csatPacific.sqf +++ b/f/assignGear/f_assignGear_csatPacific.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_ctrg.sqf b/f/assignGear/f_assignGear_ctrg.sqf index 15d4698c..8bb9f48d 100644 --- a/f/assignGear/f_assignGear_ctrg.sqf +++ b/f/assignGear/f_assignGear_ctrg.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_fia.sqf b/f/assignGear/f_assignGear_fia.sqf index 7495501c..b99c70c9 100644 --- a/f/assignGear/f_assignGear_fia.sqf +++ b/f/assignGear/f_assignGear_fia.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_gendarmerie.sqf b/f/assignGear/f_assignGear_gendarmerie.sqf index 31249779..486224e2 100644 --- a/f/assignGear/f_assignGear_gendarmerie.sqf +++ b/f/assignGear/f_assignGear_gendarmerie.sqf @@ -56,6 +56,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_nato.sqf b/f/assignGear/f_assignGear_nato.sqf index d020e765..030d6a76 100644 --- a/f/assignGear/f_assignGear_nato.sqf +++ b/f/assignGear/f_assignGear_nato.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_natoPacific.sqf b/f/assignGear/f_assignGear_natoPacific.sqf index e509ea5f..e06a385b 100644 --- a/f/assignGear/f_assignGear_natoPacific.sqf +++ b/f/assignGear/f_assignGear_natoPacific.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/f_assignGear_syndikat.sqf b/f/assignGear/f_assignGear_syndikat.sqf index f358fdaf..e3b9fb07 100644 --- a/f/assignGear/f_assignGear_syndikat.sqf +++ b/f/assignGear/f_assignGear_syndikat.sqf @@ -101,6 +101,13 @@ _hg_attachments= []; // The default attachment set for handguns, overwritten in // ==================================================================================== +// ATTACHMENTS - LAUNCHER +_lau_attach1 = ""; // Empty by default, could be a scope in GM or a laser pointer for Titans + +_lau_attachments = []; // The default attachment set for launchers, overwritten in the individual unitType + +// ==================================================================================== + // WEAPON SELECTION // Standard Riflemen ( MMG Assistant Gunner, Assistant Automatic Rifleman, MAT Assistant Gunner, MTR Assistant Gunner, Rifleman) diff --git a/f/assignGear/fn_assignGear.sqf b/f/assignGear/fn_assignGear.sqf index f4923a95..26687e2e 100644 --- a/f/assignGear/fn_assignGear.sqf +++ b/f/assignGear/fn_assignGear.sqf @@ -56,7 +56,7 @@ _unit setVariable ["f_var_assignGear",_typeofUnit,true]; // DECLARE VARIABLES AND FUNCTIONS 2 // Used by the faction-specific scripts -private ["_attach1","_attach2","_silencer1","_silencer2","_scope1","_scope2","_scope3","_bipod1","_bipod2","_attachments","_silencer","_hg_silencer1","_hg_scope1","_hg_attachments","_rifle","_riflemag","_riflemag_tr","_carbine","_carbinemag","_carbinemag_tr","_smg","_smgmag","_smgmag_tr","_diverWep","_diverMag1","_diverMag2","_glrifle","_glriflemag","_glriflemag_tr","_glmag","_glsmokewhite","_glsmokegreen","_glsmokered","_glflarewhite","_glflarered","_glflareyellow","_glflaregreen","_pistol","_pistolmag","_grenade","_Mgrenade","_smokegrenade","_smokegrenadegreen","_smokegrenadeblue","_smokegrenadepurple","_firstaid","_medkit","_nvg","_uavterminal","_chemgreen","_chemred","_chemyellow","_chemblue","_bag","_bagLarge","_bagmediumdiver","_baguav","_baghmgg","_baghmgag","_baghatg","_baghatag","_bagmtrg","_bagmtrag","_baghsamg","_baghsamag","_AR","_ARmag","_ARmag_tr","_MMG","_MMGmag","_MMGmag_tr","_Tracer","_DMrifle","_DMriflemag","_RAT","_RATmag1","_RATmag2","_MAT","_MATmag1","_MATmag2","_SAM","_SAMmag","_HAT","_HATmag1","_HATmag2","_SNrifle","_SNrifleMag","_ATmine","_satchel","_APmine1","_APmine2","_diver","_pilot","_crew","_ghillie","_specOp","_baseUniform","_baseHelmet","_baseGlasses","_lightRig","_mediumRig","_heavyRig","_diverUniform","_diverHelmet","_diverRig","_diverGlasses","_pilotUniform","_pilotHelmet","_pilotRig","_pilotGlasses","_crewUniform","_crewHelmet","_crewRig","_crewGlasses","_ghillieUniform","_ghillieHelmet","_ghillieRig","_ghillieGlasses","_sfuniform","_sfhelmet","_sfRig","_sfGlasses","_backpack","_typeofBackPack","_loadout","_COrifle","_mgrenade","_DC","_SLrifle","_JTACrifle","_ftlrifle","_grenrifle","_typeofunit","_jet","_jetUniform","_jetHelmet","_jetRig","_jetGlasses"]; +private ["_lau_attach1","_lau_attachments","_attach1","_attach2","_silencer1","_silencer2","_scope1","_scope2","_scope3","_bipod1","_bipod2","_attachments","_silencer","_hg_silencer1","_hg_scope1","_hg_attachments","_rifle","_riflemag","_riflemag_tr","_carbine","_carbinemag","_carbinemag_tr","_shotgun","_shotgunmag1","_shotgunmag2","_smg","_smgmag","_smgmag_tr","_diverWep","_diverMag1","_diverMag2","_glrifle","_glriflemag","_glriflemag_tr","_glmag","_glsmokewhite","_glsmokegreen","_glsmokered","_glflarewhite","_glflarered","_glflareyellow","_glflaregreen","_pistol","_pistolmag","_grenade","_Mgrenade","_smokegrenade","_smokegrenadegreen","_smokegrenadeblue","_smokegrenadepurple","_firstaid","_medkit","_nvg","_uavterminal","_chemgreen","_chemred","_chemyellow","_chemblue","_bag","_bagLarge","_bagmediumdiver","_baguav","_baghmgg","_baghmgag","_baghatg","_baghatag","_bagmtrg","_bagmtrag","_baghsamg","_baghsamag","_bagRadio","_AR","_ARmag","_ARmag_tr","_MMG","_MMGmag","_MMGmag_tr","_Tracer","_DMrifle","_DMriflemag","_RAT","_RATmag1","_RATmag2","_MAT","_MATmag1","_MATmag2","_SAM","_SAMmag","_HAT","_HATmag1","_HATmag2","_SNrifle","_SNrifleMag","_ATmine","_satchel","_APmine1","_APmine2","_diver","_pilot","_crew","_ghillie","_specOp","_baseUniform","_baseHelmet","_baseGlasses","_lightRig","_mediumRig","_heavyRig","_diverUniform","_diverHelmet","_diverRig","_diverGlasses","_pilotUniform","_pilotHelmet","_pilotRig","_pilotGlasses","_crewUniform","_crewHelmet","_crewRig","_crewGlasses","_ghillieUniform","_ghillieHelmet","_ghillieRig","_ghillieGlasses","_sfuniform","_sfhelmet","_sfRig","_sfGlasses","_backpack","_typeofBackPack","_loadout","_COrifle","_mgrenade","_DC","_SLrifle","_JTACrifle","_ftlrifle","_grenrifle","_typeofunit","_jet","_jetUniform","_jetHelmet","_jetRig","_jetGlasses"]; // ====================================================================================