mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Fix possible issue with weapons without firemodes (#6386)
Apparently that's a thing
This commit is contained in:
parent
11df315ce4
commit
3917092540
@ -28,4 +28,4 @@ private _dispersion = [];
|
||||
|
||||
_dispersion sort true;
|
||||
|
||||
linearConversion [_statMinMax select 0, _statMinMax select 1, _dispersion select 0, _barLimits select 0, _barLimits select 1]
|
||||
linearConversion [_statMinMax select 0, _statMinMax select 1, _dispersion param [0, 0], _barLimits select 0, _barLimits select 1]
|
||||
|
@ -28,4 +28,4 @@ private _fireRate = [];
|
||||
|
||||
_fireRate sort true;
|
||||
|
||||
linearConversion [_statMinMax select 0, _statMinMax select 1, _fireRate select 0, _barLimits select 0, _barLimits select 1]
|
||||
linearConversion [_statMinMax select 0, _statMinMax select 1, _fireRate param [0, 0], _barLimits select 0, _barLimits select 1]
|
||||
|
@ -27,6 +27,6 @@ private _dispersion = [];
|
||||
} foreach _fireModes;
|
||||
|
||||
_dispersion sort true;
|
||||
_dispersion = _dispersion select 0;
|
||||
_dispersion = _dispersion param [0, 0];
|
||||
|
||||
format ["%1 MIL (%2 MOA)", (_dispersion * 1000) toFixed 2, (_dispersion / pi * 10800) ToFixed 1];
|
||||
|
@ -27,6 +27,6 @@ private _fireRate = [];
|
||||
} foreach _fireModes;
|
||||
|
||||
_fireRate sort true;
|
||||
_fireRate = _fireRate select 0;
|
||||
_fireRate = _fireRate param [0, 0];
|
||||
|
||||
format ["%1 rpm", round (60 / _fireRate)]
|
||||
|
Loading…
Reference in New Issue
Block a user