Always straight bullets for the first bullet when no inaccuracy is on

This commit is contained in:
Kamay Xutax 2024-09-09 17:23:25 +02:00
parent 49c98ebd77
commit 56e9399d90

View file

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