Fixed: Add platform velocity to FCS calculations; resolves #361

This commit is contained in:
jaynus 2015-04-06 18:36:39 -07:00
parent 446a30e4fc
commit 27caff5564

View File

@ -50,6 +50,12 @@ _velocityCorrection = (vectorMagnitude velocity _projectile) -
[_projectile, (_vehicle getVariable format ["%1_%2", QGVAR(Azimuth), _turret]), _offset, -_velocityCorrection] call EFUNC(common,changeProjectileDirection);
// Remove the platform velocity
if( (vectorMagnitude velocity _vehicle) > 2) then {
_sumVelocity = (velocity _projectile) vectorDiff (velocity _vehicle);
_projectile setVelocity _sumVelocity;
};
// Air burst missile
// handle locally only