mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fixed: Add platform velocity to FCS calculations; resolves #361
This commit is contained in:
parent
446a30e4fc
commit
27caff5564
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user