mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Revert "Takes negative initSpeed values into account"
This commit is contained in:
parent
b255d1040b
commit
cde80b2901
@ -44,11 +44,9 @@ _offset = 0;
|
|||||||
} forEach _FCSMagazines;
|
} forEach _FCSMagazines;
|
||||||
|
|
||||||
// Correct velocity for weapons that have initVelocity
|
// Correct velocity for weapons that have initVelocity
|
||||||
_velocityCorrection = if (getNumber(configFile >> "CfgWeapons" >> _weapon >> "initSpeed") > 0) then {
|
// @todo: Take into account negative initVelocities
|
||||||
(vectorMagnitude velocity _projectile) - getNumber(configFile >> "CfgMagazines" >> _magazine >> "initSpeed")
|
_velocityCorrection = (vectorMagnitude velocity _projectile) -
|
||||||
} else {
|
getNumber (configFile >> "CfgMagazines" >> _magazine >> "initSpeed");
|
||||||
0
|
|
||||||
};
|
|
||||||
|
|
||||||
[_projectile, (_vehicle getVariable format ["%1_%2", QGVAR(Azimuth), _turret]), _offset, -_velocityCorrection] call EFUNC(common,changeProjectileDirection);
|
[_projectile, (_vehicle getVariable format ["%1_%2", QGVAR(Azimuth), _turret]), _offset, -_velocityCorrection] call EFUNC(common,changeProjectileDirection);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user