acre2
acre2 copied to clipboard
Add initial volume level setting
Is your feature request related to a problem? By default, players join the game at voice volume level 3. Depending on the player and their microphone/audio setup their voices can carry very far, disturbing element leaders trying to come up with a plan in-game or having other important discussions going on. In our community we have the policy that everyone should set their volume manually to level 2 which still facilitates conversations without broadcasting too far - however there is no way to actually enforce it and naturally players forget often to set their volume to level 2 when they spawn.
Solution you'd like: An EDEN module that sets the initial volume of any spawned player (including JIP) to a value defined by the admins/mission maker. Players should still be able to switch volume levels at any time, this serves merely to ensure we all start at an agreed min. volume level to eliminate having to remind people over and over again at the mission start. This functionality could be integrated into existing ACRE2 modules that predefine the channel names etc.
Alternatives you've considered: The alternative is the status quo, which is not game-breaking but does consistently cause some minor issues for communities that do their planning in-game at the FOB or base instead of on the map screen before loading in.
Additional context: N/A
This is what we do in my community's mission framework
/////////////////
// Direct Speach Starting Volume
/////////////////
/*
Volume state | ACRE Level
0 | 0% / Whisper / Clear
1 | 25% / Quiet / Yellow
2 | 50% / Normal / Light Orange
3 | 75% / Loud / Dark Orange
4 | 100% / Yelling / Red
*/
FW_Acre_Volume_Value = 0;
if (player isEqualTo leader player) then {
FW_Acre_Volume_Value = FW_Acre_Volume_Value + 2;
};
private _volume = 0.1;
switch (FW_Acre_Volume_Value) do {
case 1: {_volume = 0.4;};
case 2: {_volume = 0.7;};
case 3: {_volume = 1;};
case 4: {_volume = 1.3;};
};
[_volume] call acre_api_fnc_setSelectableVoiceCurve;
[{
acre_sys_gui_volumeLevel = FW_Acre_Volume_Value;
}, [], 1] call CBA_fnc_waitAndExecute;
CBA Setting would be the way to go for this. We are open to contribution of that, similar to default radio volume. :)
CBA settings would be even better, I just assumed making an EDEN module would be easier and faster to code. :D
Ref. https://github.com/ArmaForces/Mods/pull/160