Advanced Ballistics - Better diagnostic tools (#5776)

* Makes it easier to detect errors in 3rd party weapon compats
This commit is contained in:
ulteq
2017-11-17 20:00:57 +01:00
committed by GitHub
parent aab09584b7
commit a270ca8a99
3 changed files with 30 additions and 7 deletions

View File

@ -21,7 +21,7 @@
private _weaponConfig = (configFile >> "CfgWeapons" >> _this);
private _barrelTwist = getNumber(_weaponConfig >> "ACE_barrelTwist");
private _twistDirection = 1;
private _twistDirection = [0, 1] select (_barrelTwist != 0);
if (isNumber (_weaponConfig >> "ACE_twistDirection")) then {
_twistDirection = getNumber (_weaponConfig >> "ACE_twistDirection");
if !(_twistDirection in [-1, 0, 1]) then {