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

Underwater fix #18

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Underwater fix #18

wants to merge 2 commits into from

Conversation

FuTTiiZ
Copy link

@FuTTiiZ FuTTiiZ commented Dec 29, 2023

Use FiveM natives to switch from checking if player is simply below water level to actually checking if they are diving.
This fixes issues related to muffled "underwater" audio when below water level, but not actually diving (inside interiors, in the metro, etc.). This also allows audio to be muffled when underwater but not below ocean water level (swimming in pools, etc.)

Using FiveM natives to switch from checking if player is simply below water level to actually checking if they are diving.
This fixes issues related to muffled "underwater" audio when below water level, but not diving (inside interiors, in the metro, etc.). This also allows audio to be muffled when underwater but not below ocean water level (swimming in pools, etc.)
Using FiveM natives to switch from checking if player is simply below water level to actually checking if they are diving.
This fixes issues related to muffled "underwater" audio when below water level, but not diving (inside interiors, in the metro, etc.). This also allows audio to be muffled when underwater but not below ocean water level (swimming in pools, etc.)
@Cookizza
Copy link

Cookizza commented Jan 1, 2024

Could you attach a built zip for people to test on? Would help get some feedback on higher population servers. Great work though appreciate it

@FuTTiiZ
Copy link
Author

FuTTiiZ commented Jan 2, 2024

Here you go: sounity-underwater-fix.zip
This is already live on my server with peaks of 240+ players daily.
I compiled a video comparison of the two versions: https://youtu.be/4X0A4KSlyks

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