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

Range/Volume checks not working? #3

Open
FALL1N1 opened this issue Jan 28, 2021 · 2 comments
Open

Range/Volume checks not working? #3

FALL1N1 opened this issue Jan 28, 2021 · 2 comments

Comments

@FALL1N1
Copy link

FALL1N1 commented Jan 28, 2021

Hello,

I'm using latest revision/version of the plugin as of today (a7da79f) and the radius check doesn't seem to work (despite how far you go- neither the volume changes nor it stops), the volume check also does not work for the player who "started" the sound while it works fine for the players nearby. For example - if Player1 starts a sound he will hear it with 100% volume (despite it being 0.0X in the code), while the nearby will hear it for the proper value.

My code can be found here - https://github.com/FALL1N1/FiveM-Prophunt, and the PlayCustomSounds implementation - here https://github.com/FALL1N1/FiveM-Prophunt/blob/ae6a3655a230f62b05b7e48e1b9c85a2dcaec85d/PropHuntV.Client/PropHunt.cs#L190

(The commented out line below works as well the same way)

Anyone got any clues?

@frazz1234
Copy link

find a fix ?

@FALL1N1
Copy link
Author

FALL1N1 commented Mar 24, 2023

@frazz1234 not yet as I just resumed working on my project (lost interest before, most likely will happen again).

You need to fix the check inside "SoundToCoords" --- if( compare <= soundRadius )

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

No branches or pull requests

2 participants