mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
asd
asd
This commit is contained in:
parent
ca6308ad05
commit
ff0ddf0319
@ -17,6 +17,7 @@
|
|||||||
//DMS_MissionMin = 60; // Timers in seconds
|
//DMS_MissionMin = 60; // Timers in seconds
|
||||||
//DMS_MissionMax = 120; // Timers in seconds
|
//DMS_MissionMax = 120; // Timers in seconds
|
||||||
//DMS_player_minDist = 700;
|
//DMS_player_minDist = 700;
|
||||||
|
DMS_CleanUpTimer = 25; // set to 300 for 5 minutes to clean up the missions.
|
||||||
// CONFIGS
|
// CONFIGS
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -18,7 +18,7 @@ diag_log format ["DMS :: Main Mission 1 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
|
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
|
||||||
@ -31,20 +31,12 @@ uiSleep 2;
|
|||||||
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
|
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
|
||||||
|
|
||||||
uiSleep 1;
|
uiSleep 1;
|
||||||
/*
|
|
||||||
|
|
||||||
[_pos] call MissionCompleted;
|
|
||||||
[_pos,] call MissionCleanup;
|
|
||||||
*/
|
|
||||||
|
|
||||||
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
|
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
|
||||||
|
|
||||||
// Run Cleanup
|
// Run Cleanup
|
||||||
[_pos] call DMS_CleanUp;
|
[_pos] call DMS_CleanUp;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
uiSleep 150;
|
uiSleep 150;
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 10 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -21,7 +21,7 @@ diag_log format ["DMS :: Main Mission 2 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -20,7 +20,7 @@ diag_log format ["DMS :: Main Mission 3 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
|
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
|
||||||
|
@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 4 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 5 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
//[_crate] call createBox;
|
//[_crate] call createBox;
|
||||||
// [_crate, amount of weapons, amount of ammo] call createBox;
|
// [_crate, amount of weapons, amount of ammo] call createBox;
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
@ -21,7 +21,7 @@ diag_log format ["DMS :: Main Mission 6 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 7 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 8 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
|
@ -21,7 +21,7 @@ diag_log format ["DMS :: Main Mission 9 started at (%1)",_pos];
|
|||||||
[_pos,_missname] call DMS_CreateMarker;
|
[_pos,_missname] call DMS_CreateMarker;
|
||||||
|
|
||||||
// Spawn Box
|
// Spawn Box
|
||||||
_crate = createVehicle ["Box_NATO_AmmoOrd_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
_crate = createVehicle ["Box_NATO_Wps_F",[(_pos select 0) - 10, _pos select 1,0],[], 0, "CAN_COLLIDE"];
|
||||||
[1,_crate] call DMS_createBox;
|
[1,_crate] call DMS_createBox;
|
||||||
|
|
||||||
uiSleep 2;
|
uiSleep 2;
|
||||||
@ -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;
|
uiSleep 1;
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
private ["_pos"];
|
private ["_pos"];
|
||||||
_pos = _this select 0;
|
_pos = _this select 0;
|
||||||
|
deleteMarker "DMS_MainMarker";
|
||||||
|
deleteMarker "DMS_MainDot";
|
||||||
|
uiSleep DMS_CleanUpTimer;
|
||||||
{
|
{
|
||||||
_x enableSimulation false;
|
_x enableSimulation false;
|
||||||
_x removeAllMPEventHandlers "mpkilled";
|
_x removeAllMPEventHandlers "mpkilled";
|
||||||
@ -16,10 +19,10 @@ _pos = _this select 0;
|
|||||||
deleteVehicle _x;
|
deleteVehicle _x;
|
||||||
deleteGroup (group _x);
|
deleteGroup (group _x);
|
||||||
_x = nil;
|
_x = nil;
|
||||||
deleteMarker "DMS_MainMarker";
|
|
||||||
deleteMarker "DMS_MainDot";
|
|
||||||
|
|
||||||
} forEach (_pos nearObjects 50);
|
} forEach (_pos nearObjects 80);
|
||||||
|
|
||||||
|
diag_log "DMS :: Mission got cleaned up!";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -15,11 +15,14 @@
|
|||||||
|
|
||||||
for "_i" from 1 to _units do {
|
for "_i" from 1 to _units do {
|
||||||
_soldier = _group createUnit ["i_g_soldier_unarmed_f", [_pos select 0, _pos select 1, 0], [], 1, "Form"];
|
_soldier = _group createUnit ["i_g_soldier_unarmed_f", [_pos select 0, _pos select 1, 0], [], 1, "Form"];
|
||||||
|
_soldier addeventhandler ["fired", {(_this select 0) setvehicleammo 1}];
|
||||||
|
|
||||||
removeAllAssignedItems _soldier;
|
removeAllAssignedItems _soldier;
|
||||||
removeUniform _soldier;
|
removeUniform _soldier;
|
||||||
removeHeadgear _soldier;
|
removeHeadgear _soldier;
|
||||||
removeAllItems _soldier;
|
removeAllItems _soldier;
|
||||||
removeAllWeapons _soldier;
|
removeAllWeapons _soldier;
|
||||||
|
uiSleep 1;
|
||||||
_soldier forceaddUniform "U_I_officerUniform";
|
_soldier forceaddUniform "U_I_officerUniform";
|
||||||
_soldier addVest " V_TacVest_blk_POLICE ";
|
_soldier addVest " V_TacVest_blk_POLICE ";
|
||||||
_soldier addGoggles "G_Tactical_Clear";
|
_soldier addGoggles "G_Tactical_Clear";
|
||||||
@ -105,5 +108,4 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_soldier
|
_soldier
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user