mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Merge pull request #2839 from acemod/abFixTwist
AB - Fix ACE_twistDirection
This commit is contained in:
@ -20,9 +20,11 @@ _weaponConfig = (configFile >> "CfgWeapons" >> _this);
|
|||||||
|
|
||||||
_barrelTwist = getNumber(_weaponConfig >> "ACE_barrelTwist");
|
_barrelTwist = getNumber(_weaponConfig >> "ACE_barrelTwist");
|
||||||
_twistDirection = 1;
|
_twistDirection = 1;
|
||||||
_twistDirection = getNumber(_weaponConfig >> "ACE_twistDirection");
|
if (isNumber (_weaponConfig >> "ACE_twistDirection")) then {
|
||||||
if !(_twistDirection in [-1, 0, 1]) then {
|
_twistDirection = getNumber (_weaponConfig >> "ACE_twistDirection");
|
||||||
_twistDirection = 1;
|
if !(_twistDirection in [-1, 0, 1]) then {
|
||||||
|
_twistDirection = 1;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
_barrelLength = getNumber(_weaponConfig >> "ACE_barrelLength");
|
_barrelLength = getNumber(_weaponConfig >> "ACE_barrelLength");
|
||||||
|
Reference in New Issue
Block a user