33
44 Author: Kibot
55
6- Description:
7- Variant of ammobox.sqf with less spread in deployment.
6+ Description:
7+ Variant of ammobox.sqf with less spread in deployment.
88 Air-deploys a NATO ammobox with a parachute at a assigned location.
99
1010 Parameter(s):
1313 Usage:
1414 _scriptHandle = [player] spawn duws_fnc_fob_ammobox;
1515
16- Returns:
16+ Returns:
1717 - Nil -
1818*/
1919
20- params [" _target" ," _location" ];
20+ params [" _target" ];
21+ private _location = getPos _target ;
2122
2223if (commandpointsblu1< 2 ) exitWith {
2324 [" info" ,[" Not enough command points" ," Not enough Command Points (2CP required)" ]] call bis_fnc_showNotification ;
@@ -34,20 +35,9 @@ _parachute setPos [_location select 0, _location select 1, (_location select 2)+
3435_ammo = Blufor_SupplyCrate CreateVehicle [_location select 0 ,_location select 1 ,(_location select 2 )+ 20 ];
3536_ammo attachTo [_parachute ,[0 ,0 ,0 ]];
3637
37- _ammo addMagazineCargo [" 30Rnd_65x39_caseless_mag" , 70 ];
38- _ammo addMagazineCargo [" 30Rnd_65x39_caseless_mag_Tracer" , 70 ];
39- _ammo addMagazineCargo [" 100Rnd_65x39_caseless_mag" , 70 ];
40- _ammo addMagazineCargo [" 100Rnd_65x39_caseless_mag_tracer" , 70 ];
41- _ammo addMagazineCargo [" 1Rnd_HE_Grenade_shell" , 90 ];
42- _ammo addMagazineCargo [" UGL_FlareRed_F" , 70 ];
43- _ammo addMagazineCargo [" UGL_FlareGreen_F" , 70 ];
44- _ammo addMagazineCargo [" 1Rnd_Smoke_Grenade_shell" , 70 ];
45- _ammo addMagazineCargo [" 1Rnd_SmokeRed_Grenade_shell" , 70 ];
46- _ammo addMagazineCargo [" 1Rnd_SmokeBlue_Grenade_shell" , 70 ];
47- _ammo addMagazineCargo [" NLAW_F" , 70 ];
48- _ammo addMagazineCargo [" Chemlight_green" , 70 ];
49-
50- _ammo addBackpackCargo [" B_AssaultPack_khk" ,10 ];
38+ {
39+ _ammo addItemCargo _x ;
40+ } forEach Blufor_Ammobox_Contents;
5141
5242if (support_armory_available) then {[[_ammo ,[" <t color='#ff1111'>Armory</t>" ,{[] call duws_fnc_bisArsenal },[], 0 , false , false , " " , " _this distance _target < 4" ]]," addAction" ,true ,true ] call BIS_fnc_MP ;};
5343
0 commit comments