integration.

This commit is contained in:
jaynus 2015-04-14 10:51:53 -07:00
parent 226312c504
commit 1dd41a00ba

View File

@ -6,15 +6,15 @@ _seekerTargetPos = _this select 0;
_launchParams = _this select 1; _launchParams = _this select 1;
_seekerParams = _launchParams select 3; _seekerParams = _launchParams select 3;
_angleFov = _seekerParams select 0;
_laserResult = [(getPosASL _projectile), [ACE_DEFAULT_LASER_WAVELENGTH,ACE_DEFAULT_LASER_WAVELENGTH], ACE_DEFAULT_LASER_CODE] call EFUNC(laser,seekerFindLaserSpot); _laserResult = [(getPosASL _projectile), (velocity _projectile), _angleFov, [ACE_DEFAULT_LASER_WAVELENGTH,ACE_DEFAULT_LASER_WAVELENGTH], ACE_DEFAULT_LASER_CODE] call EFUNC(laser,seekerFindLaserSpot);
_foundTargetPos = _laserResult select 0; _foundTargetPos = _laserResult select 0;
TRACE_1("Search", _laserResult); TRACE_1("Search", _laserResult);
if(!isNil "_foundTargetPos") then { if(!isNil "_foundTargetPos") then {
_angleFov = _seekerParams select 0; //_canSeeTarget = [_projectile, _foundTargetPos, _angleFov] call FUNC(checkSeekerAngle);
_canSeeTarget = [_projectile, _foundTargetPos, _angleFov] call FUNC(checkSeekerAngle);
// If we got here, it was an invalid target, just return a spot 5m in front of the missile // If we got here, it was an invalid target, just return a spot 5m in front of the missile
if(!_canSeeTarget) then { if(!_canSeeTarget) then {