asd
This commit is contained in:
Defent 2015-08-27 21:57:18 +02:00
parent ca6308ad05
commit ff0ddf0319
14 changed files with 21 additions and 23 deletions

View File

@ -17,6 +17,7 @@
//DMS_MissionMin = 60; // Timers in seconds
//DMS_MissionMax = 120; // Timers in seconds
//DMS_player_minDist = 700;
DMS_CleanUpTimer = 25; // set to 300 for 5 minutes to clean up the missions.
// CONFIGS
uiSleep 2;

View File

@ -18,7 +18,7 @@ diag_log format ["DMS :: Main Mission 1 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";
@ -31,11 +31,6 @@ uiSleep 2;
waitUntil{sleep 1; {(isPlayer _x) && (_x distance _pos < 30) } count playableUnits > 0};
uiSleep 1;
/*
[_pos] call MissionCompleted;
[_pos,] call MissionCleanup;
*/
["standardHintRequest",["Mission has ended, good job!"]] call ExileServer_system_network_send_broadcast;
@ -43,9 +38,6 @@ uiSleep 1;
[_pos] call DMS_CleanUp;
uiSleep 150;
[] call DMS_SelectMission;

View File

@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 10 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;

View File

@ -21,7 +21,7 @@ diag_log format ["DMS :: Main Mission 2 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;

View File

@ -20,7 +20,7 @@ diag_log format ["DMS :: Main Mission 3 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;
//_crate = [_pos,40,4,2,2] execVM "mission\crates\MM_Box1.sqf";

View File

@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 4 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;

View File

@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 5 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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, amount of weapons, amount of ammo] call createBox;
[1,_crate] call DMS_createBox;

View File

@ -21,7 +21,7 @@ diag_log format ["DMS :: Main Mission 6 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;

View File

@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 7 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;

View File

@ -22,7 +22,7 @@ diag_log format ["DMS :: Main Mission 8 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
uiSleep 2;

View File

@ -21,7 +21,7 @@ diag_log format ["DMS :: Main Mission 9 started at (%1)",_pos];
[_pos,_missname] call DMS_CreateMarker;
// 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;
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;

View File

@ -1,5 +1,8 @@
private ["_pos"];
_pos = _this select 0;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
uiSleep DMS_CleanUpTimer;
{
_x enableSimulation false;
_x removeAllMPEventHandlers "mpkilled";
@ -16,10 +19,10 @@ _pos = _this select 0;
deleteVehicle _x;
deleteGroup (group _x);
_x = nil;
deleteMarker "DMS_MainMarker";
deleteMarker "DMS_MainDot";
} forEach (_pos nearObjects 50);
} forEach (_pos nearObjects 80);
diag_log "DMS :: Mission got cleaned up!";

View File

@ -15,11 +15,14 @@
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 addeventhandler ["fired", {(_this select 0) setvehicleammo 1}];
removeAllAssignedItems _soldier;
removeUniform _soldier;
removeHeadgear _soldier;
removeAllItems _soldier;
removeAllWeapons _soldier;
uiSleep 1;
_soldier forceaddUniform "U_I_officerUniform";
_soldier addVest " V_TacVest_blk_POLICE ";
_soldier addGoggles "G_Tactical_Clear";
@ -105,5 +108,4 @@
};
};
};
_soldier

Binary file not shown.