WEAPON_PARA: Fix recoil.

This commit is contained in:
Marco Cawthorne 2024-03-06 21:07:29 -08:00
parent f013035ffc
commit 0e8be2560b
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ w_para_primary(player pl)
return;
float accuracy = Cstrike_CalculateAccuracy(pl, 70);
float accuracy = Cstrike_CalculateAccuracy(pl, 70, 3);
pl.para_mag--;
@ -143,7 +143,7 @@ w_para_primary(player pl)
dmg = Skill_GetValue("plr_para_dmg", 35);
TraceAttack_SetRangeModifier(2.125);
TraceAttack_SetPenetrationPower(1);
Cstrike_BulletRecoil_ApplyPost(pl,1);
Cstrike_BulletRecoil_ApplyPre(pl,1);
TraceAttack_FireBulletsWithDecal(1, pl.origin + pl.view_ofs, dmg, [accuracy,accuracy], WEAPON_PARA, "Impact.BigShot");
Cstrike_BulletRecoil_ApplyPost(pl,1);
Sound_Play(pl, CHAN_WEAPON, "weapon_para.fire");