Skip to content

Commit a37f04d

Browse files
committed
Fixed remote issue with log points
1 parent 7482baa commit a37f04d

File tree

3 files changed

+4
-56
lines changed

3 files changed

+4
-56
lines changed

HeartsAndMindsPlus.Altis/core/def/mission.sqf

+1
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,7 @@ if (isServer) then {
182182
btc_fobs = [[], [], []];
183183
btc_fob_rallypointTimer = 60 * btc_p_rallypointTimer;
184184
btc_body_deadPlayers = [];
185+
btc_log_points = [];
185186

186187
//Patrol
187188
btc_patrol_active = [];

HeartsAndMindsPlus.Altis/core/fnc/fob/create_s.sqf

+2-55
Original file line numberDiff line numberDiff line change
@@ -51,61 +51,8 @@ private _pad = createVehicle [_pad_type, _offsetPosition, [], 0, "CAN_COLLIDE"];
5151

5252
_pad setDir _direction;
5353

54-
55-
// LOGISTICS ADD
56-
57-
//Log point
58-
{
59-
_x params ["_object", "_helipad"];
60-
_action = ["Logistic", localize "STR_BTC_HAM_ACTION_LOC_MAIN", "\A3\ui_f\data\igui\cfg\simpleTasks\letters\L_ca.paa", {}, {true}] call ace_interact_menu_fnc_createAction;
61-
[_object, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
62-
_action = ["Repair_wreck", localize "STR_BTC_HAM_ACTION_LOGPOINT_REPWRECK", "\A3\ui_f\data\igui\cfg\simpleTasks\types\repair_ca.paa", {
63-
params ["", "", "_params"];
64-
_params call btc_log_fnc_repair_wreck
65-
}, {true}, {}, [_helipad], [0, 0, 0], 5] call ace_interact_menu_fnc_createAction;
66-
[_object, 0, ["ACE_MainActions", "Logistic"], _action] call ace_interact_menu_fnc_addActionToObject;
67-
_action = ["Refuel", localize "STR_BTC_HAM_ACTION_LOGPOINT_REFUELSOURCE", "\A3\ui_f\data\igui\cfg\simpleTasks\types\refuel_ca.paa", {
68-
params ["", "", "_params"];
69-
_params call btc_log_fnc_refuelSource
70-
}, {true}, {}, [_helipad], [0, 0, 0], 5] call ace_interact_menu_fnc_createAction;
71-
[_object, 0, ["ACE_MainActions", "Logistic"], _action] call ace_interact_menu_fnc_addActionToObject;
72-
_action = ["Rearm", localize "STR_BTC_HAM_ACTION_LOGPOINT_REARMSOURCE", "\A3\ui_f\data\igui\cfg\simpleTasks\types\rearm_ca.paa", {
73-
params ["", "", "_params"];
74-
_params call btc_log_fnc_rearmSource
75-
}, {true}, {}, [_helipad], [0, 0, 0], 5] call ace_interact_menu_fnc_createAction;
76-
[_object, 0, ["ACE_MainActions", "Logistic"], _action] call ace_interact_menu_fnc_addActionToObject;
77-
_action = ["Require_veh", localize "STR_BTC_HAM_ACTION_LOGPOINT_REQVEH", "\A3\ui_f\data\map\vehicleicons\iconCar_ca.paa", {
78-
params ["", "", "_params"];
79-
_params spawn btc_arsenal_fnc_garage
80-
}, {(serverCommandAvailable "#logout" || !isMultiplayer) and btc_p_garage}, {}, [_helipad], [0, 0, 0], 5] call ace_interact_menu_fnc_createAction;
81-
[_object, 0, ["ACE_MainActions", "Logistic"], _action] call ace_interact_menu_fnc_addActionToObject;
82-
_action = ["Tool", localize "str_3den_display3den_menubar_tools_text", "\A3\ui_f\data\igui\cfg\simpleTasks\letters\T_ca.paa", {}, {true}] call ace_interact_menu_fnc_createAction;
83-
[_object, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
84-
_action = ["Copy_inventory", localize "STR_BTC_HAM_ACTION_COPYPASTE_COPYI", "\A3\ui_f\data\igui\cfg\simpleTasks\types\download_ca.paa", {
85-
params ["", "", "_params"];
86-
_params call btc_log_fnc_inventoryCopy
87-
}, {true}, {}, [_helipad], [0, 0, 0.4], 5] call ace_interact_menu_fnc_createAction;
88-
[_object, 0, ["ACE_MainActions", "Tool"], _action] call ace_interact_menu_fnc_addActionToObject;
89-
_action = ["Paste_inventory", localize "STR_BTC_HAM_ACTION_COPYPASTE_PASTEI", "\A3\ui_f\data\igui\cfg\simpleTasks\types\upload_ca.paa", {
90-
params ["", "", "_params"];
91-
[btc_copy_inventory, _params] call btc_log_fnc_inventoryPaste
92-
}, {!isNil "btc_copy_inventory"}, {}, _helipad, [0, 0, 0.4], 5] call ace_interact_menu_fnc_createAction;
93-
[_object, 0, ["ACE_MainActions", "Tool"], _action] call ace_interact_menu_fnc_addActionToObject;
94-
_action = ["Restore_inventory", localize "STR_BTC_HAM_ACTION_RESTOREI", "\A3\Ui_f\data\GUI\Cfg\KeyframeAnimation\IconCurve_CA.paa", {
95-
params ["", "", "_params"];
96-
_params call btc_log_fnc_inventoryRestore
97-
}, {true}, {}, _helipad, [0, 0, 0.4], 5] call ace_interact_menu_fnc_createAction;
98-
[_object, 0, ["ACE_MainActions", "Tool"], _action] call ace_interact_menu_fnc_addActionToObject;
99-
if (btc_p_respawn_ticketsAtStart isNotEqualTo -1) then {
100-
_action = ["Bodybag", localize "STR_BTC_HAM_ACTION_LOGPOINT_BODYBAG", "\A3\Data_F_AoW\Logos\arma3_aow_logo_ca.paa", {
101-
params ["", "", "_params"];
102-
_params call btc_body_fnc_bagRecover;
103-
}, {true}, {}, [_helipad], [0, 0, 0], 5] call ace_interact_menu_fnc_createAction;
104-
[_object, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
105-
};
106-
} forEach [[_flag, _pad]];
107-
108-
// END
54+
btc_log_points = btc_log_points + [[_flag, _pad]];
55+
publicVariable "btc_log_points";
10956

11057
private _marker = createMarker [_FOB_name, _pos];
11158
_marker setMarkerSize [1, 1];

HeartsAndMindsPlus.Altis/core/fnc/int/add_actions.sqf

+1-1
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ _action = ["Search_intel", localize "STR_A3_Showcase_Marksman_BIS_tskIntel_title
124124
}, {true}, {}, [_helipad], [0, 0, 0], 5] call ace_interact_menu_fnc_createAction;
125125
[_object, 0, ["ACE_MainActions"], _action] call ace_interact_menu_fnc_addActionToObject;
126126
};
127-
} forEach [[btc_create_object, btc_create_object_point]];
127+
} forEach [[btc_create_object, btc_create_object_point], btc_log_points select 0];
128128

129129
//Place
130130
_action = ["Logistic", localize "STR_BTC_HAM_ACTION_LOC_MAIN", "\A3\ui_f\data\igui\cfg\simpleTasks\letters\L_ca.paa", {}, {true}] call ace_interact_menu_fnc_createAction;

0 commit comments

Comments
 (0)