From 35ee6038f35213bb3cf3450e422c5225130e58d0 Mon Sep 17 00:00:00 2001 From: Jonah Pool Date: Thu, 1 Feb 2024 17:36:47 -0500 Subject: [PATCH] Added MRAPs for B Troop --- .../Loadouts/CfgLoadouts_Alpha_FixedWing.hpp | 2 +- .../vehicle/fn_vehicle_addInventory.sqf | 58 +++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/cScripts/Loadouts/CfgLoadouts_Alpha_FixedWing.hpp b/cScripts/Loadouts/CfgLoadouts_Alpha_FixedWing.hpp index 9592d808a..2ea54faa5 100644 --- a/cScripts/Loadouts/CfgLoadouts_Alpha_FixedWing.hpp +++ b/cScripts/Loadouts/CfgLoadouts_Alpha_FixedWing.hpp @@ -74,4 +74,4 @@ class Cav_B_A_Plane_Fighter_Pilot_Hog_8_F: Cav_B_A_Plane_Fighter_Pilot_F { class Cav_B_A_Plane_Fighter_Pilot_Hog_9_F: Cav_B_A_Plane_Fighter_Pilot_F { scope = 1; insignia = "cav_insignia_alpha_2_b"; -}; +}; \ No newline at end of file diff --git a/cScripts/functions/vehicle/fn_vehicle_addInventory.sqf b/cScripts/functions/vehicle/fn_vehicle_addInventory.sqf index 7f5807b6b..156e52271 100644 --- a/cScripts/functions/vehicle/fn_vehicle_addInventory.sqf +++ b/cScripts/functions/vehicle/fn_vehicle_addInventory.sqf @@ -189,6 +189,64 @@ if (_vehicle iskindOf "MRAP_01_base_F") then { GET_CONTAINER(vehicle_HMMWV) ] call FUNC(addCargo); }; + case "rhsusf_M1239_socom_d"; + case "rhsusf_M1239_M2_socom_d"; + case "rhsusf_M1239_MK19_socom_d"; + case "rhsusf_M1239_M2_Deploy_socom_d"; + case "rhsusf_M1239_MK19_Deploy_socom_d": { + [_vehicle, 15, 38, false, false] call FUNC(setCargoAttributes); + + // Emergency kit in case of tire damage and fuel loss. + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["FlexibleTank_01_forest_F", _vehicle, true] call ace_cargo_fnc_loadItem; // Emergency Fuel Tank + // Vehicle Inventory + [_vehicle, + GET_CONTAINER(vehicle_strykerDragoon) + ] call FUNC(addCargo); + + // Supply Crate + ["Box_NATO_Equip_F", + GET_CONTAINER(crate_strykerDragoon_resupply), + _vehicle, nil, "Resupply Crate" + ] call FUNC(createCargoCrate); + + // 2 Stingers to distribute to 1 section. + ["Box_NATO_WpsLaunch_F", + GET_CONTAINER(crate_stinger), + _vehicle, nil, "MANPAD" + ] call FUNC(createCargoCrate); + + ["Box_NATO_WpsLaunch_F", + GET_CONTAINER(crate_stinger), + _vehicle, nil, "MANPAD" + ] call FUNC(createCargoCrate); + }; + case "rhsusf_M1238A1_socom_d"; + case "rhsusf_M1238A1_M2_socom_d"; + case "rhsusf_M1238A1_Mk19_socom_d": { + [_vehicle, 15, 38, false, false] call FUNC(setCargoAttributes); + + // Emergency kit in case of tire damage and fuel loss. + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["ACE_Wheel", _vehicle, true] call ace_cargo_fnc_loadItem; + ["FlexibleTank_01_forest_F", _vehicle, true] call ace_cargo_fnc_loadItem; // Emergency Fuel Tank + + // Vehicle Inventory + [_vehicle, + GET_CONTAINER(vehicle_strykerDragoon) + ] call FUNC(addCargo); + + // Supply Crate + ["Box_NATO_Equip_F", + GET_CONTAINER(crate_strykerDragoon_resupply), + _vehicle, nil, "Resupply Crate" + ] call FUNC(createCargoCrate); + }; default { [_vehicle, GET_CONTAINER(vehicle_HMMWV)