Grenade Tinnitus (Ear Ringing) Effect Created 3 years ago2021-03-08 01:10:22 UTC by FranticDreamer FranticDreamer

Created 3 years ago2021-03-08 01:10:22 UTC by FranticDreamer FranticDreamer

Posted 3 years ago2021-03-08 01:10:22 UTC Post #345406
Hello.

I want to create an ear ringing effect for grenades.

Here is what I did so far.

It works fine but I want to make something like this:
LayoutLayout
Ears are not ringing from where that bomb explodes. I want to calculate these areas.
If the explosion happened within one of these areas, it should play the desired sound.

I tried to calculate it but I couldn't make a good progress. (See the commented lines before "float volu")

How can I calculate these areas? Or is there a better solution for ear ringing from where the greande explodes (without emitting sound from where the grenade was)?

Thanks in advance for your help. :)
FranticDreamer FranticDreamerR.I.P. Benny Harvey. Miss you big man. Gone but not forgotten.
Posted 3 years ago2021-03-08 12:10:02 UTC Post #345407
Posted 3 years ago2021-03-08 14:35:19 UTC Post #345408
I tried out other solutions including yours but then I found a -subjectively- better way I think. At least works pretty good in game.

It's based on the HUD Pain Indicator code.

Thanks for your help mate
FranticDreamer FranticDreamerR.I.P. Benny Harvey. Miss you big man. Gone but not forgotten.
You must be logged in to post a response.