This commit is contained in:
ulteq 2015-04-28 19:31:38 +02:00
parent a4fd621bd0
commit 76393f31db

View File

@ -33,8 +33,13 @@ _recoil = if (_muzzle == _weapon) then {
getText (_config >> _muzzle >> "recoil")
};
_recoil = getArray (configFile >> "CfgRecoils" >> _recoil >> "kickBack");
if (count _recoil < 2) then {
if (isClass (configFile >> "CfgRecoils" >> _recoil)) then {
_recoil = getArray (configFile >> "CfgRecoils" >> _recoil >> "kickBack");
if (count _recoil < 2) then {
_recoil = [0, 0];
};
} else {
systemChat "noclass";
_recoil = [0, 0];
};