Arma 3
task_force_radio
Cutting out all TX comm
Hi, someone got any idea how i can cut out all outgoing communication from a player ?
basicly like ACE does when entering unconcious mode.

so Far i tryed :
  • TFAR_fnc_sendPlayerKilled;
  • [player, true] call TFAR_fnc_forceSpectator;
  • 0 call TFAR_fnc_setVoiceVolume;
    player setVariable ["tf_voiceVolume", 0, true];
    player setVariable ["tf_globalVolume", 0];

All those were ran localy on the player i want to mute, and without success :(

What i m trying to do is preventing the global / ear speak during the respawnDelay.
< >
Viser 1-13 af 13 kommentarer
Dedmen Miller  [udvikler] 8. apr. 2017 kl. 11:01 
If you want it just like ACE does it. Why don't you just copy it from ACE? ^^
https://github.com/acemod/ACE3/blob/master/addons/common/functions/fnc_setVolume.sqf#L41
voiceVolume is outgoing speech. globalVolume is incoming sound Radio/Speech. and.. unable to use Radio should explain itself.
Sidst redigeret af Dedmen Miller; 8. apr. 2017 kl. 11:02
elchupacabra (ben) 8. apr. 2017 kl. 14:52 
i already tryed that, as you can see above in point 3.
That code was triggered by a "Killed" eventHandler, and reset to normal on respawn event.

Should this be triggered prior to player death ?
Dedmen Miller  [udvikler] 16. apr. 2017 kl. 16:59 
Oprindeligt skrevet af elchupacabra (ben):
i already tryed that, as you can see above in point 3.
That code was triggered by a "Killed" eventHandler, and reset to normal on respawn event.

Should this be triggered prior to player death ?
If you also want to prevent the Player from using his radio you also have to set unable to use radio. Besides that your code should work. What exactly isn't working?
elchupacabra (ben) 17. apr. 2017 kl. 4:06 
During the respawnDelay (so player is dead without attached unit) everyone can ear the dead player like he does not have the tfar plugin loaded, and the dead can ear everyone. This is an issue because the respawnDelay in our mission is quite long (10s) with a deadcam effect.
Sidst redigeret af elchupacabra (ben); 17. apr. 2017 kl. 4:07
Dedmen Miller  [udvikler] 23. apr. 2017 kl. 6:12 
You could just enable SeriousMode. Dead Player's can't be heard there.
elchupacabra (ben) 23. apr. 2017 kl. 7:41 
I see, the think is i do not want to add a dependency to tfar in the mission, so i checked what does the fn_initialiseEnforceUsageModule.sqf. This is maybe not really fitting our needs, i explain.

We are running a public server but sometimes we run private zeus ops on the same server.
We just set a flag to true during those ops and clients not being member connecting while that flag is true are brought back to the lobby with a custom endMission message. And we are using a password protected channel during those ops, when running "public" we use a public TS channel.

So questions :
- Can we use a channel which is not password protected?
- Is it possible to change the value of tf_radio_channel_name / tf_radio_channel_password without restarting mission / server ?

EDIT :

- When using an empty password the serious mode is never enabled, but i can use a dummy password on a public channel, so not an issue.

- According to the ts plugin source, there is no way to trigger the clientMove to tf_radio_channel_name within the game, as the onGameStart plugin function is not bind to an extension call, and only triggered once at loading (inGame flag).

So,
do you think it would be possible for you to add an API wrapper function to an extension call to allow us triggering the ts3Functions.requestClientMove OR maybe detect that the
tf_radio_channel_name has been changed inside the ts plugin, and trigger that internaly ?
Sidst redigeret af elchupacabra (ben); 24. apr. 2017 kl. 0:08
Dedmen Miller  [udvikler] 26. apr. 2017 kl. 13:08 
clientMove is called regularly if you are not inside the currently specified channel. Why don't you just try it out and see that it works? ^^
elchupacabra (ben) 26. apr. 2017 kl. 14:32 
I tried, but i guess i did not waited enough time, gonna try again and wait a bit longer.
elchupacabra (ben) 27. apr. 2017 kl. 4:37 
I tryed once more and even after 10min, i was not switched to the private channel.
Maybe you made that change in the 1.0 ts plugin ?
Dedmen Miller  [udvikler] 27. apr. 2017 kl. 10:29 
You should say that you are using 1.0
On 1.0 you need to call "call TFAR_fnc_sendPluginConfig;" after chanign the variable. And you will be instantly moved.
elchupacabra (ben) 27. apr. 2017 kl. 11:17 
i m not,
but i m not calling TFAR_fnc_sendPluginConfig, i m calling TFAR_fnc_sendVersionInfo, i don't
think the function mentioned is available in stable version.
Dedmen Miller  [udvikler] 27. apr. 2017 kl. 11:28 
Old TFAR transmits channel every few seconds with frequency Info I think. And TS Plugin checks every few seconds if you are in right channel. and if not it moves you.
elchupacabra (ben) 27. apr. 2017 kl. 17:49 
For the behavior i have experienced and the source i have read, this is not going like you said.

For What i understood : the plugin only move you into the channel defined by tf_radio_channel_name (in game) when the ts plugin pipe receive some data and the command is not VERSION and inGame flag is false and channel name is not empty.
When those conditions are met it plays the radioOn sound and then call onGameStart that will do the move (line 1456).

The code block that handle the FREQ command (line 1874 to 1908) have nothing related to serious_mod_channel_name.

EDIT:
If that can help i think i m using the task_force_radio_3.1Compat.ts3_plugin.
md5sum of the plugin i m running :
5cb5de7b9f902fc1b2a8ef0a0600bae3 task_force_radio_win64.dll
Sidst redigeret af elchupacabra (ben); 27. apr. 2017 kl. 18:13
< >
Viser 1-13 af 13 kommentarer
Per side: 1530 50