Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Makes TFR work like ACRE, mutes your radio while you're talking. Promotes good radio discipline!
- // Pseudocode. Probably doesn't work the way it should. A real coder should look at this.
- // https://github.com/michail-nikolaev/task-force-arma-3-radio/wiki/API:-Functions
- /*
- Okay so we looked into some shit and the original script doesn't work right - it would mute your radio while talking in direct.
- We found the
- fn_onRADIOTangentPressed.sqf and
- fn_onRADIOTangentReleased.sqf scripts - the functions that handle when a radio button is pressed and released.
- https://github.com/michail-nikolaev/task-force-arma-3-radio/tree/master/arma3/%40task_force_radio/addons/task_force_radio/functions
- Those features would let us easily work out when to run the volume lowering and raising.
- You could use the setvolume function to set the volume within those pressed/released functions.
- Problems are:
- - Carrying over the volume that was set before transmitting (Global variables? Player variables?)
- - ?
- */
- //if (player call TFAR_fnc_isSpeaking) then {
- //_volume = (call TFAR_fnc_ActiveSwRadio) call TFAR_fnc_getSwVolume;
- //[(call TFAR_fnc_activeLrRadio) select 0, (call TFAR_fnc_activeLrRadio) select 1, 0] call TFAR_fnc_setLrVolume;
- //}; else
- //[(call TFAR_fnc_activeLrRadio) select 0, (call TFAR_fnc_activeLrRadio) select 1, (_volume)] call TFAR_fnc_setLrVolume;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement