Skip to content
10 changes: 10 additions & 0 deletions addons/recoil/functions/fnc_camshake.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,16 @@ private _recoil = GVAR(recoilCache) getOrDefaultCall [_weapon + _muzzle, {
_recoil = [0, 0];
};

private _customShakeCoef = if (isNumber (configFile >> "CfgRecoils" >> _recoil >> QGVAR(customShakeCoef))) then {
Comment thread
some-evil-kitty marked this conversation as resolved.
Outdated
getNumber (configFile >> "CfgRecoils" >> _recoil >> QGVAR(customShakeCoef))
} else {
1
};



_recoil = _recoil vectorMultiply _customShakeCoef;

TRACE_3("Caching Recoil config",_weapon,_muzzle,_recoil);

// Ensure format is correct
Expand Down
Loading