Skip to content

Commit

Permalink
Fixed desync with bullets
Browse files Browse the repository at this point in the history
  • Loading branch information
XutaxKamay committed Sep 9, 2024
1 parent 293f5a4 commit 49c98eb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions game/shared/cstrike/fx_cs_shared.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,8 @@ void FX_FireBullets(
}
#endif

RandomSeed( iSeed + iBullet ); // init random system with this seed

float fTheta1 = RandomFloat( 0.0f, 2.0f * M_PI );
float fRadius1 = RandomFloat( 0.0f, fSpread );
float x1 = fRadius1 * cosf( fTheta1 );
Expand Down

0 comments on commit 49c98eb

Please sign in to comment.