Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

What are the best Sound Attenuation settings for an FPS?


What are the best Sound Attenuation settings for an FPS game with a Battle Royale mode? I have tried it multiple times, to make good distant gunfire noises, but it never seems to work. I would like the end goal for the player to be able to sense the direction that the gunfire is coming from, even from a large distance and to clearly know when the player is close to the source of the sound.

Any help would be great! Thanks!

Product Version: UE 4.18
more ▼

asked Jun 12 '18 at 08:31 AM in Blueprint Scripting

avatar image

16 2 7

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

I know this post is old, but I'd like to clarify a few things for anyone else curious about this topic.

Attenuation can't actually modify sounds quickly and efficiently, to deliver the behavior you are looking for. Attenuation is great for sound falloff and air absorption, but gunshots from a large distance, for example, cannot (yet) deliver the sound you're looking to achieve while maintaining a high level of performance.

That said, most games will use multiple sounds for the same shot. I'm sure you already know that a single shot for the exact same weapon will often use a pool of sounds to ensure it sounds genuine (and not like the exact same sound repeating over and over). Much like this, it is very common to use separate sounds for distance.

A game will commonly have a pool of sounds for a shot that is up close, and an entirely different set of sounds for that same shot when it is to be heard by a player at a larger distance. Then, it is also common to have a very long distance shot sound, which is essentially only low tones as they travel farther than higher frequencies.

So, in short, detect the distance from the actor who is firing. If the distance is <= x, play the short-range sound. Else, if they are <= y, play the medium range sound. Else, play the long range sound.

Now, let me also convey that it is entirely possible to programmatically achieve what you're after, but I do not think it is possible with the attenuator in UE4 without some modification. Some proprietary engines do use pretty impressive technology for doing these sorts of things on the fly. However, it is my personal opinion that to truly achieve an immersive experience for your players, separate sounds based on distance are the way to go. It's a bit more work in regards to gathering sounds, but I don't think it's more work than would be required to programmatically modify/generate sounds based on distance.

Also, to help with the positional accuracy of sounds, it's not entirely uncommon to (rather than strictly relying on attenuation) spawn the sound closer to the perceiver. This requires a bit of legwork in regards to the attenuation and falloff, but provides a bit more clarity and accuracy.

Hope this helps.

more ▼

answered Feb 01 '19 at 06:30 PM

avatar image

One Mode Only
16 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question