|
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) |
| override void | OnInit (IEntity owner) |
| void | ~SCR_HelicopterSoundComponent () |
Public Member Functions inherited from SCR_VehicleSoundComponent | |
| 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 If boneName is different than string.Empty, then you might need to first use SetTransformation(vector transf[]) or else sound may fail the auditability test. | |
| proto external AudioHandle | SoundEventOffset (string eventName, vector offset) |
| Play a sound with a given offset from the owner entity If offset is different than vector.Zero, then you might need to first use SetTransformation(vector transf[]) or else sound may fail the auditability test. | |
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. | |
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 | OnFrame (IEntity owner, float timeSlice) |
| void | OnUpdateSoundJobBegin (IEntity owner) |
| void | OnUpdateSoundJobEnd (IEntity owner) |
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 |
| 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 | ) |
Implements SCR_VehicleSoundComponent.
| override void SCR_HelicopterSoundComponent.OnPostInit | ( | IEntity | owner | ) |
|
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 |