Compare commits

...

5 Commits

Author SHA1 Message Date
Ciaran Fisher 1db8004f3e Merge pull request #39 from ciribob/minimum-distance
Minimum distance
2018-04-16 22:17:50 +01:00
Ciaran Fisher 58731f3d84 Bug Fix 2018-04-16 22:16:27 +01:00
Ciaran Fisher ce2cb5fad0 Merge pull request #38 from ciribob/minimum-distance
Minimum distance
2018-04-15 18:30:07 +01:00
Ciaran Fisher 71b54491fc Release 1.73 2018-04-15 18:28:38 +01:00
Ciaran Fisher 7ca6af38fc Version bump 2018-04-15 18:23:24 +01:00
7 changed files with 5 additions and 11 deletions
+5 -11
View File
@@ -16,15 +16,8 @@
- jmontleon - https://github.com/jmontleon
- emilianomolina - https://github.com/emilianomolina
Version: 1.72 - 18/02/2018
- Bug fix for crate spam
- Improved JTAC Performance - priority & targeting
- Added JTAC report for in view
- Added ability to set maximum group size that can be carried
- Added new sling load crates
- Fixed bug where crates and / or groups would disappear
- Fixed bug where count in zone wouldn't work for mission crates
- Delayed config of F10 menu and other scheduled functions so they can be overwritten by mission if a user wants
Version: 1.73 - 15/04/2018
- Allow minimum distance from friendly logistics to be set
]]
ctld = {} -- DONT REMOVE!
@@ -2891,7 +2884,7 @@ function ctld.unpackCrates(_arguments)
local _crate = ctld.getClosestCrate(_heli, _crates)
if ctld.inLogisticsZone(_heli) == true or ctld.farEnoughFromLogisticZone(_heli) == true then
if ctld.inLogisticsZone(_heli) == true or ctld.farEnoughFromLogisticZone(_heli) == false then
ctld.displayMessageToGroup(_heli, "You can't unpack that here! Take it to where it's needed!", 20)
@@ -4410,8 +4403,9 @@ function ctld.farEnoughFromLogisticZone(_heli)
--get distance
local _dist = ctld.getDistance(_heliPoint, _logistic:getPoint())
-- env.info("DIST ".._dist)
if _dist <= ctld.minimumDeployDistance then
-- env.info("TOO CLOSE ".._dist)
_farEnough = false
end
end
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.