|
| override void | OnCapture (BaseTransceiver transmitter) |
| | Event polled each frame while component is recording audio.
|
| |
| override void | OnReceive (int playerId, bool isSenderEditor, BaseTransceiver receiver, int frequency, float quality) |
| | Event invoked when component receives audio data for playback.
|
| |
| override void | OnVoNUsed (int senderId) |
| | Event invoked on the server, each time VoN is used.
|
| |
| override IEntity | GetEditorEntity (int playerId) |
| | returns the SCR_EditorManagerEntity for a given player id if it exists.
|
| |
| override vector | GetEditorWorldLocation (int playerId) |
| | returns the position of the camera used by the editor for a given player id, if it exists.
|
| |
◆ GetDisplay()
◆ GetEditorEntity()
| override IEntity SCR_VoNComponent.GetEditorEntity |
( |
int | playerId | ) |
|
|
protected |
◆ GetEditorWorldLocation()
| override vector SCR_VoNComponent.GetEditorWorldLocation |
( |
int | playerId | ) |
|
|
protected |
returns the position of the camera used by the editor for a given player id, if it exists.
Implements VoNComponent.
◆ GetOnVoNUsed()
| static ScriptInvokerInt SCR_VoNComponent.GetOnVoNUsed |
( |
| ) |
|
|
static |
◆ IsEntityActiveEditor()
| override bool SCR_VoNComponent.IsEntityActiveEditor |
( |
IEntity | entity | ) |
|
◆ IsLocalActiveEditor()
| bool SCR_VoNComponent.IsLocalActiveEditor |
( |
| ) |
|
◆ IsTransmiting()
| bool SCR_VoNComponent.IsTransmiting |
( |
| ) |
|
Simple getter for when transmission was recently active, we assume that player's avatar should not produce various sounds while he's talking.
- Returns
- true if recently active
◆ IsTransmitingRadio()
| bool SCR_VoNComponent.IsTransmitingRadio |
( |
| ) |
|
Radio transmission was recently active.
- Returns
- true if recently active
◆ OnCapture()
Event polled each frame while component is recording audio.
- Parameters
-
| transmitter | Transceiver used. Null if only direct speech. |
Implements VoNComponent.
◆ OnReceive()
| override void SCR_VoNComponent.OnReceive |
( |
int | playerId, |
|
|
bool | isSenderEditor, |
|
|
BaseTransceiver | receiver, |
|
|
int | frequency, |
|
|
float | quality ) |
|
protected |
Event invoked when component receives audio data for playback.
- Parameters
-
| playerId | Senders PlayerId |
| isSenderEditor | true if sender is active editor. |
| receiver | Receiving transceiver |
| frequency | Frequency in kHz, on which the transmission came from. Can be different from the frequency which transceiver have set. This is very questionable and could be changed in future. |
| quality | Value in range <0,1> describing quality of the transmission |
Implements VoNComponent.
◆ OnVoNUsed()
| override void SCR_VoNComponent.OnVoNUsed |
( |
int | senderId | ) |
|
|
protected |
Event invoked on the server, each time VoN is used.
Implements VoNComponent.
◆ m_OnCaptureVON
| ref ScriptInvoker SCR_VoNComponent.m_OnCaptureVON = new ScriptInvoker() |
◆ m_OnReceivedVON
| ref ScriptInvoker SCR_VoNComponent.m_OnReceivedVON = new ScriptInvoker() |
◆ m_OnVoNUsed
| ref ScriptInvokerInt SCR_VoNComponent.m_OnVoNUsed |
|
staticprotected |
The documentation for this interface was generated from the following file:
- GameCode/Network/SCR_VoNComponent.c