diff --git a/config.sqf b/config.sqf index e65386b..17aab91 100644 --- a/config.sqf +++ b/config.sqf @@ -2,7 +2,6 @@ // // Server Occupation script by second_coming // -// // http://www.exilemod.com/profile/60-second_coming/ // // This script uses the fantastic DMS by Defent and eraser1 @@ -31,7 +30,7 @@ SC_occupyPlaces = true; // true if you want villages,towns,cities patr SC_occupyPlacesSurvivors = true; // true if you want a chance to spawn survivor AI as well as bandits (SC_occupyPlaces must be true to use this option) // Occupation Military (roaming AI near military buildings) -SC_occupyMilitary = true; // true if you want military buildings patrolled (specify which types of building below) +SC_occupyMilitary = false; // true if you want military buildings patrolled (specify which types of building below) SC_buildings = [ "Land_Cargo_Patrol_V1_F","Land_i_Barracks_V1_F","Land_i_Barracks_V1_dam_F", "Land_i_Barracks_V2_F", "Land_Cargo_House_V1_F","Land_Cargo_HQ_V1_F","Land_Cargo_HQ_V2_F","Land_Cargo_HQ_V3_F","Land_Cargo_Patrol_V2_F", @@ -42,7 +41,7 @@ SC_buildings = [ "Land_Cargo_Patrol_V1_F","Land_i_Barracks_V1_F", "Land_Army_hut_int","Land_Army_hut2_int" ]; -SC_occupyStatic = true; // true if you want to garrison AI in specific locations (not working yet) +SC_occupyStatic = false; // true if you want to garrison AI in specific locations (not working yet) SC_occupyVehicle = true; // true if you want to have roaming AI vehicles SC_occupyVehiclesLocked = true; // true if AI vehicles to stay locked until all the linked AI are dead @@ -51,7 +50,7 @@ SC_occupySky = true; // true if you want to have roaming AI helis SC_occupySea = false; // true if you want to have roaming AI boats SC_occupyPublicBus = true; // true if you want a roaming bus service -SC_occupyPublicBusClass = "Exile_Car_Ikarus_Party"; +SC_occupyPublicBusClass = "Exile_Car_Ikarus_Party"; // class name for the vehicle to use as the public bus SC_occupyLootCrates = true; // true if you want to have random loot crates with guards SC_numberofLootCrates = 6; // if SC_occupyLootCrates = true spawn this many loot crates (overrided below for Namalsk) @@ -90,7 +89,7 @@ if (worldName == 'Namalsk') then SC_numberofLootCrates = 3; SC_numberofHeliCrashes = 2; SC_maxNumberofBoats = 1; - SC_occupyPublicBusClass = "Exile_Car_LandRover_Urban"; + SC_occupyPublicBusClass = "Exile_Car_LandRover_Urban"; // the ikarus bus gets stuck on Namalsk }; diff --git a/initServer.sqf b/initServer.sqf index 0f3d805..27cdf9e 100644 --- a/initServer.sqf +++ b/initServer.sqf @@ -2,7 +2,7 @@ // // Server Occupation script by second_coming // -SC_occupationVersion = "v10 (12-04-2016)"; +SC_occupationVersion = "v11 (12-04-2016)"; // // http://www.exilemod.com/profile/60-second_coming/ // diff --git a/scripts/occupationMilitary.sqf b/scripts/occupationMilitary.sqf index 7e2e33d..c831f45 100644 --- a/scripts/occupationMilitary.sqf +++ b/scripts/occupationMilitary.sqf @@ -1,6 +1,6 @@ -private["_wp","_wp2","_wp3"]; - if (!isServer) exitWith {}; + +private["_wp","_wp2","_wp3"]; _logDetail = format ["[OCCUPATION Military]:: Starting Monitor"]; [_logDetail] call SC_fnc_log; diff --git a/scripts/occupationPlaces.sqf b/scripts/occupationPlaces.sqf index 5214c35..f267537 100644 --- a/scripts/occupationPlaces.sqf +++ b/scripts/occupationPlaces.sqf @@ -1,21 +1,7 @@ -//////////////////////////////////////////////////////////////////////// -// -// Server Occupation script by second_coming -// -// Version 2.0 -// -// http://www.exilemod.com/profile/60-second_coming/ -// -// This script uses the fantastic DMS by Defent and eraser1 -// -// http://www.exilemod.com/topic/61-dms-defents-mission-system/ -// -//////////////////////////////////////////////////////////////////////// +if (!isServer) exitWith {}; private["_wp","_wp2","_wp3"]; -if (!isServer) exitWith {}; - _logDetail = format ["[OCCUPATION]:: Starting Occupation Monitor @ %1",time]; [_logDetail] call SC_fnc_log; @@ -36,6 +22,8 @@ if(SC_occupyPlacesSurvivors) then WEST setFriend[RESISTANCE,1]; WEST setFriend[EAST,0]; EAST setFriend[WEST,0]; + + if(!isNil "DMS_Enable_RankChange") then { DMS_Enable_RankChange = true; }; }; diff --git a/scripts/occupationSea.sqf b/scripts/occupationSea.sqf index f80426c..c2e1471 100644 --- a/scripts/occupationSea.sqf +++ b/scripts/occupationSea.sqf @@ -1,8 +1,8 @@ +if (!isServer) exitWith {}; + _logDetail = format['[OCCUPATION:Sea] Started']; [_logDetail] call SC_fnc_log; -if (!isServer) exitWith {}; - // more than _scaleAI players on the server and the max AI count drops per additional player _currentPlayerCount = count playableUnits; _maxAIcount = SC_maxAIcount; diff --git a/scripts/occupationSky.sqf b/scripts/occupationSky.sqf index 2f7bdd9..ee360e3 100644 --- a/scripts/occupationSky.sqf +++ b/scripts/occupationSky.sqf @@ -1,8 +1,8 @@ +if (!isServer) exitWith {}; + _logDetail = format['[OCCUPATION:Sky] Started']; [_logDetail] call SC_fnc_log; -if (!isServer) exitWith {}; - // more than _scaleAI players on the server and the max AI count drops per additional player _currentPlayerCount = count playableUnits; _maxAIcount = SC_maxAIcount; diff --git a/scripts/occupationStatic.sqf b/scripts/occupationStatic.sqf index 35f7459..49bcc30 100644 --- a/scripts/occupationStatic.sqf +++ b/scripts/occupationStatic.sqf @@ -1,9 +1,10 @@ -private["_wp","_wp2","_wp3"]; - if (!isServer) exitWith {}; + _logDetail = format ["[OCCUPATION Static]:: Starting Monitor"]; [_logDetail] call SC_fnc_log; +private["_wp","_wp2","_wp3"]; + _middle = worldSize/2; _spawnCenter = [_middle,_middle,0]; // Centre point for the map _maxDistance = _middle; // Max radius for the map diff --git a/scripts/startOccupation.sqf b/scripts/startOccupation.sqf index 2fe8935..7ef25bc 100644 --- a/scripts/startOccupation.sqf +++ b/scripts/startOccupation.sqf @@ -1,3 +1,6 @@ +if (!isServer) exitWith {}; + + _logDetail = format ["[OCCUPATION]:: Occupation %2 Initialised at %1",time,SC_occupationVersion]; [_logDetail] call SC_fnc_log;