Always straight bullets for the first bullet when no inaccuracy is on
This commit is contained in:
parent
49c98ebd77
commit
56e9399d90
1 changed files with 9 additions and 0 deletions
|
@ -366,6 +366,15 @@ void FX_FireBullets(
|
||||||
float x1 = fRadius1 * cosf( fTheta1 );
|
float x1 = fRadius1 * cosf( fTheta1 );
|
||||||
float y1 = fRadius1 * sinf( 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,
|
pPlayer->FireBullet( iBullet,
|
||||||
vOrigin,
|
vOrigin,
|
||||||
vAngles,
|
vAngles,
|
||||||
|
|
Loading…
Reference in a new issue