diff --git a/addons/hot/CfgAmmo.hpp b/addons/hot/CfgAmmo.hpp index af35c47e6f..dd4c01ca63 100644 --- a/addons/hot/CfgAmmo.hpp +++ b/addons/hot/CfgAmmo.hpp @@ -74,8 +74,8 @@ class CfgAmmo { defaultNavigationType = "Line"; navigationTypes[] = { "Line" }; - lineGainP = 5; - lineGainD = 5; + lineGainP = 15; + lineGainD = 15; seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] seekerAngle = 30; // Angle from the shooter's view that can track the missile diff --git a/addons/metis/CfgAmmo.hpp b/addons/metis/CfgAmmo.hpp index 466d80523a..a8eb6b5b5e 100644 --- a/addons/metis/CfgAmmo.hpp +++ b/addons/metis/CfgAmmo.hpp @@ -28,7 +28,7 @@ class CfgAmmo { navigationTypes[] = { "Line" }; lineGainP = 10; - lineGainD = 15; + lineGainD = 10; seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] seekerAngle = 15; // Angle from the shooter's view that can track the missile diff --git a/addons/missileguidance/functions/fnc_attackProfile_WIRE.sqf b/addons/missileguidance/functions/fnc_attackProfile_WIRE.sqf index 3507904930..ed48b60dde 100644 --- a/addons/missileguidance/functions/fnc_attackProfile_WIRE.sqf +++ b/addons/missileguidance/functions/fnc_attackProfile_WIRE.sqf @@ -42,12 +42,7 @@ if ((_distanceToProjectile > _seekerMaxRangeSqr) || { _wireCut }) exitWith { }; if (_seekerTargetPos isEqualTo [0, 0, 0] || { _distanceToProjectile < _seekerMinRangeSqr }) exitWith { - // cut wire if its caught on terrain - /*if (lineIntersectsSurfaces [getPosASL _shooter, _projectilePos, _shooter] isNotEqualTo []) then { - _attackProfileStateParams set [1, true]; - };*/ - // return position 50m infront of projectile and a bit up to get out of the way of the ground - _projectilePos vectorAdd (_projectile vectorModelToWorld [0, 50, 3]) + _projectilePos vectorAdd (_projectile vectorModelToWorld [0, 5, 5]) }; _seekerTargetPos vectorAdd _crosshairOffset diff --git a/addons/missileguidance/functions/fnc_navigationType_line.sqf b/addons/missileguidance/functions/fnc_navigationType_line.sqf index c9f68ab9bb..5629da4e28 100644 --- a/addons/missileguidance/functions/fnc_navigationType_line.sqf +++ b/addons/missileguidance/functions/fnc_navigationType_line.sqf @@ -43,9 +43,9 @@ private _accelerationX = _pX + _dX; private _accelerationY = _pY + _dY; private _commandedAcceleration = [ - _accelerationX, + _accelerationX * _yawRate, 0, - _accelerationY + _accelerationY * _pitchRate ]; _navigationParams set [3, _errorX]; diff --git a/addons/missileguidance/functions/fnc_seekerType_SACLOS.sqf b/addons/missileguidance/functions/fnc_seekerType_SACLOS.sqf index 04f59a28b9..482c954828 100644 --- a/addons/missileguidance/functions/fnc_seekerType_SACLOS.sqf +++ b/addons/missileguidance/functions/fnc_seekerType_SACLOS.sqf @@ -61,7 +61,7 @@ if ((_testDotProduct < (cos _seekerAngle)) || {_testIntersections isNotEqualTo [ private _returnPos = _shooterPos vectorAdd (_lookDirection vectorMultiply _distanceToProj); _targetData set [0, _lookDirection]; -_targetData set [2, _returnPos distance getPosASLVisual _projectile]; +_targetData set [2, _returnPos vectorDistance getPosASLVisual _projectile]; _returnPos diff --git a/addons/vikhr/CfgAmmo.hpp b/addons/vikhr/CfgAmmo.hpp index 65efe56ed9..e8ab91382b 100644 --- a/addons/vikhr/CfgAmmo.hpp +++ b/addons/vikhr/CfgAmmo.hpp @@ -28,8 +28,8 @@ class CfgAmmo { navigationTypes[] = { "Line" }; lineGainP = 25; - lineGainD = 22; - correctionDistance = 30; + lineGainD = 20; + correctionDistance = 2; seekLastTargetPos = 0; // seek last target position [if seeker loses LOS of target, continue to last known pos] seekerAngle = 15; // Angle from the shooter's view that can track the missile