mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
small Should spall optimization
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
4d9f61eeaf
commit
bc2a6bb9d9
@ -26,7 +26,7 @@ private _caliber = getNumber (_ammoConfig >> "caliber");
|
||||
private _explosive = getNumber (_ammoConfig >> "explosive");
|
||||
private _indirectHit = getNumber (_ammoConfig >> "indirectHitRange");
|
||||
|
||||
_shouldSpall = _caliber * GVAR(spallIntensity) >= 2.5 || (_explosive >= 0.5 && _explosive * _indirectHit * GVAR(spallIntensity) >= 4);
|
||||
_shouldSpall = _caliber * GVAR(spallIntensity) >= 2.5 || (_explosive >= 0.5 && {_explosive * _indirectHit * GVAR(spallIntensity) >= 4});
|
||||
|
||||
GVAR(shouldSpallCache) set [_ammo, _shouldSpall];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user