mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
0b0c290495
Added configurable distance to when cleanup will be aborted for an object with a player nearby. Created TargetsKilled function Rewrite BroadCastMissionStatus (the function was doing the same thing for each switch case except one, so I just put that in a select statement) Created function information for CleanUp. CleanUp was using "_this" instead of "_x" Created more/better debug info for CleanUp Changed calling parameters for FillCrate. Increased robustness of FillCrate. Made FillCrate prettier Created function information for FindSafePos Created function information for IsPlayerNearByARRAY (deprecated) Tweaks to MissionStatusCheck: Created debug log for empty "DMS_Mission_Arr" Fixed placement of index increase (otherwise deleteAt would remove incorrect element if it existed) Created MissionSuccessState Created logs for RemoveMarkers Created function information for RemoveMarkers + made it prettier Created function information for SelectMagazine Created TargetsKilled
37 lines
957 B
Plaintext
37 lines
957 B
Plaintext
/*
|
|
DMS_BroadcastMissionStatus
|
|
Created by eraser1
|
|
|
|
Usage:
|
|
_message call DMS_BroadcastMissionStatus;
|
|
|
|
Requires "DMS_PlayerNotificationTypes".
|
|
|
|
Notification type "dynamicTextRequest" requires "DMS_dynamicText_Size" and "DMS_dynamicText_Color".
|
|
*/
|
|
|
|
|
|
if (DMS_DEBUG) then
|
|
{
|
|
diag_log format["DMS_DEBUG BroadcastMissionStatus :: Notification types: |%1| for broadcasting mission status: %2",DMS_PlayerNotificationTypes,_this];
|
|
};
|
|
|
|
if !((typeName _this) isEqualTo "STRING") then {
|
|
if (DMS_DEBUG) then
|
|
{
|
|
diag_log format["DMS_DEBUG BroadcastMissionStatus :: Converting %1 to string...",_this];
|
|
};
|
|
_this = str _this;
|
|
};
|
|
{
|
|
private "_args";
|
|
|
|
_args = // Only include extra parameters if using "dynamicTextRequest"
|
|
[
|
|
[_x, [_this]],
|
|
[_x, [_this,0,DMS_dynamicText_Size,DMS_dynamicText_Color]]
|
|
] select (_x isEqualTo "dynamicTextRequest");
|
|
|
|
_args call ExileServer_system_network_send_broadcast;
|
|
false;
|
|
} count DMS_PlayerNotificationTypes; |