Skip to content

Commit

Permalink
Updated Stryker Dragoon crates and added new MRAPs for Viking (#1156)
Browse files Browse the repository at this point in the history
Co-authored-by: Broström.A | Evul <[email protected]>
  • Loading branch information
pool011 and AndreasBrostrom authored Apr 2, 2024
1 parent 4517d14 commit ab07532
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 11 deletions.
2 changes: 1 addition & 1 deletion cScripts/Loadouts/CfgLoadouts_Alpha_FixedWing.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
74 changes: 64 additions & 10 deletions cScripts/functions/vehicle/fn_vehicle_addInventory.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,6 @@ if (_vehicle iskindOf "I_APC_Wheeled_03_cannon_F") then {
_mortar_ammo_82mm,
_vehicle, nil, "Ammo for 2x 82mm mortars"
] call FUNC(createCargoCrate);

["Box_NATO_WpsLaunch_F",
GET_CONTAINER("crate_stinger"),
_vehicle, nil, "MANPAD"
] call FUNC(createCargoCrate);
};

// Logistical strykers: Have same inventory, but a lot of wheels in cargo.
Expand All @@ -112,6 +107,12 @@ if (_vehicle iskindOf "I_APC_Wheeled_03_cannon_F") then {
_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"
Expand Down Expand Up @@ -145,11 +146,6 @@ if (_vehicle iskindOf "I_APC_Wheeled_03_cannon_F") then {
GET_CONTAINER("crate_strykerDragoon_resupply"),
_vehicle, nil, "Resupply Crate"
] call FUNC(createCargoCrate);

["Box_NATO_WpsLaunch_F",
GET_CONTAINER("crate_stinger"),
_vehicle, nil, "MANPAD"
] call FUNC(createCargoCrate);
};
};
};
Expand Down Expand Up @@ -197,6 +193,64 @@ if (_vehicle iskindOf "MRAP_01_base_F") then {
GET_CONTAINER("vehicle_HMMWV_Weapons")
] 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")
Expand Down

0 comments on commit ab07532

Please sign in to comment.