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

View File

@ -33,10 +33,15 @@ _recoil = if (_muzzle == _weapon) then {
getText (_config >> _muzzle >> "recoil") getText (_config >> _muzzle >> "recoil")
}; };
if (isClass (configFile >> "CfgRecoils" >> _recoil)) then {
_recoil = getArray (configFile >> "CfgRecoils" >> _recoil >> "kickBack"); _recoil = getArray (configFile >> "CfgRecoils" >> _recoil >> "kickBack");
if (count _recoil < 2) then { if (count _recoil < 2) then {
_recoil = [0, 0]; _recoil = [0, 0];
}; };
} else {
systemChat "noclass";
_recoil = [0, 0];
};
// parse numbers // parse numbers
_recoil set [0, call compile format ["%1", _recoil select 0]]; _recoil set [0, call compile format ["%1", _recoil select 0]];