Source-1-Games icon indicating copy to clipboard operation
Source-1-Games copied to clipboard

[TF2] Soda Popper hype sound plays multiple times under high network latency

Open kvog-git opened this issue 10 months ago • 0 comments

The Soda Popper hype sounds sometimes play multiple times, causing the audio to become excessively loud. This is more noticeable when the player has high ping.

Here's a clip recorded with net_fakelag 150. Volume warning!

https://github.com/user-attachments/assets/13e8da9b-fcdd-4261-bbb5-c23599ddc5b4

This is similar to #4479, although the fix mentioned in that issue does not apply to the Soda Popper.

I did a bit of digging and the solution is not as simple as slapping prediction->IsFirstTimePredicted() around the sound effect code. There are multiple code paths that trigger these sound effects, which makes the issue non-trivial.

If anyone looks into this further, here’s my partial fix: https://github.com/k-vog/source-sdk-2013/commit/fce24a072ecf8693df251a2c4c09a8c3710cd9a5

kvog-git avatar Jan 11 '26 01:01 kvog-git