Arma Reforger Script API
|
Public Member Functions | |
override void | UpdateSoundJob (IEntity owner, float timeSlice) |
Call when component is in range. | |
override void | OnPostInit (IEntity owner) |
Called after all components are initialized. | |
override void | OnInit (IEntity owner) |
Called during EOnInit. | |
void | ~SCR_HelicopterSoundComponent () |
Public Member Functions inherited from SCR_VehicleSoundComponent | |
override void | OnInit (IEntity owner) |
Called during EOnInit. | |
override void | OnPostInit (IEntity owner) |
Called after all components are initialized. | |
void | SCR_VehicleSoundComponent (IEntityComponentSource src, IEntity ent, IEntity parent) |
void | ~SCR_VehicleSoundComponent () |
Public Member Functions inherited from SoundComponent | |
proto external AudioHandle | SoundEvent (string eventName) |
Play a sound from the owner entity's position. | |
proto external AudioHandle | SoundEventTransform (string eventName, vector transf[]) |
Play a sound from a set transformation. | |
proto external AudioHandle | SoundEventBone (string eventName, string bone) |
Play a sound from the owner entity's position. | |
proto external AudioHandle | SoundEventOffset (string eventName, vector offset) |
Play a sound with a given offset from the owner entity. | |
Public Member Functions inherited from SimpleSoundComponent | |
proto external void | EnableDynamicSimulation (bool value) |
Enables the dynamic simulation. | |
proto external void | SetScriptedMethodsCall (bool state) |
Set flag for script callbacks. | |
proto external bool | IsScriptedMethodsCallEnabled () |
TRUE when flag for script callbacks is set. | |
proto external IEntity | GetOwner () |
Protected Member Functions | |
void | CalculateSpeedToCameraSignal (IEntity owner) |
Updates SpeedToCamera signal based on owner velocity towards the camera. | |
void | HandleWashRotor (IEntity owner) |
Handles wash rotor sound. | |
void | RegisterOnDamageChanged () |
void | UnregisterOnDamageChanged () |
void | OnDamageStateChanged (EDamageState state) |
void | RegisterRotorMainOnDamageChanged () |
void | UnregisterRotorMainOnDamageChanged () |
void | RotorMainOnStateChanged () |
Protected Member Functions inherited from SCR_VehicleSoundComponent | |
array< ref SCR_HitZoneStateSignalData > | GetHitZoneStateSignalData () |
void | RegisterHitZoneSignals (IEntity owner) |
void | UnregisterHitZoneSignals () |
Protected Member Functions inherited from SimpleSoundComponent | |
void | OnPostInit (IEntity owner) |
Called after all components are initialized. | |
void | OnInit (IEntity owner) |
Called during EOnInit. | |
void | OnFrame (IEntity owner, float timeSlice) |
Called during EOnFrame. | |
void | UpdateSoundJob (IEntity owner, float timeSlice) |
Call when component is in range. | |
void | OnUpdateSoundJobBegin (IEntity owner) |
Called when dynamic simulation is started. | |
void | OnUpdateSoundJobEnd (IEntity owner) |
Called when dynamic simulation is stopped. | |
Protected Attributes | |
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 |
Protected Attributes inherited from SCR_VehicleSoundComponent | |
ref array< ref SCR_HitZoneStateSignal > | m_aHitZoneStateSignal = {} |
Static Protected Attributes | |
const string | 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 |
Additional Inherited Members | |
Static Public Member Functions inherited from VehicleSoundComponent | |
static proto void | SetMinTimeAfterImpact (float timeMs) |
void SCR_HelicopterSoundComponent.~SCR_HelicopterSoundComponent | ( | ) |
|
protected |
Updates SpeedToCamera signal based on owner velocity towards the camera.
owner | owner entity - cannot be null |
|
protected |
Handles wash rotor sound.
Triggers the sound, when conditions are met and updates sounds position based on owner's altitude.
[in] | owner | cannot be null |
|
protected |
override void SCR_HelicopterSoundComponent.OnInit | ( | IEntity | owner | ) |
Called during EOnInit.
owner | Entity this component is attached to. |
Implements SCR_VehicleSoundComponent.
override void SCR_HelicopterSoundComponent.OnPostInit | ( | IEntity | owner | ) |
Called after all components are initialized.
owner | Entity this component is attached to. |
Implements SCR_VehicleSoundComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
override void SCR_HelicopterSoundComponent.UpdateSoundJob | ( | IEntity | owner, |
float | timeSlice | ||
) |
Call when component is in range.
Implements SimpleSoundComponent.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
Damage state signal.
|
protected |
|
protected |
|
protected |
|
protected |
Main rotor damage state.
|
protected |
|
protected |
Wash rotor audio handle.
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
staticprotected |