Slight tweaks.

This commit is contained in:
jaynus 2015-04-18 09:40:46 -07:00
parent e14ee45249
commit d1e03d8e7a
4 changed files with 4 additions and 3 deletions

View File

@ -72,7 +72,7 @@ _range = parseNumber (ctrlText __JavelinIGUIRangefinder);
TRACE_1("Viewing range", _range);
if (_range > 50 && {_range < 2500}) then {
_pos = positionCameraToWorld [0,0,_range];
_targetArray = _pos nearEntities ["AllVehicles", _range/25];
_targetArray = _pos nearEntities ["AllVehicles", _range/100];
TRACE_1("Searching at range", _targetArray);
if (count (_targetArray) > 0) then {
_newTarget = _targetArray select 0;

View File

@ -53,7 +53,7 @@ switch( (_state select 0) ) do {
};
case STAGE_TERMINAL: {
TRACE_1("STAGE_TERMINAL","");
_returnTargetPos = _seekerTargetPos vectorAdd [0,0,_distanceToTarget * 0.002];
_returnTargetPos = _seekerTargetPos;
};
};

View File

@ -70,7 +70,7 @@ switch( (_state select 0) ) do {
case STAGE_TERMINAL: {
TRACE_1("STAGE_TERMINAL","");
//_returnTargetPos = _seekerTargetPos vectorAdd [0,0,_distanceToTarget * 0.02];
_returnTargetPos = _seekerTargetPos vectorAdd [0,0,_distanceToTarget * 0.002];
_returnTargetPos = _seekerTargetPos;
};
};

View File

@ -17,6 +17,7 @@ TRACE_1("", _launchParams);
_foundTargetPos = [0,0,0];
if(!isNil "_target") then {
_foundTargetPos = getPosASL _target;
//_foundTargetPos = (_target modelToWorldVisual (getCenterOfMass _target));
};
// @TODO: This is seeker LOS and angle checks for LOAL only; LOBL does not need visual