Toggle Mission Success/Fail Messages

You can now choose to broadcast to players when a mission is completed/failed.

Credit to MonkeyNutz for the idea.
This commit is contained in:
eraser1 2018-11-07 18:24:02 -06:00
parent a60545c807
commit 01a98f1b5b
3 changed files with 20 additions and 4 deletions

View File

@ -53,6 +53,8 @@ DMS_SpawnMissions_Scheduled = false; // Whether or not to spawn missions in a sc
/* Mission System Settings */
/*General settings for dynamic missions*/
DMS_DynamicMission = true; // Enable/disable dynamic mission system.
DMS_BroadcastMissionSuccess = true; // Whether or not to broadcast the completion of a mission.
DMS_BroadcastMissionFail = true; // Whether or not to broadcast the "failure" of a mission.
DMS_MaxBanditMissions = 3; // Maximum number of Bandit Missions running at the same time
DMS_TimeToFirstMission = [180,420]; // [Minimum,Maximum] time between first mission spawn. | DEFAULT: 3-7 minutes.
DMS_TimeBetweenMissions = [600,900]; // [Minimum,Maximum] time between missions (if mission limit is not reached) | DEFAULT: 10-15 mins
@ -64,6 +66,8 @@ DMS_SpawnMissions_Scheduled = false; // Whether or not to spawn missions in a sc
/*General settings for static missions*/
DMS_StaticMission = true; // Enable/disable static mission system.
DMS_BroadcastStaticMissionSuccess = true; // Whether or not to broadcast the completion of a static mission.
DMS_BroadcastStaticMissionFail = true; // Whether or not to broadcast the "failure" of a static mission.
DMS_MaxStaticMissions = 1; // Maximum number of Static Missions running at the same time. It's recommended you set this to the same amount of static missions that you have in total. This config will be ignored by "DMS_StaticMissionsOnServerStart".
DMS_TimeToFirstStaticMission = [30,30]; // [Minimum,Maximum] time between first static mission spawn. | DEFAULT: 3-7 minutes.
DMS_TimeBetweenStaticMissions = [900,1800]; // [Minimum,Maximum] time between static missions (if static mission limit is not reached) | DEFAULT: 15-30 mins

View File

@ -192,7 +192,10 @@
};
};
[_missionName,_msgWIN] call DMS_fnc_BroadcastMissionStatus;
if (DMS_BroadcastMissionSuccess) then
{
[_missionName,_msgWIN] call DMS_fnc_BroadcastMissionStatus;
};
[_markers,"win"] call DMS_fnc_RemoveMarkers;
DMS_Mission_Arr deleteAt _forEachIndex;
@ -281,7 +284,10 @@
};
};
[_missionName,_msgLose] call DMS_fnc_BroadcastMissionStatus;
if (DMS_BroadcastMissionFail) then
{
[_missionName,_msgLose] call DMS_fnc_BroadcastMissionStatus;
};
[_markers,"lose"] call DMS_fnc_RemoveMarkers;
DMS_Mission_Arr deleteAt _forEachIndex;

View File

@ -193,7 +193,10 @@
};
};
[_missionName,_msgWIN] call DMS_fnc_BroadcastMissionStatus;
if (DMS_BroadcastStaticMissionSuccess) then
{
[_missionName,_msgLose] call DMS_fnc_BroadcastMissionStatus;
};
[_markers,"win"] call DMS_fnc_RemoveMarkers;
DMS_StaticMission_Arr deleteAt _forEachIndex;
@ -278,7 +281,10 @@
};
};
[_missionName,_msgLose] call DMS_fnc_BroadcastMissionStatus;
if (DMS_BroadcastStaticMissionFail) then
{
[_missionName,_msgLose] call DMS_fnc_BroadcastMissionStatus;
};
[_markers,"lose"] call DMS_fnc_RemoveMarkers;
DMS_StaticMission_Arr deleteAt _forEachIndex;