mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added default fragCount fallback value based on current ACE frag range calculation
This commit is contained in:
parent
718c3d61c8
commit
130037d7e8
@ -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;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user