mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
ATragMX - Estimate bullet length instead of using a fixed value (#4651)
This commit is contained in:
parent
0394ea56b4
commit
c756537d3d
@ -52,7 +52,7 @@ if (!GVAR(atmosphereModeTBH)) then {
|
||||
};
|
||||
|
||||
private ["_bulletLength", "_stabilityFactor"];
|
||||
_bulletLength = 45.72;
|
||||
_bulletLength = 50 * _bulletMass / ((_bulletDiameter/2)^2);
|
||||
_stabilityFactor = 1.5;
|
||||
if (missionNamespace getVariable [QEGVAR(advanced_ballistics,enabled), false]) then {
|
||||
if (_bulletDiameter > 0 && _bulletLength > 0 && _bulletMass > 0 && _barrelTwist > 0) then {
|
||||
|
Loading…
Reference in New Issue
Block a user