asdas
This commit is contained in:
Defent 2015-08-27 21:28:16 +02:00
parent ecf93db52e
commit c5f62ca028
17 changed files with 99 additions and 97 deletions

Binary file not shown.

View File

@ -1,37 +1,30 @@
// Loads compiles
// Made by Defent for Defents Mission System
// And for Numenadayz.com
if(isServer) then {
// compilation list
// Compiles for custom files.
DMS_findSafePos = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_findSafePos.sqf";
DMS_createBox = compile preprocessFileLineNumbers "\x\addons\dms\crates\DMS_CreateBox.sqf";
DMS_CreateMarker = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_CreateMarker.sqf";
DMS_spawnAI = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_spawnAI.sqf";
DMS_selectMission = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_selectMission.sqf";
DMS_CleanUp = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_CleanUp.sqf";
//DMS_Config = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_Config.sqf";
DMS_markerLoop = compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_markerLoop.sqf";
// CONFIGS
//DMS_UseMissions = true;
//DMS_DetectNearWater = true;
//DMS_MissionMin = 60; // Timers in seconds
//DMS_MissionMax = 120; // Timers in seconds
//DMS_player_minDist = 700;
// CONFIGS
uiSleep 2;
//[] call compile preprocessFileLineNumbers "\x\addons\dms\scripts\DMS_selectMission.sqf";
//[] execVM "\x\addons\dms\scripts\DMS_selectMission.sqf";
// Selects the mission
[] call DMS_selectMission;
diag_log "DMS :: Functions loaded - starting the rest of the script.";
};
// Loops markers
//[] call DMS_markerLoop;
diag_log "DMS :: Functions loaded - starting the rest of the script.";

View File

@ -28,7 +28,7 @@ uiSleep 2;
//[(_pos),(5),(4)] call DMS_SpawnAI;
[_pos,5,4] call DMS_SpawnAI;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
/*
@ -40,12 +40,12 @@ uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
["Ended","Clean"] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -34,21 +34,17 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
[_pos] call DMS_CleanUp;
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -33,19 +33,15 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -31,7 +31,7 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
@ -39,13 +39,10 @@ uiSleep 1;
// Run Cleanup
[] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
[_pos] call DMS_CleanUp;
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -34,20 +34,16 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -35,7 +35,7 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
@ -43,12 +43,8 @@ uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -33,7 +33,7 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
@ -41,13 +41,10 @@ uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
[_pos] call DMS_CleanUp;
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -34,20 +34,16 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -35,19 +35,16 @@ uiSleep 2;
waitUntil{sleep 25; {isPlayer _x && _x distance _pos < 30 } count playableUnits > 0};
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -40,12 +40,8 @@ uiSleep 1;
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
// Run Cleanup
[] call DMS_CleanUp;
[_pos] call DMS_CleanUp;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
sleep 150;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -1,15 +1,16 @@
private["_mark","_name"];
DMS_Cords = _this select 0;
DMS_MainName = _this select 1;
private["_mark","_name"];
DMS_Cords = _this select 0;
DMS_MainName = _this select 1;
_mark = createMarker ["DMS_MainMarker", DMS_Cords];
"DMS_MainMarker" setMarkerColor "ColorRed";
"DMS_MainMarker" setMarkerShape "ELLIPSE";
"DMS_MainMarker" setMarkerBrush "Grid";
"DMS_MainMarker" setMarkerSize [150,150];
_name = createMarker ["DMS_MainDot", DMS_Cords];
"DMS_MainDot" setMarkerColor "ColorBlack";
"DMS_MainDot" setMarkerType "mil_dot";
"DMS_MainDot" setMarkerText DMS_MainName;
_mark = createMarker ["DMS_MainMarker", DMS_Cords];
"DMS_MainMarker" setMarkerColor "ColorRed";
"DMS_MainMarker" setMarkerShape "ELLIPSE";
"DMS_MainMarker" setMarkerBrush "Grid";
"DMS_MainMarker" setMarkerSize [150,150];
_name = createMarker ["DMS_MainDot", DMS_Cords];
"DMS_MainDot" setMarkerColor "ColorBlack";
"DMS_MainDot" setMarkerType "mil_dot";
"DMS_MainDot" setMarkerText DMS_MainName;

View File

@ -1,4 +1,6 @@
private ["_pos"];
_pos = _this select 0;
{
_this enableSimulation false;
_this removeAllMPEventHandlers "mpkilled";
_this removeAllMPEventHandlers "mphit";
@ -14,6 +16,12 @@
deleteVehicle _this;
deleteGroup (group _this);
_this = nil;
diag_log format ["DMS :: Markers, vehicles, AI and loot boxes and other items have been cleaned up!"];
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
} forEach (_pos nearObjects 50);

View File

@ -1,7 +1,10 @@
private ["_pos","_centerPos","_fetchPos"];
private ["_pos","_centerPos","_fetchPos","_mapRadii"];
//_centerPos = [getMarkerPos "center",4000,20000,10,0,25,0];
_centerPos = [getMarkerPos "center",2000,4000,10,0,25,0];
//_centerPos = [getMarkerPos "center",2000,4000,10,0,25,0];
_centerPos = [15440, 15342, 0];
_mapRadii = 17000;
_fetchPos = false;
@ -11,7 +14,8 @@ while {!_fetchPos} do {
sleep 2;
_pos = _centerPos call BIS_fnc_findSafePos;
//_pos = _centerPos call BIS_fnc_findSafePos;
_pos = [_centerPos,150,_mapRadii,10,0,20,0] call BIS_fnc_findSafePos;
_int = _int + 1;
_fetchPos = true;
@ -24,4 +28,4 @@ while {!_fetchPos} do {
// water if exception to be added above
};
_pos
_pos

View File

@ -0,0 +1,29 @@
/*
private["_mark","_name","_loop"];
_loop = true;
diag_log format ["DMS :: Marker loop script started."];
while {_loop} do
{
uiSleep 25;
if (!(getMarkerColor "DMS_MainMarker" = "")) then {
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
_mark = createMarker ["DMS_MainMarker", DMS_Cords];
"DMS_MainMarker" setMarkerColor "ColorRed";
"DMS_MainMarker" setMarkerShape "ELLIPSE";
"DMS_MainMarker" setMarkerBrush "Grid";
"DMS_MainMarker" setMarkerSize [150,150];
_name = createMarker ["DMS_MainDot", DMS_Cords];
"DMS_MainDot" setMarkerColor "ColorBlack";
"DMS_MainDot" setMarkerType "mil_dot";
"DMS_MainDot" setMarkerText DMS_MainName;
};
};
*/

Binary file not shown.