@@ -169,25 +169,34 @@ if (isMultiplayer) then {
169169 // Get the variables from the parameters lobby
170170 _revive_activated = paramsArray select 0 ; // Revives, true or false
171171 DUWSMP_CP_death_cost = paramsArray select 1 ;
172-
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- hq_blu1 addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ];
176- { _x addaction [" <t color='#ff0066'>Armory 1 (VAS)</t>" ," VAS\open.sqf" , " " , 0 , true , true , " " , " _this == player" ];
177- _x addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ]; } forEach (Array_of_FOBS);
178- };
172+ if (support_armory_available) then {
173+ hq_blu1 addaction [" <t color='#ff0066'>Armory 1 (VAS)</t>" ," VAS\open.sqf" , " " , 0 , true , true , " " , " _this == player" ];
174+ hq_blu1 addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ];
175+ {
176+ _x addaction [" <t color='#ff0066'>Armory 1 (VAS)</t>" ," VAS\open.sqf" , " " , 0 , true , true , " " , " _this == player" ];
177+ _x addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ];
178+ } forEach (Array_of_FOBS);
179+ };
179180
180181 if (_revive_activated == 1 ) then {execVM " duws_revive\reviveInit.sqf" };
181- PlayerKilledEH = player addEventHandler [" killed" , {commandpointsblu1 = commandpointsblu1 - DUWSMP_CP_death_cost; publicVariable " commandpointsblu1" }];
182+ PlayerKilledEH = player addEventHandler [" killed" , {
183+ commandpointsblu1 = commandpointsblu1 - DUWSMP_CP_death_cost;
184+ publicVariable " commandpointsblu1" ;
185+ }];
182186 " support_specialized_training_available" addPublicVariableEventHandler {lbSetColor [2103 , 11 , [0 , 1 , 0 , 1 ]];};
183- " support_armory_available" addPublicVariableEventHandler {
187+ " support_armory_available" addPublicVariableEventHandler {
184188 hq_blu1 addaction [" <t color='#ff0066'>Armory 1 (VAS)</t>" ," VAS\open.sqf" , " " , 0 , true , true , " " , " _this == player" ];
185189 hq_blu1 addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ];
186- { _x addaction [" <t color='#ff0066'>Armory 1 (VAS)</t>" ," VAS\open.sqf" , " " , 0 , true , true , " " , " _this == player" ];
187- _x addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ]; } forEach (Array_of_FOBS);
188- lbSetColor [2103 , 5 , [0 , 1 , 0 , 1 ]];};
189- " commandpointsblu1" addPublicVariableEventHandler {ctrlSetText [1000 , format [" %1" ,commandpointsblu1]];}; // change the shown CP for request dialog
190-
190+ {
191+ _x addaction [" <t color='#ff0066'>Armory 1 (VAS)</t>" ," VAS\open.sqf" , " " , 0 , true , true , " " , " _this == player" ];
192+ _x addaction [" <t color='#ff0066'>Armory 2 (VA)</t>" ," bisArsenal.sqf" , " " , 0 , true , true , " " , " _this == player" ];
193+ } forEach (Array_of_FOBS);
194+ lbSetColor [2103 , 5 , [0 , 1 , 0 , 1 ]];
195+ };
196+
197+ // change the shown CP for request dialog
198+ " commandpointsblu1" addPublicVariableEventHandler {ctrlSetText [1000 , format [" %1" ,commandpointsblu1]]; };
199+
191200 // each time there is a new FOB
192201 " Array_of_FOBS" addPublicVariableEventHandler {
193202 if (! fobSwitch) then {
0 commit comments