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: Prevent spectators, covert, and long range corpse searches from making sound #1698

Merged
merged 3 commits into from
Dec 26, 2024

Conversation

TW1STaL1CKY
Copy link
Contributor

The new corpse searching sounds play when anything searches them in any manner. The main example being spectators - if a spectator examined a body, the body would make a sound seemingly out of nowhere for players who are alive.
Covert searches and long range searches also cause the search sound to play which seems wrong.

The change in this PR fixes that. The sound will now only play if the player is alive (using IsTerror), and if the search wasn't covert or long range.

Copy link
Member

@saibotk saibotk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice change thank you very much! 🙏

@saibotk
Copy link
Member

saibotk commented Dec 26, 2024

Can you quickly merge the if statement into a single line to make stylua happy?

@saibotk saibotk merged commit 043eee5 into TTT-2:master Dec 26, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants