mirror of
https://github.com/ciribob/DCS-CSAR.git
synced 2025-10-29 16:56:07 +00:00
Removed Debug messages
This commit is contained in:
11
CSAR.lua
11
CSAR.lua
@@ -901,14 +901,11 @@ function csar.getClosetDownedPilot(_heli)
|
||||
|
||||
local _tempWounded = csar.getWoundedGroup(_woundedName)
|
||||
|
||||
env.info(_woundedName)
|
||||
|
||||
-- check group exists and not moving to someone else
|
||||
if #_tempWounded > 0 and (_tempWounded[1]:getCoalition() == _side) then
|
||||
|
||||
_distance = csar.getDistance(_heli:getPoint(), _tempWounded[1]:getPoint())
|
||||
|
||||
env.info(_woundedName.." ".._distance)
|
||||
if _distance ~= nil and (_shortestDistance == -1 or _distance < _shortestDistance) then
|
||||
|
||||
|
||||
@@ -916,7 +913,6 @@ function csar.getClosetDownedPilot(_heli)
|
||||
_closetGroup = _tempWounded[1]
|
||||
_closetGroupInfo = _groupInfo
|
||||
|
||||
env.info(_woundedName.." ".._shortestDistance)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -934,13 +930,6 @@ function csar.signalFlare(_unitName)
|
||||
|
||||
local _closet = csar.getClosetDownedPilot(_heli)
|
||||
|
||||
if _closet ~= nil then
|
||||
env.info("GOT CLOSEST")
|
||||
|
||||
env.info(_closet.distance)
|
||||
end
|
||||
|
||||
|
||||
if _closet ~= nil and _closet.pilot ~= nil and _closet.distance < 1000.0 then
|
||||
|
||||
local _clockDir = csar.getClockDirection(_heli,_closet.pilot)
|
||||
|
||||
Reference in New Issue
Block a user