mirror of
https://github.com/Defent/DMS_Exile.git
synced 2024-08-30 16:52:12 +00:00
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:
parent
ebe199eaf2
commit
cec27d7d35
@ -65,6 +65,8 @@ _dot setMarkerColor "ColorBlack";
|
|||||||
_dot setMarkerType "mil_dot";
|
_dot setMarkerType "mil_dot";
|
||||||
_dot setMarkerText _text;
|
_dot setMarkerText _text;
|
||||||
|
|
||||||
|
missionNamespace setVariable [format ["%1_pos",_dot], _pos];
|
||||||
|
|
||||||
if (_randomMarker) then
|
if (_randomMarker) then
|
||||||
{
|
{
|
||||||
_dir = random 360;
|
_dir = random 360;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
private ["_nearestObjectMinDistance","_maxTerrainGradient","_safePosParams","_validspot","_i","_pos"];
|
private ["_nearestObjectMinDistance","_maxTerrainGradient","_safePosParams","_validspot","_i","_pos","_missionPos"];
|
||||||
|
|
||||||
params
|
params
|
||||||
[
|
[
|
||||||
@ -71,10 +71,16 @@ while{!_validspot} do
|
|||||||
};
|
};
|
||||||
|
|
||||||
// Check for nearby missions
|
// 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");
|
throw ("another mission");
|
||||||
};
|
};
|
||||||
|
};
|
||||||
} forEach allMapMarkers;
|
} forEach allMapMarkers;
|
||||||
|
|
||||||
// No exceptions found
|
// No exceptions found
|
||||||
|
Binary file not shown.
@ -52,12 +52,18 @@ if (!hasInterface && !isServer) then
|
|||||||
|
|
||||||
|
|
||||||
## Changelog:
|
## 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):
|
#### September 25, 2015 (7:30 PM CST-America):
|
||||||
* NEW CONFIG VALUES:
|
* NEW CONFIG VALUES:
|
||||||
DMS_SpawnMineWarningSigns
|
DMS_SpawnMineWarningSigns
|
||||||
DMS_BulletProofMines
|
DMS_BulletProofMines
|
||||||
* You can now manually define the rare loot chance per crate.
|
* 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 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):
|
#### September 25, 2015 (1:30 AM CST-America):
|
||||||
|
Loading…
Reference in New Issue
Block a user