Skip to content

Commit

Permalink
Always straight bullets for the first bullet when no inaccuracy is on
Browse files Browse the repository at this point in the history
  • Loading branch information
XutaxKamay committed Sep 9, 2024
1 parent 49c98eb commit 56e9399
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions game/shared/cstrike/fx_cs_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,15 @@ void FX_FireBullets(
float x1 = fRadius1 * cosf( fTheta1 );
float y1 = fRadius1 * sinf( fTheta1 );

// Always straight for the first bullet;
if ( weapon_accuracy_noinaccuracy.GetBool() && iBullet == 0 )
{
x0 = 0.0f;
y0 = 0.0f;
x1 = 0.0f;
y1 = 0.0f;
}

pPlayer->FireBullet( iBullet,
vOrigin,
vAngles,
Expand Down

0 comments on commit 56e9399

Please sign in to comment.