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:
amsteadrayle 2024-08-05 05:38:26 -04:00 committed by GitHub
parent 2db56cc4bb
commit c491b78468
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 10 additions and 6 deletions

View File

@ -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 {

View File

@ -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,