Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix melee audio on entity destruction #1192

Merged

Conversation

SoulSloth
Copy link
Contributor

Fix for #1191.

Adds a coordinate to PlayAudioEntityMessage and changes the play function on the client audio system to no longer rely on an entity that may be deleted.

Can't be tested until space-wizards/space-station-14#1494 is complete as the exception it fixes supersedes this issue.

…udio System and changed Client Audio System to use a coordinate instead of an entity for sound location
…udio System and changed Client Audio System to use a coordinate instead of an entity for sound location
@DrSmugleaf DrSmugleaf added the Issue: Bug This issue is a bug report. label Jul 26, 2020
@ShadowCommander
Copy link
Member

I think it should probably use the coordinates as a fallback if getting the entity failed. If you don't it's possible when chasing someone that the sound of their shooting will come from behind you instead of in front.

@SoulSloth
Copy link
Contributor Author

I think it should probably use the coordinates as a fallback if getting the entity failed. If you don't it's possible when chasing someone that the sound of their shooting will come from behind you instead of in front.

Yeah sounds right. Forgot that PlayFromEntity supports guns too.

@PJB3005 PJB3005 merged commit fe1e37d into space-wizards:master Aug 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue: Bug This issue is a bug report.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants