mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Slight tweaks.
This commit is contained in:
parent
e14ee45249
commit
d1e03d8e7a
@ -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;
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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;
|
||||
};
|
||||
};
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user