Skip to content

Commit 41c4d50

Browse files
committed
Merged dedi support into VA cleanup
1 parent a7cb953 commit 41c4d50

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

source/support/ammobox.sqf

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _target = _this select 0;
22

33
_location = getpos _target;
44

5-
if (commandpointsblu1<2) exitWith
5+
if (commandpointsblu1<2) exitWith
66
{
77
["info",["Not enough command points","Not enough Command Points (2CP required)"]] call bis_fnc_showNotification;
88
};
@@ -32,11 +32,12 @@ _ammo addMagazineCargo ["Chemlight_green", 70];
3232

3333
_ammo addBackpackCargo ["B_AssaultPack_khk",10];
3434

35-
if (support_armory_available) then {_ammo addaction ["<t color='#ff1111'>Armory (VA)</t>","bisArsenal.sqf", "", 0, true, true, "", "_this == player"]};
35+
if (support_armory_available) then {[[_ammo,["<t color='#ff1111'>Armory</t>","bisArsenal.sqf",[], 0, false, false, "", "_this distance _target < 4"]],"addAction",true,true] call BIS_fnc_MP;};
3636

37+
3738
// magazines[] = {"1Rnd_HE_Grenade_shell","UGL_FlareWhite_F","UGL_FlareGreen_F","UGL_FlareRed_F","UGL_FlareYellow_F","UGL_FlareCIR_F","1Rnd_Smoke_Grenade_shell","1Rnd_SmokeRed_Grenade_shell","1Rnd_SmokeGreen_Grenade_shell","1Rnd_SmokeYellow_Grenade_shell","1Rnd_SmokePurple_Grenade_shell","1Rnd_SmokeBlue_Grenade_shell","1Rnd_SmokeOrange_Grenade_shell","3Rnd_HE_Grenade_shell","3Rnd_UGL_FlareWhite_F","3Rnd_UGL_FlareGreen_F","3Rnd_UGL_FlareRed_F","3Rnd_UGL_FlareYellow_F","3Rnd_UGL_FlareCIR_F","3Rnd_Smoke_Grenade_shell","3Rnd_SmokeRed_Grenade_shell","3Rnd_SmokeGreen_Grenade_shell","3Rnd_SmokeYellow_Grenade_shell","3Rnd_SmokePurple_Grenade_shell","3Rnd_SmokeBlue_Grenade_shell","3Rnd_SmokeOrange_Grenade_shell"};
3839

39-
40+
4041
waitUntil {sleep 1; getpos _ammo select 2<0.2};
4142
_smoke = "SmokeShellGreen" CreateVehicle (getpos _ammo);
4243
["info",["Supply delivered","The supply crate has been marked with green smokes"]] call bis_fnc_showNotification;

source/support/fob_ammobox.sqf

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _target = _this select 0;
22

33
_location = getpos _target;
44

5-
if (commandpointsblu1<2) exitWith
5+
if (commandpointsblu1<2) exitWith
66
{
77
["info",["Not enough command points","Not enough Command Points (2CP required)"]] call bis_fnc_showNotification;
88
};
@@ -32,11 +32,11 @@ _ammo addMagazineCargo ["Chemlight_green", 70];
3232

3333
_ammo addBackpackCargo ["B_AssaultPack_khk",10];
3434

35-
if (support_armory_available) then {_ammo addaction ["<t color='#ff1111'>Armory (VA)</t>","bisArsenal.sqf", "", 0, true, true, "", "_this == player"]};
36-
35+
if (support_armory_available) then {[[_ammo,["<t color='#ff1111'>Armory</t>","bisArsenal.sqf",[], 0, false, false, "", "_this distance _target < 4"]],"addAction",true,true] call BIS_fnc_MP;};
36+
3737
// magazines[] = {"1Rnd_HE_Grenade_shell","UGL_FlareWhite_F","UGL_FlareGreen_F","UGL_FlareRed_F","UGL_FlareYellow_F","UGL_FlareCIR_F","1Rnd_Smoke_Grenade_shell","1Rnd_SmokeRed_Grenade_shell","1Rnd_SmokeGreen_Grenade_shell","1Rnd_SmokeYellow_Grenade_shell","1Rnd_SmokePurple_Grenade_shell","1Rnd_SmokeBlue_Grenade_shell","1Rnd_SmokeOrange_Grenade_shell","3Rnd_HE_Grenade_shell","3Rnd_UGL_FlareWhite_F","3Rnd_UGL_FlareGreen_F","3Rnd_UGL_FlareRed_F","3Rnd_UGL_FlareYellow_F","3Rnd_UGL_FlareCIR_F","3Rnd_Smoke_Grenade_shell","3Rnd_SmokeRed_Grenade_shell","3Rnd_SmokeGreen_Grenade_shell","3Rnd_SmokeYellow_Grenade_shell","3Rnd_SmokePurple_Grenade_shell","3Rnd_SmokeBlue_Grenade_shell","3Rnd_SmokeOrange_Grenade_shell"};
3838

39-
39+
4040
waitUntil {sleep 1; getpos _ammo select 2<0.2};
4141
_smoke = "SmokeShellGreen" CreateVehicle (getpos _ammo);
4242
["info",["Supply delivered","The supply crate has been marked with green smokes"]] call bis_fnc_showNotification;

0 commit comments

Comments
 (0)