Jump to content
Sign in to follow this  
MrSanchez

Vehicle Attenuation & Police Sirens

Recommended Posts

Hello,

I'm working on some police vehicles and I'd like to add some sirens that are MP compatible.

Now they're already working fine except that in first person the siren is barely audible, I'd have to turn off the engine just to hear it a little bit, while in 3rd person & for people outside it's actually (really) loud.

There are multiple police vehicles, inheriting from different base classes, such as SUV, Offroad and even the MRAP classes.

The script I use to broadcast the siren over all computers is server-executed

[_auto, "USA_siren",350] call CBA_fnc_globalSay3d;

I've tried adjusting insideSoundCoef but that seemed to make absolutely no difference. I've also tried attenuationEffectType = "OpenCarAttenuation"; but that's a nope as well.

Is there some way to decrease the vehicle attenuation so that the siren is louder and my script would work perfectly?

edit: I have no intention to make the siren super loud or something, it's just that when you turn it on and you're in pursuit, you don't even know it's on, that's how much the attenuation is.

a video for reference as what the perfect attenuation would be for my vehicles:

Kind regards,

Sanchez

Edited by PhonicStudios

Share this post


Link to post
Share on other sites

Try having a fiddle with say2D, say, say3D or the playSound scripts within the editor. For sure one of them should work :)

Share this post


Link to post
Share on other sites

The command I'm using is simply Say3D except CBA broadcasts it over all computers, since say3D is local.

I just realized I haven't tried https://community.bistudio.com/wiki/playSound3D yet, that seems to be global.

I'd like to emphasize that the siren works perfectly outside the vehicles/3rd person, just that the volume of the siren is turned down so dramatically once you enter a vehicle, because of A3 vehicle attenuation values. I'm looking to adjust these values but nothing seems to have worked so far.

Kind regards,

Sanchez

Share this post


Link to post
Share on other sites

So does anyone know which (config) values are affecting vehicle sound attenuation? Maybe I missed one.

Kind regards,

Sanchez

Share this post


Link to post
Share on other sites

Looks like I finally fixed it, I found two values in the littlebird config file that fixed my problem

values were:

occludeSoundsWhenIn = 0.562341;

obstructSoundsWhenIn = 0.316228;

Kind regards,

Sanchez

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×