Vurv78 / WebAudio

A safe, efficient and powerful replacement for Streamcore that adds playing & manipulating URL streams through IGmodAudioChannel/BASS
https://steamcommunity.com/sharedfiles/filedetails/?id=2466875474
MIT License
18 stars 3 forks source link

Add wa_purge #3

Closed Vurv78 closed 3 years ago

Vurv78 commented 3 years ago

Just loop through all clientside wa receivers in the Audios table and run IGmodAudioChannel:Stop() on them. Also need to check the Enabled convar in the wa_modify net message so people can't modify audios if you set wa_enable to 0 after they made the object, which would cause errors with these stopped bass objects.

Vurv78 commented 3 years ago

Doing this alongside making wa_enable halt the server from sending useless net messages