Skip to content

Commit 7e43798

Browse files
committed
Replaced BIS_fnc_MP with remoteExec
Missed a few. Also removed some duplicate spawn scopes
1 parent 6cfa007 commit 7e43798

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

source/functions/initZones/fn_locatorzonesV2.sqf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ player globalChat format["All zones found. Welcome to %1, %2",_worldName,profile
6767

6868
//hint format["MISSION INITIALIZATION COMPLETE!\nCampaign generated\nzones: %1\nmaximum radius: %2m\nminimum radius: %3m\nmax. distance from HQ: %4m\n\nIf you experience performance issues, restart the mission and try reducing the amount of zones/and or their radius",zones_number,zones_max_radius,zones_min_radius,zones_max_dist_from_hq];
6969
"MISSION INITIALIZATION COMPLETE!" remoteExec ["systemChat"];
70-
[[{player globalChat "MISSION INITIALIZATION COMPLETE!"}],"BIS_fnc_Spawn",true,false] call BIS_fnc_MP;
71-
(format["MISSION INITIALIZATION COMPLETE!\nCampaign generated\nzones: %1\nmaximum radius: %2m\nminimum radius: %3m\nmax. distance from HQ: %4m\n\nIf you experience performance issues, restart the mission and try reducing the amount of zones/and or their radius",zones_number,zones_max_radius,zones_min_radius,zones_max_dist_from_hq]) remoteExec ["hint"];
72-
[[{hint format["MISSION INITIALIZATION COMPLETE!\nCampaign generated\nzones: %1\nmaximum radius: %2m\nminimum radius: %3m\nmax. distance from HQ: %4m\n\nIf you experience performance issues, restart the mission and try reducing the amount of zones/and or their radius",zones_number,zones_max_radius,zones_min_radius,zones_max_dist_from_hq]}],"BIS_fnc_Spawn",true,false] call BIS_fnc_MP;
70+
(format["MISSION INITIALIZATION COMPLETE!\nCampaign generated\nzones: %1\nmaximum radius: %2m\nminimum radius: %3m\nmax. distance from HQ: %4m\n\nIf you experience performance issues, restart the mission and try reducing the amount of zones/and or their radius",zones_number,zones_max_radius,zones_min_radius,zones_max_dist_from_hq]) remoteExecCall ["hint"];
7371
[] spawn {
7472
sleep 9;
7573
[] call duws_fnc_bottom_right_message;

source/functions/missions/fn_destroy_mission.sqf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ deleteMarker str(_markername);
6262
//player removeSimpleTask _taskhandle;
6363

6464
//NEW
65-
[["_taskhandle", "WEST"],"BIS_fnc_deleteTask", true, true] call BIS_fnc_MP;
6665
["_taskhandle", "WEST"] remoteExecCall ["BIS_fnc_deleteTask", 0, true];
6766

6867
// Give cookies (bonus & notifications)

source/functions/missions/fn_sabotage_mission.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ str(_markername2) setMarkerAlpha 0.3;
2626
// create TOWER
2727
_tower = createVehicle ["Land_dp_transformer_F", _MissionPos, [], 0, "NONE"];
2828
_tower addEventHandler ["HandleDamage", {0}];
29-
_tower addaction ["Sabotage", duws_fnc_sabotage_success,[_missionPos,_mission_name,_markername,_markername2]];
29+
_tower addaction ["Sabotage", {_this call duws_fnc_sabotage_success;},[_missionPos,_mission_name,_markername,_markername2]];
3030

3131
// TASK AND NOTIFICATION
3232
_VARtaskgeneratedName = format["tsksabot%1%2",round(_MissionPos select 0),round(_Missionpos select 1)]; // generate variable name for task
Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
params ["_fob"];
22

3-
_fob addaction ["<t color='#ff00ff'>Player stats</t>",{_this spawn duws_fnc_info}, "", 0, true, true, "", "_this == player"];
4-
_fob addaction ["<t color='#15ff00'>Request ammobox drop(2CP)</t>",{_this spawn duws_fnc_fob_ammobox}, "", 0, true, true, "", "_this == player"];
3+
_fob addaction ["<t color='#ff00ff'>Player stats</t>",duws_fnc_info, "", 0, true, true, "", "_this == player"];
4+
_fob addaction ["<t color='#15ff00'>Request ammobox drop(2CP)</t>",duws_fnc_fob_ammobox, "", 0, true, true, "", "_this == player"];
55

66
if (support_armory_available) then {
77
_fob addaction ["<t color='#ff0066'>Armory (VA)</t>",{[] call duws_fnc_bisArsenal}, "", 0, true, true, "", "_this == player"];
88
};
99

10-
_fob addaction ["<t color='#ffb700'>Squad manager</t>",{_this spawn duws_fnc_squadmng}, "", 0, true, true, "", "_this == player"];
11-
_fob addaction ["<t color='#ffb700'>FOB manager</t>",{_this spawn duws_fnc_fobmanageropen}, "", 0, true, true, "", "_this == player"];
10+
_fob addaction ["<t color='#ffb700'>Squad manager</t>",duws_fnc_squadmng, "", 0, true, true, "", "_this == player"];
11+
_fob addaction ["<t color='#ffb700'>FOB manager</t>",duws_fnc_fobmanageropen, "", 0, true, true, "", "_this == player"];
1212

1313
if (isServer) then {
14-
_fob addaction ["<t color='#00b7ff'>Rest (wait/save)</t>",{[]spawn duws_fnc_savegame}, "", 0, true, true, "", "_this == player"];
14+
_fob addaction ["<t color='#00b7ff'>Rest (wait/save)</t>",duws_fnc_savegame, "", 0, true, true, "", "_this == player"];
1515
} else {
16-
_fob addaction ["<t color='#00b7ff'>Rest</t>", {[] spawn duws_fnc_savegameClient}, "", 0, true, true, "", "_this == player"];
16+
_fob addaction ["<t color='#00b7ff'>Rest</t>", duws_fnc_savegameClient, "", 0, true, true, "", "_this == player"];
1717
};

0 commit comments

Comments
 (0)