Minor Update

Some tweaks
Update inaccurate function description, and outdated usage
This commit is contained in:
eraser1 2016-07-26 21:10:32 -05:00
parent 861207b9f0
commit 9060d8644c
10 changed files with 30 additions and 8 deletions

View File

@ -230,6 +230,7 @@ DMS_SpawnMissions_Scheduled = false; // Whether or not to spawn missions in a sc
/*Mission notification settings*/
DMS_RandomBanditMissionsOnStart = 0; // Number of (random) bandit missions to spawn when the server starts, just so players don't have to wait for missions to spawn.
DMS_BanditMissionTypes = [ // List of missions with spawn chances. If they add up to 100%, they represent the percentage chance each one will spawn
["bandits",3],
["bauhaus",3],

View File

@ -210,6 +210,10 @@ if (DMS_ShowDifficultyColorLegend) then
};
// Add heli paratroopers monitor to the thread system.
[5, DMS_fnc_HeliParatroopers_Monitor, [], true] call ExileServer_system_thread_addTask;
{
[_x] call DMS_fnc_ImportFromM3E_Static; // Spawn all of the bases that are supposed to be spawned on server startup.
} forEach DMS_BasesToImportOnServerStart;
@ -245,8 +249,10 @@ if (DMS_StaticMission) then
};
// Add heli paratroopers monitor to the thread system.
[5, DMS_fnc_HeliParatroopers_Monitor, [], true] call ExileServer_system_thread_addTask;
for "_i" from 1 to DMS_RandomBanditMissionsOnStart do
{
[selectRandom DMS_BanditMissionTypesArray] call DMS_fnc_SpawnBanditMission;
};

View File

@ -275,7 +275,7 @@ _added =
[
[
_sub1,
{_this setVariable ["ExileMoney",15000,true]} // The submarine will have 15000 poptabs after the mission completes. The capacity is actually 5000, but I just overload it.
{_this setVariable ["ExileMoney",25000,true]} // The submarine will have 25,000 poptabs after the mission completes. The capacity is actually 5000, but I just overload it.
]
],
[],

View File

@ -16,6 +16,9 @@ if (!DMS_ai_offload_to_client) exitWith {};
private _group = _x;
if !(isPlayer _leader) then
{
// Ignore Exile flyovers.
if (((side _group) isEqualTo independent) && {(count (units _group)) isEqualTo 1}) exitWith {};
if (DMS_DEBUG) then
{
(format ["AILocalityManager :: Finding owner for group: %1",_group]) call DMS_fnc_DebugLog;

View File

@ -15,6 +15,7 @@
_traderZoneNearLimit, // NUMBER (distance): Minimum distance from a trader zone.
_missionNearLimit, // NUMBER (distance): Minimum distance from another mission.
_playerNearLimit, // NUMBER (distance): Minimum distance from a player.
_territoryNearLimit, // NUMBER (distance): Minimum distance from a territory.
_throttleParams // BOOLEAN: Whether or not some of the distance values should be throttled on repeated attempts.
] call DMS_fnc_findSafePos;
*/

View File

@ -22,12 +22,18 @@ if !(params
if (_freeze) then
{
{_x enableSimulationGlobal false} forEach (units _group);
{
_x enableSimulationGlobal false;
(vehicle _x) enableSimulationGlobal false;
} forEach (units _group);
_group setVariable ["DMS_isGroupFrozen",true];
DMS_FrozenAIGroups pushBack _group;
}
else
{
{_x enableSimulationGlobal true} forEach (units _group);
{
_x enableSimulationGlobal true;
(vehicle _x) enableSimulationGlobal true;
} forEach (units _group);
_group setVariable ["DMS_isGroupFrozen",false];
};

View File

@ -123,7 +123,7 @@ else
{
_missionPosition =
[
25,DMS_WaterNearBlacklist,DMS_MinSurfaceNormal,DMS_SpawnZoneNearBlacklist,DMS_TraderZoneNearBlacklist,DMS_MissionNearBlacklist,DMS_PlayerNearBlacklist,DMS_TerritoryNearBlacklist,DMS_ThrottleBlacklists
5,DMS_WaterNearBlacklist,DMS_MinSurfaceNormal,DMS_SpawnZoneNearBlacklist,DMS_TraderZoneNearBlacklist,DMS_MissionNearBlacklist,DMS_PlayerNearBlacklist,DMS_TerritoryNearBlacklist,DMS_ThrottleBlacklists
] call DMS_fnc_FindSafePos;
_extraParams = _this;

View File

@ -51,6 +51,11 @@ if (_vehClass == "random") then
private _veh = createVehicle [_vehClass, _spawnPos, [], 0, "NONE"];
clearBackpackCargoGlobal _veh;
clearItemCargoGlobal _veh;
clearWeaponCargoGlobal _veh;
_veh setFuel 1;
_veh engineOn true;
_veh lock 2;

View File

@ -73,7 +73,7 @@ private _spawnPos =
0,
0,
DMS_RHeli_MinDistFromPlayers,
true,
0,
false
]
] call DMS_fnc_FindSafePos_InRange

View File

@ -1,4 +1,4 @@
![Arma 1.62](https://img.shields.io/badge/Arma-1.62-blue.svg) ![Exile 1.0.0 Potato](https://img.shields.io/badge/Exile-1.0.0%20Potato-C72651.svg) ![DMS Version](https://img.shields.io/badge/DMS%20Version-2016--07--19%20v2-blue.svg) ![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)
![Arma 1.62](https://img.shields.io/badge/Arma-1.62-blue.svg) ![Exile 1.0.0 Potato](https://img.shields.io/badge/Exile-1.0.0%20Potato-C72651.svg) ![DMS Version](https://img.shields.io/badge/DMS%20Version-2016--07--26%20v2-blue.svg) ![Build Status](https://img.shields.io/badge/build-passing-brightgreen.svg)
# To the User: