garrysmod-issues icon indicating copy to clipboard operation
garrysmod-issues copied to clipboard

game.CleanUpMap() also kills all BASS streams

Open wyozi opened this issue 7 years ago • 3 comments

What happens: game.CleanUpMap() kills all BASS streams no matter how they were created

Why is this wrong: some BASS streams are supposed to continue over map cleanups (eg. UI music players)

The easiest fix I can think of right now is only removing sounds that were created with the '3d' flag. Alternative would be to add a new flag to indicate that the sound should be kept over cleanups.

wyozi avatar Oct 16 '16 18:10 wyozi

Or refresh your players on PostCleanupMap

thegrb93 avatar Oct 16 '16 19:10 thegrb93

That's a workaround and not particularly good one either. I'd like to see this fixed before everyone has been forced to use a workaround, which the fix would then probably break.

wyozi avatar Oct 16 '16 19:10 wyozi

This is by design. Adding a flag to stop this is probably the only option.

willox avatar Oct 19 '16 04:10 willox