Skip to content

Commit a815943

Browse files
committed
Removed BIS_fnc_addCommMenuItem from Support when lacking enough CP
1 parent accd400 commit a815943

File tree

3 files changed

+2
-28
lines changed

3 files changed

+2
-28
lines changed

source/support/cluster/mapclickcluster.sqf

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,6 @@ clicked = false;
3030
// IF NOT ENOUGH PTS
3131
if (commandpointsblu1<_cost) exitWith {
3232
["info",["Support","You don't have enough command points"]] call bis_fnc_showNotification;
33-
sleep 30;
34-
if (_supportype==1) exitWith {
35-
_art = [player1,"artillery"] call BIS_fnc_addCommMenuItem;
36-
};
37-
38-
if (_supportype==2) exitWith {
39-
_art = [player1,"mortar"] call BIS_fnc_addCommMenuItem;
40-
};
41-
42-
if (_supportype==3) exitWith {
43-
_art = [player1,"JDAM"] call BIS_fnc_addCommMenuItem;
44-
};
4533
};
4634

4735
_pos = [];

source/support/mapclickarty.sqf

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,7 @@ clicked = false;
1717

1818
// IF NOT ENOUGH PTS
1919
if (commandpointsblu1<_cost) exitWith {
20-
["info",["Support","You don't have enough command points"]] call bis_fnc_showNotification;
21-
sleep 30;
22-
if (_supportype==1) exitWith {
23-
_art = [player1,"artillery"] call BIS_fnc_addCommMenuItem;
24-
};
25-
26-
if (_supportype==2) exitWith {
27-
_art = [player1,"mortar"] call BIS_fnc_addCommMenuItem;
28-
};
29-
30-
if (_supportype==3) exitWith {
31-
_art = [player1,"JDAM"] call BIS_fnc_addCommMenuItem;
32-
};
20+
["info",["Support","You don't have enough command points"]] call bis_fnc_showNotification;
3321
};
3422

3523
_pos = [];

source/support/mapclickuav.sqf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ clicked = false;
33

44
// IF NOT ENOUGH PTS
55
if (commandpointsblu1<3) exitWith {
6-
["info",["Not enough command points","Not enough Command Points (3CP required)"]] call bis_fnc_showNotification;
7-
sleep 30;
8-
_art = [player1,"uav_recon"] call BIS_fnc_addCommMenuItem;
6+
["info",["Not enough command points","Not enough Command Points (3CP required)"]] call bis_fnc_showNotification;
97
};
108

119
hint "Click on your map to scan a location using the UAV";

0 commit comments

Comments
 (0)