task-force-arma-3-radio icon indicating copy to clipboard operation
task-force-arma-3-radio copied to clipboard

A fourth option for speaking volume

Open TTTRedd opened this issue 7 years ago • 9 comments

Is it possible to get a fourth option for volume: e.q.

  1. whisper
  2. speak
  3. speak loud
  4. yelling

or.

  1. whisper
  2. speak quite
  3. speak
  4. yelling

the range of normal speak at the moment is a bit to long and whispering is to short. would be nice to have an option between them.

TTTRedd avatar Sep 15 '17 09:09 TTTRedd

Why not go all the way and have a 0-10 loudness? Then have short cuts for the current options

john681611 avatar Sep 15 '17 10:09 john681611

You can do that with Scripting :D I think.. Shouldn't be that hard..

dedmen avatar Sep 15 '17 10:09 dedmen

Point me in the right direction and I'll have a shot if I ever find time :D

john681611 avatar Sep 15 '17 10:09 john681611

https://github.com/michail-nikolaev/task-force-arma-3-radio/blob/1.0/addons/core/functions/fnc_setVoiceVolume.sqf You can call that with whatever you want.. But the default CTRL+TAB volume switching thingy will ignore them. https://github.com/michail-nikolaev/task-force-arma-3-radio/blob/1.0/addons/core/functions/events/keys/fnc_onSpeakVolumeChangePressed.sqf#L5 This is ugly anyway and I wanted to change that at some point.

dedmen avatar Sep 15 '17 10:09 dedmen

On a side note have you ever had a look at adding sound effects for wispering and shouting. I guess its way more complex

john681611 avatar Sep 15 '17 11:09 john681611

Not that hard.. theoretically. But I don't see a point in that

dedmen avatar Sep 15 '17 12:09 dedmen

Well, that or either mess with the player's output volume. Just feels odd that within a certain distance it's just normal volume even if someone is supposed to be shouting.

That feature would also allow players to actually shout over the sounds of combat.

john681611 avatar Sep 15 '17 15:09 john681611

Ah yeah.. shouting doesn't increase volume. The max is always 100%. whisper/normal/shout just set your voice range. If you are out of range you hear nothing. And in range it interpolates between 100% volume at 1m or lower distance and close to 0% volume at max range. That's not linear a linear curve though. For that it is using https://docs.unrealengine.com/latest/INT/Engine/Audio/DistanceModelAttenuation/ NaturalSound

The code is here: https://github.com/michail-nikolaev/task-force-arma-3-radio/blob/1.0/ts/src/helpers.hpp#L108-L132

dedmen avatar Sep 15 '17 15:09 dedmen

Apparently, men can be damn loud: http://www.guinnessworldrecords.com/world-records/farthest-distance-travelled-by-a-human-voice http://wiki.secondlife.com/wiki/How_far_away_can_people_hear_me

so I'm going to mess with a min of 1 (ear whisper) and a max of 100m, for now as its kinda convenient :D

plus there is a lot of duplicate code in the events is it only pressed that matters?

john681611 avatar Sep 17 '17 09:09 john681611