Skip to content

Commit fb8633f

Browse files
committed
add virtual arsenal support
1 parent d9b98bd commit fb8633f

File tree

5 files changed

+38
-11
lines changed

5 files changed

+38
-11
lines changed

source/INIT.sqf

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,20 @@ if (isMultiplayer) then {
170170
_revive_activated = paramsArray select 0; // Revives, true or false
171171
DUWSMP_CP_death_cost = paramsArray select 1;
172172

173-
if (support_armory_available) then {
174-
hq_blu1 addaction ["<t color='#ff1111'>Armory</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
175-
};
173+
if (support_armory_available) then {
174+
hq_blu1 addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
175+
};
176+
if (support_armory_available) then {
177+
hq_blu1 addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","va.sqf", "", 0, true, true, "", "_this == player"];
178+
};
179+
180+
if (support_armory_available) then {
181+
_x addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"]
182+
} forEach (Array_of_FOBS);
183+
184+
if (support_armory_available) then {
185+
_x addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","va.sqf", "", 0, true, true, "", "_this == player"]
186+
} forEach (Array_of_FOBS);
176187

177188
if (_revive_activated == 1) then {execVM "duws_revive\reviveInit.sqf"};
178189
PlayerKilledEH = player addEventHandler ["killed", {commandpointsblu1 = commandpointsblu1 - DUWSMP_CP_death_cost; publicVariable "commandpointsblu1"}];
@@ -388,4 +399,4 @@ if(isServer) then
388399
389400
execVM "persistent\missionSpecific\loadAccount.sqf";
390401
};
391-
*/
402+
*/

source/dialog/request_support.sqf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,12 @@ switch (_index2) do {
8686
if (!support_armory_available) then {
8787
commandpointsblu1 = commandpointsblu1 - 8;
8888
ctrlSetText [1000, format["%1",commandpointsblu1]];
89-
hq_blu1 addaction ["<t color='#ff1111'>Armory</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
90-
lbSetColor [2103, 5, [0, 1, 0, 1]];
89+
hq_blu1 addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
90+
hq_blu1 addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","va.sqf", "", 0, true, true, "", "_this == player"];
91+
lbSetColor [2103, 6, [0, 1, 0, 1]];
9192
support_armory_available = true;
93+
{_x addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"]} forEach (Array_of_FOBS);
94+
{_x addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","va.sqf", "", 0, true, true, "", "_this == player"]} forEach (Array_of_FOBS);
9295
playSound "loadgun";
9396
publicVariable "support_armory_available";
9497
["armory",["Armory Unlocked","Access the armory at the HQ and at the dropped supply crates"]] call bis_fnc_showNotification;
@@ -217,4 +220,4 @@ switch (_index2) do {
217220
};
218221
};
219222
//hint format["index: %1",_index2];
220-
publicVariable "commandpointsblu1";
223+
publicVariable "commandpointsblu1";

source/support/FOBactions.sqf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@ _fob = _this select 0;
33

44
_fob addaction ["<t color='#ff00ff'>Player stats</t>","dialog\info\info.sqf", "", 0, true, true, "", "_this == player"];
55
_fob addaction ["<t color='#15ff00'>Request ammobox drop(2CP)</t>","support\fob_ammobox.sqf", "", 0, true, true, "", "_this == player"];
6+
if (support_armory_available) then {
7+
_fob addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
8+
};
9+
if (support_armory_available) then {
10+
_fob addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","va.sqf", "", 0, true, true, "", "_this == player"];
11+
};
612
_fob addaction ["<t color='#ffb700'>Squad manager</t>","dialog\squad\squadmng.sqf", "", 0, true, true, "", "_this == player"];
713
_fob addaction ["<t color='#ffb700'>FOB manager</t>","dialog\fob\FOBmanageropen.sqf", "", 0, true, true, "", "_this == player"];
814
if (isServer) then {

source/support/fob.sqf

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ _markerstr setMarkerShape "ICON";
4646
str(_markername) setMarkerType "loc_Bunker";
4747
str(_markername) setMarkerColor "ColorBLUFOR";
4848
str(_markername) setMarkerText format["FOB %1",_fobname];
49-
str(_markername) setMarkerSize [2.5, 2.5];
49+
str(_markername) setMarkerSize [2.5, 2.5];
5050

5151

5252

@@ -59,13 +59,19 @@ DUWS_fnc_fob = {
5959
_this addaction ["<t color='#ff00ff'>Player stats</t>","dialog\info\info.sqf", "", 0, true, true, "", "_this == player"];
6060
_this addaction ["<t color='#15ff00'>Request ammobox drop(2CP)</t>","support\fob_ammobox.sqf", "", 0, true, true, "", "_this == player"];
6161
_this addaction ["<t color='#ffb700'>Squad manager</t>","dialog\squad\squadmng.sqf", "", 0, true, true, "", "_this == player"];
62-
_this addaction ["<t color='#ffb700'>FOB manager</t>","dialog\fob\FOBmanageropen.sqf", "", 0, true, true, "", "_this == player"];
62+
_this addaction ["<t color='#ffb700'>FOB manager</t>","dialog\fob\FOBmanageropen.sqf", "", 0, true, true, "", "_this == player"];
63+
if (support_armory_available) then {
64+
_this addaction ["<t color='#ff0066'>Armory 1 (VAS)</t>","VAS\open.sqf", "", 0, true, true, "", "_this == player"];
65+
};
66+
if (support_armory_available) then {
67+
_this addaction ["<t color='#ff0066'>Armory 2 (VA)</t>","va.sqf", "", 0, true, true, "", "_this == player"];
68+
};
6369
if (isServer) then {
6470
_this addaction ["<t color='#00b7ff'>Rest (wait/save)</t>","savegame.sqf", "", 0, true, true, "", "_this == player"];
6571
};
6672
if (!isServer) then {
6773
_this addaction ["<t color='#00b7ff'>Rest</t>","savegameClient.sqf", "", 0, true, true, "", "_this == player"];
68-
};
74+
};
6975
};
7076
[_fob,"DUWS_fnc_fob",true,true] spawn BIS_fnc_MP; // [_fob,"DUWS_fnc_fob",nil,true] spawn BIS_fnc_MP;
7177

@@ -114,4 +120,4 @@ sleep 1;
114120
sleep 600;
115121
_art = [player1,"fob_support"] call BIS_fnc_addCommMenuItem;
116122

117-
// Land_Cargo_HQ_V1_F
123+
// Land_Cargo_HQ_V1_F

source/va.sqf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
["Open",true] call BIS_fnc_arsenal;

0 commit comments

Comments
 (0)