Added default fragCount fallback value based on current ACE frag range calculation

This commit is contained in:
lambdatiger 2024-06-19 23:20:37 -05:00
parent 718c3d61c8
commit 130037d7e8

View File

@ -80,7 +80,9 @@ if (_gurneyConstant == 0) then {
private _fragCount = getNumber (_ammoConfig >> QGVAR(fragCount)); private _fragCount = getNumber (_ammoConfig >> QGVAR(fragCount));
if (_fragCount == 0) then { if (_fragCount == 0) then {
_fragCount = 250; private _indirectHitRange = getNumber (_ammoConfig >> "indirectHitRange");
_fragCount = 4 * pi * ACE_FRAG_MIN_FRAG_HIT_CHANCE * (20 *_indirectHitRange)^2;
_fragCount = _fragCount max 250;
_notifyMissingEntries = true; _notifyMissingEntries = true;
}; };