mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Recoil - Tweak launcher recoil to be more realistic (#9528)
* First pass at RPG recoil tweaks * Crank up camera shake when using launcher --------- Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
2db56cc4bb
commit
c491b78468
@ -332,16 +332,17 @@ class CfgRecoils {
|
||||
|
||||
class recoil_rpg: recoil_default {
|
||||
muzzleOuter[] = {
|
||||
2*MUZZLERIGHT_POS,
|
||||
3*MUZZLECLIMB_POS,
|
||||
1*MUZZLERIGHT_MAG,
|
||||
0.0*MUZZLERIGHT_POS,
|
||||
0.1*MUZZLECLIMB_POS,
|
||||
0.3*MUZZLERIGHT_MAG,
|
||||
0.5*MUZZLECLIMB_MAG
|
||||
};
|
||||
kickBack[] = {
|
||||
0.08*KICKBACK,
|
||||
0.1*KICKBACK
|
||||
0.0*KICKBACK,
|
||||
0.08*KICKBACK
|
||||
};
|
||||
temporary = 0.1*MUZZLETEMP;
|
||||
permanent = 1.0*MUZZLEPERM;
|
||||
temporary = 0.05*MUZZLETEMP;
|
||||
};
|
||||
|
||||
class recoil_nlaw: recoil_default {
|
||||
|
@ -61,6 +61,9 @@ private _powerCoef = RECOIL_COEF * linearConversion [0, 1, random 1, _recoil sel
|
||||
|
||||
if (isWeaponRested _unit) then {_powerMod = _powerMod - 0.07};
|
||||
if (isWeaponDeployed _unit) then {_powerMod = _powerMod - 0.11};
|
||||
if (_weapon isEqualTo secondaryWeapon _unit) then {
|
||||
_powerCoef = _powerCoef + 25.0;
|
||||
};
|
||||
|
||||
private _camshake = [
|
||||
_powerCoef * (BASE_POWER + _powerMod) max 0,
|
||||
|
Loading…
Reference in New Issue
Block a user