Origins: Powerful Powers
» Voice chatPage 13 of 17

Voice chat

OPP works with Simple Voice Chat (SVC) when it's installed. SVC is optional. Without it, the voice conditions are false.

IdKindNeeds SVC?
voice_installedentity conditionyes
voice_mic_disabledentity conditionyes
is_talkingentity conditionyes
is_whisperingentity conditionyes
in_voice_groupentity conditionyes
in_same_voice_groupbi-entity conditionyes
in_voice_range_ofbi-entity conditionyes
is_broadcasting_voiceentity conditionno (it reads OPP's own state)
is_muted_voiceentity conditionno (it reads OPP's own state)
is_deafened_voiceentity conditionno (it reads OPP's own state)
start_broadcast_voiceentity actionto be heard, yes
stop_broadcast_voiceentity actionno
/oppvccommandto have an effect, yes

How it works:

  • What OPP knows. OPP listens to SVC on the server: who is connected, who sent microphone audio recently, and who is in which group. SVC settings and group membership stay under the players' control.
  • Broadcast sends a player's voice, as non-positional audio, straight to chosen listeners anywhere on the server. Listeners also hear normal nearby and group audio.
  • Forced mute drops a player's microphone audio before SVC passes it on, so nobody hears them nearby, in groups, or through a broadcast.
  • Forced deafen stops all voice audio from reaching a player.
  • Broadcasts, mutes and deafens end when the server restarts.

All of these are also attributes (is_whispering is is_whispering_voice), so client-side checks can use origins:attribute.