Logic improvement, forgot a couple things in readme

* Improved DMS_fnc_FindSafePos when checking for nearby missions - it
should now use the proper mission location (if it was given correctly in
the parameters for DMS_fnc_CreateMarker) instead of the marker position,
which could be offset. Thanks to [Rod
Serling](https://github.com/Rod-Serling) for complaining about this
"issue" :P

Forgot a couple things for the previous patch notes
This commit is contained in:
eraser1 2015-09-25 23:19:00 -05:00
parent ebe199eaf2
commit cec27d7d35
4 changed files with 17 additions and 3 deletions

View File

@ -65,6 +65,8 @@ _dot setMarkerColor "ColorBlack";
_dot setMarkerType "mil_dot";
_dot setMarkerText _text;
missionNamespace setVariable [format ["%1_pos",_dot], _pos];
if (_randomMarker) then
{
_dir = random 360;

View File

@ -10,7 +10,7 @@
*/
private ["_nearestObjectMinDistance","_maxTerrainGradient","_safePosParams","_validspot","_i","_pos"];
private ["_nearestObjectMinDistance","_maxTerrainGradient","_safePosParams","_validspot","_i","_pos","_missionPos"];
params
[
@ -71,10 +71,16 @@ while{!_validspot} do
};
// Check for nearby missions
if ((DMS_MissionNearBlacklist>0) && {((_x find "DMS_MissionMarkerDot")>-1) && {((getMarkerPos _x) distance2D _pos)<=DMS_MissionNearBlacklist}}) then
if (DMS_MissionNearBlacklist>0) then
{
_missionPos = missionNamespace getVariable [format ["%1_pos",_x], []];
diag_log format["Marker %1 has _missionPos: %2",_x,_missionPos];
if (!(_missionPos isEqualTo []) && {(_missionPos distance2D _pos)<=DMS_MissionNearBlacklist}) then
{
throw ("another mission");
};
};
} forEach allMapMarkers;
// No exceptions found

Binary file not shown.

View File

@ -52,12 +52,18 @@ if (!hasInterface && !isServer) then
## Changelog:
#### September 25, 2015 (11:30 PM CST-America):
* Improved DMS_fnc_FindSafePos when checking for nearby missions - it should now use the proper mission location (if it was given correctly in the parameters for DMS_fnc_CreateMarker) instead of the marker position, which could be offset. Thanks to [Rod Serling](https://github.com/Rod-Serling) for complaining about this "issue" :P
#### September 25, 2015 (7:30 PM CST-America):
* NEW CONFIG VALUES:
DMS_SpawnMineWarningSigns
DMS_BulletProofMines
* You can now manually define the rare loot chance per crate.
* You can now define the mine amount and radius directly from the call for DMS_fnc_SpawnMinefield.
* You can now define the classname of the mine to be spawned in the minefield.
* Mines can now be configured to be bulletproof (AT mines by default will explode when shot).
#### September 25, 2015 (1:30 AM CST-America):