mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
This commit is contained in:
parent
a4fd621bd0
commit
76393f31db
@ -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];
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user