Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CommunicationSoundComponent Class Reference
Inheritance diagram for SCR_CommunicationSoundComponent:
CommunicationSoundComponent

Protected Member Functions

void ShowSubtitles (array< string > metadata)
void SetCallsignSignals (int company, int platoon, int squad, int character, int characterRole)
void SoundEventHit (bool critical, EDamageType damageType)
void DelayedSoundEventPriority (string eventName, SCR_ECommunicationSoundEventPriority priority, int delayMS, EDamageType damageType=EDamageType.TRUE)
void PlayDelayedSoundEventPriority ()
void SoundEventDeath (bool silent)
OnSoundEventStartedInvoker GetOnSoundEventStarted ()
OnSoundEventFinishedInvoker GetOnSoundEventFinished ()
override void OnPostInit (IEntity owner)
override void OnSoundEventStarted (string eventName, AudioHandle handle, int priority)
override void OnSoundEventFinished (string eventName, AudioHandle handle, int priority, bool terminated)
void SCR_CommunicationSoundComponent (IEntityComponentSource src, IEntity ent, IEntity parent)
void ~SCR_CommunicationSoundComponent ()

Static Protected Member Functions

static void SetSubtitiles ()

Protected Attributes

SignalsManagerComponent m_SignalsManagerComponent
string m_sDelayedSoundEvent
SCR_ECommunicationSoundEventPriority m_eDelayedSoundEventPriority
EDamageType m_eEDamageType
int m_iHitScreamIntensity
ref OnSoundEventStartedInvoker m_OnSoundEventStarted
ref OnSoundEventFinishedInvoker m_OnSoundEventFinished
int m_iDamageTypeSignalIdx
int m_iHitScreamIntensitySignalIdx

Static Protected Attributes

static bool m_bShowSubtitles

Detailed Description

Definition at line 60 of file SCR_CommunicationSoundComponent.c.

Constructor & Destructor Documentation

◆ SCR_CommunicationSoundComponent()

void SCR_CommunicationSoundComponent::SCR_CommunicationSoundComponent ( IEntityComponentSource src,
IEntity ent,
IEntity parent )
inlineprotected
Parameters
[in]src
[in]ent
[in]parent

Definition at line 287 of file SCR_CommunicationSoundComponent.c.

◆ ~SCR_CommunicationSoundComponent()

void SCR_CommunicationSoundComponent::~SCR_CommunicationSoundComponent ( )
inlineprotected

Definition at line 294 of file SCR_CommunicationSoundComponent.c.

Member Function Documentation

◆ DelayedSoundEventPriority()

void SCR_CommunicationSoundComponent::DelayedSoundEventPriority ( string eventName,
SCR_ECommunicationSoundEventPriority priority,
int delayMS,
EDamageType damageType = EDamageType.TRUE )
inlineprotected

Schedule and prioritise appropriate injury sounds to be played. The sound scheduled will skip the internal queue

Parameters
[in]eventNameName of the sound event to be played after delayMS.
[in]priorityPriority of the sound event. The event with higher priority will override the current delayed event.
[in]delayMSMiliseconds delay for determining the sound event to be played
[in]damageType

Definition at line 177 of file SCR_CommunicationSoundComponent.c.

◆ GetOnSoundEventFinished()

OnSoundEventFinishedInvoker SCR_CommunicationSoundComponent::GetOnSoundEventFinished ( )
inlineprotected

Definition at line 245 of file SCR_CommunicationSoundComponent.c.

◆ GetOnSoundEventStarted()

OnSoundEventStartedInvoker SCR_CommunicationSoundComponent::GetOnSoundEventStarted ( )
inlineprotected

Definition at line 236 of file SCR_CommunicationSoundComponent.c.

◆ OnPostInit()

override void SCR_CommunicationSoundComponent::OnPostInit ( IEntity owner)
inlineprotected

Definition at line 254 of file SCR_CommunicationSoundComponent.c.

◆ OnSoundEventFinished()

override void SCR_CommunicationSoundComponent::OnSoundEventFinished ( string eventName,
AudioHandle handle,
int priority,
bool terminated )
inlineprotected

Definition at line 276 of file SCR_CommunicationSoundComponent.c.

◆ OnSoundEventStarted()

override void SCR_CommunicationSoundComponent::OnSoundEventStarted ( string eventName,
AudioHandle handle,
int priority )
inlineprotected

Definition at line 269 of file SCR_CommunicationSoundComponent.c.

◆ PlayDelayedSoundEventPriority()

void SCR_CommunicationSoundComponent::PlayDelayedSoundEventPriority ( )
inlineprotected

Plays the delayed sound event requested via DelayedSoundEventPriority. Skips internal queue of the communication sound component.

Definition at line 203 of file SCR_CommunicationSoundComponent.c.

◆ SetCallsignSignals()

void SCR_CommunicationSoundComponent::SetCallsignSignals ( int company,
int platoon,
int squad,
int character,
int characterRole )
inlineprotected
Parameters
[in]company
[in]platoon
[in]squad
[in]character
[in]characterRole

Definition at line 144 of file SCR_CommunicationSoundComponent.c.

◆ SetSubtitiles()

void SCR_CommunicationSoundComponent::SetSubtitiles ( )
inlinestaticprotected

Definition at line 131 of file SCR_CommunicationSoundComponent.c.

◆ ShowSubtitles()

void SCR_CommunicationSoundComponent::ShowSubtitles ( array< string > metadata)
inlineprotected
Parameters
[in]metadata

Definition at line 83 of file SCR_CommunicationSoundComponent.c.

◆ SoundEventDeath()

void SCR_CommunicationSoundComponent::SoundEventDeath ( bool silent)
inlineprotected

Called by damage manager when character dies. Depending on silent parameter, character will cancel current delayed sound event and then either scream or not

Parameters
[in]silentWhen true, character will play SOUND_KNOCKOUT event. When false, SOUND_DEATH will be played instead.

Definition at line 225 of file SCR_CommunicationSoundComponent.c.

◆ SoundEventHit()

void SCR_CommunicationSoundComponent::SoundEventHit ( bool critical,
EDamageType damageType )
inlineprotected

Schedule and prioritise appropriate injury sounds to be played. The sound scheduled will skip the internal queue

Parameters
[in]criticalWhether current hit event is considered a critical hit. Multiple critical hits will increase intensity of hit scream.
[in]damageType

Definition at line 159 of file SCR_CommunicationSoundComponent.c.

Member Data Documentation

◆ m_bShowSubtitles

bool SCR_CommunicationSoundComponent::m_bShowSubtitles
staticprotected

Definition at line 78 of file SCR_CommunicationSoundComponent.c.

◆ m_eDelayedSoundEventPriority

SCR_ECommunicationSoundEventPriority SCR_CommunicationSoundComponent::m_eDelayedSoundEventPriority
protected

Definition at line 69 of file SCR_CommunicationSoundComponent.c.

◆ m_eEDamageType

EDamageType SCR_CommunicationSoundComponent::m_eEDamageType
protected

Definition at line 70 of file SCR_CommunicationSoundComponent.c.

◆ m_iDamageTypeSignalIdx

int SCR_CommunicationSoundComponent::m_iDamageTypeSignalIdx
protected

Definition at line 75 of file SCR_CommunicationSoundComponent.c.

◆ m_iHitScreamIntensity

int SCR_CommunicationSoundComponent::m_iHitScreamIntensity
protected

Definition at line 71 of file SCR_CommunicationSoundComponent.c.

◆ m_iHitScreamIntensitySignalIdx

int SCR_CommunicationSoundComponent::m_iHitScreamIntensitySignalIdx
protected

Definition at line 76 of file SCR_CommunicationSoundComponent.c.

◆ m_OnSoundEventFinished

ref OnSoundEventFinishedInvoker SCR_CommunicationSoundComponent::m_OnSoundEventFinished
protected

Definition at line 73 of file SCR_CommunicationSoundComponent.c.

◆ m_OnSoundEventStarted

ref OnSoundEventStartedInvoker SCR_CommunicationSoundComponent::m_OnSoundEventStarted
protected

Definition at line 72 of file SCR_CommunicationSoundComponent.c.

◆ m_sDelayedSoundEvent

string SCR_CommunicationSoundComponent::m_sDelayedSoundEvent
protected

Definition at line 68 of file SCR_CommunicationSoundComponent.c.

◆ m_SignalsManagerComponent

SignalsManagerComponent SCR_CommunicationSoundComponent::m_SignalsManagerComponent
protected

Definition at line 62 of file SCR_CommunicationSoundComponent.c.


The documentation for this class was generated from the following file: