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,10 +33,15 @@ _recoil = if (_muzzle == _weapon) then {
|
||||
getText (_config >> _muzzle >> "recoil")
|
||||
};
|
||||
|
||||
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];
|
||||
};
|
||||
|
||||
// parse numbers
|
||||
_recoil set [0, call compile format ["%1", _recoil select 0]];
|
||||
|
Loading…
Reference in New Issue
Block a user