tgstation / TerraGov-Marine-Corps

TGMC: TerraGov Marine Corps, a SS13 mod
GNU Affero General Public License v3.0
162 stars 815 forks source link

Playsound improvements #16611

Open Lumipharon opened 4 hours ago

Lumipharon commented 4 hours ago

About The Pull Request

Playsound/explosion sounds are a bit more optimised. According to the RU lads it uses a lot less CPU so seemed worth doing.

Hearing sounds in tanks now gives proper directional sound, so this should: Fix #16510

Little bit of code cleanup.

Note: This could be nicer but it turns out of 'clients_by_z lists are entirely nonfunctional, but I'll do that in a separate PR so its easier to look at.

Why It's Good For The Game

Better perf, directional sound in tank good.

Changelog

:cl: qol: Sounds from outside tanks should now properly have directionality applied to them code: Improved some sound code performance. /:cl: