Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_HelicopterSoundComponent.c File Reference

Go to the source code of this file.

Classes

class  SCR_HelicopterSoundComponentClass

Functions

override void UpdateSoundJob (IEntity owner, float timeSlice)
void CalculateSpeedToCameraSignal (IEntity owner)
void HandleWashRotor (IEntity owner)
void RegisterOnDamageChanged ()
void UnregisterOnDamageChanged ()
void OnDamageStateChanged (EDamageState state)
void RegisterRotorMainOnDamageChanged ()
void UnregisterRotorMainOnDamageChanged ()
void RotorMainOnStateChanged ()
override void OnPostInit (IEntity owner)
 Editable Mine.
override void OnInit (IEntity owner)
void ~SCR_HelicopterSoundComponent ()

Variables

SCR_HelicopterSoundComponentClass SPEED_TO_CAMERA_SIGNAL_NAME = "SpeedToCamera"
const string DISTANCE_SIGNAL_NAME = "Distance"
const string ALTITUDE_AGL = "AltitudeAGL"
const string MAIN_ROTOR_RPM_SCALED = "MainRotorRPMScaled"
const string MAIN_ROTOR_HIT_ZONE_NAME = "RotorMain"
const string DAMAGE_STATE_SIGNAL_NAME = "DamageState"
const string ROTOR_MAIN_DAMAGE_STATE_SIGNAL_NAME = "RotorMainDamageState"
const float UPDATE_TIME = 0.15
const float WASH_ROTOR_DISTANCE_LIMIT = 100
const float ALTITUDE_LIMIT = 50
const float MAIN_ROTOR_RPM_SCALED_THRESHOLD = 0.2
int m_iDistanceSignalIdx
int m_iSpeedToCameraSignalIdx
int m_AltitudeAGLSignalIdx
int m_MainRotorRPMScaledIdx
SignalsManagerComponent m_SignalsManagerComponent
float m_fTimer
AudioHandle m_WashRotorAudioHandle = AudioHandle.Invalid
 Wash rotor audio handle.
SCR_HelicopterDamageManagerComponent m_HelicopterDamageManagerComponent
 Damage state signal.
SCR_HitZone m_RotorMainHitZone
 Main rotor damage state.
EDamageState m_eRotorMainDamageState

Function Documentation

◆ CalculateSpeedToCameraSignal()

void CalculateSpeedToCameraSignal ( IEntity owner)
protected

Updates SpeedToCamera signal based on owner velocity towards the camera

Parameters
ownerowner entity - cannot be null

Definition at line 64 of file SCR_HelicopterSoundComponent.c.

◆ HandleWashRotor()

void HandleWashRotor ( IEntity owner)
protected

Handles wash rotor sound. Triggers the sound, when conditions are met and updates sounds position based on owner's altitude.

Parameters
[in]ownercannot be null

Definition at line 86 of file SCR_HelicopterSoundComponent.c.

◆ OnDamageStateChanged()

void OnDamageStateChanged ( EDamageState state)
protected

Definition at line 129 of file SCR_HelicopterSoundComponent.c.

◆ RegisterOnDamageChanged()

void RegisterOnDamageChanged ( )
protected

Definition at line 112 of file SCR_HelicopterSoundComponent.c.

◆ RegisterRotorMainOnDamageChanged()

void RegisterRotorMainOnDamageChanged ( )
protected

Definition at line 135 of file SCR_HelicopterSoundComponent.c.

◆ RotorMainOnStateChanged()

void RotorMainOnStateChanged ( )
protected

Definition at line 161 of file SCR_HelicopterSoundComponent.c.

◆ UnregisterOnDamageChanged()

void UnregisterOnDamageChanged ( )
protected

Definition at line 122 of file SCR_HelicopterSoundComponent.c.

◆ UnregisterRotorMainOnDamageChanged()

void UnregisterRotorMainOnDamageChanged ( )
protected

Definition at line 148 of file SCR_HelicopterSoundComponent.c.

◆ UpdateSoundJob()

override void UpdateSoundJob ( IEntity owner,
float timeSlice )
protected

Definition at line 45 of file SCR_HelicopterSoundComponent.c.

◆ ~SCR_HelicopterSoundComponent()

void ~SCR_HelicopterSoundComponent ( )
protected

Definition at line 197 of file SCR_HelicopterSoundComponent.c.

Variable Documentation

◆ ALTITUDE_AGL

const string ALTITUDE_AGL = "AltitudeAGL"
protected

Definition at line 11 of file SCR_HelicopterSoundComponent.c.

◆ ALTITUDE_LIMIT

const float ALTITUDE_LIMIT = 50
protected

Definition at line 20 of file SCR_HelicopterSoundComponent.c.

◆ DAMAGE_STATE_SIGNAL_NAME

const string DAMAGE_STATE_SIGNAL_NAME = "DamageState"
protected

Definition at line 14 of file SCR_HelicopterSoundComponent.c.

◆ DISTANCE_SIGNAL_NAME

const string DISTANCE_SIGNAL_NAME = "Distance"
protected

Definition at line 10 of file SCR_HelicopterSoundComponent.c.

◆ m_AltitudeAGLSignalIdx

int m_AltitudeAGLSignalIdx
protected

Definition at line 26 of file SCR_HelicopterSoundComponent.c.

◆ m_eRotorMainDamageState

EDamageState m_eRotorMainDamageState
protected

Definition at line 42 of file SCR_HelicopterSoundComponent.c.

◆ m_fTimer

float m_fTimer
protected

Definition at line 31 of file SCR_HelicopterSoundComponent.c.

◆ m_HelicopterDamageManagerComponent

SCR_HelicopterDamageManagerComponent m_HelicopterDamageManagerComponent
protected

Damage state signal.

Definition at line 37 of file SCR_HelicopterSoundComponent.c.

◆ m_iDistanceSignalIdx

int m_iDistanceSignalIdx
protected

Definition at line 24 of file SCR_HelicopterSoundComponent.c.

◆ m_iSpeedToCameraSignalIdx

int m_iSpeedToCameraSignalIdx
protected

Definition at line 25 of file SCR_HelicopterSoundComponent.c.

◆ m_MainRotorRPMScaledIdx

int m_MainRotorRPMScaledIdx
protected

Definition at line 27 of file SCR_HelicopterSoundComponent.c.

◆ m_RotorMainHitZone

SCR_HitZone m_RotorMainHitZone
protected

Main rotor damage state.

Definition at line 40 of file SCR_HelicopterSoundComponent.c.

◆ m_SignalsManagerComponent

SignalsManagerComponent m_SignalsManagerComponent
protected

Definition at line 30 of file SCR_HelicopterSoundComponent.c.

◆ m_WashRotorAudioHandle

AudioHandle m_WashRotorAudioHandle = AudioHandle.Invalid
protected

Wash rotor audio handle.

Definition at line 34 of file SCR_HelicopterSoundComponent.c.

◆ MAIN_ROTOR_HIT_ZONE_NAME

const string MAIN_ROTOR_HIT_ZONE_NAME = "RotorMain"
protected

Definition at line 13 of file SCR_HelicopterSoundComponent.c.

◆ MAIN_ROTOR_RPM_SCALED

const string MAIN_ROTOR_RPM_SCALED = "MainRotorRPMScaled"
protected

Definition at line 12 of file SCR_HelicopterSoundComponent.c.

◆ MAIN_ROTOR_RPM_SCALED_THRESHOLD

const float MAIN_ROTOR_RPM_SCALED_THRESHOLD = 0.2
protected

Definition at line 21 of file SCR_HelicopterSoundComponent.c.

◆ ROTOR_MAIN_DAMAGE_STATE_SIGNAL_NAME

const string ROTOR_MAIN_DAMAGE_STATE_SIGNAL_NAME = "RotorMainDamageState"
protected

Definition at line 15 of file SCR_HelicopterSoundComponent.c.

◆ SPEED_TO_CAMERA_SIGNAL_NAME

SCR_HelicopterSoundComponentClass SPEED_TO_CAMERA_SIGNAL_NAME = "SpeedToCamera"

◆ UPDATE_TIME

const float UPDATE_TIME = 0.15
protected

Definition at line 18 of file SCR_HelicopterSoundComponent.c.

◆ WASH_ROTOR_DISTANCE_LIMIT

const float WASH_ROTOR_DISTANCE_LIMIT = 100
protected

Definition at line 19 of file SCR_HelicopterSoundComponent.c.