Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SCR_MotorExhaustEffectGeneralComponent Interface Reference
Inheritance diagram for SCR_MotorExhaustEffectGeneralComponent:
[legend]

Public Member Functions

override void OnInit (IEntity owner)
 Called during EOnInit.
 
override void OnDelete (IEntity owner)
 
void Update (float timeSlice)
 
void OnEngineStart (bool startup)
 Turn on the effect for engine start and reset flow variables.
 
void OnEngineStop ()
 Turn off the effect and pause the damaged exhaust effect.
 
- Public Member Functions inherited from MotorExhaustEffectComponent
proto external IEntity GetOwner ()
 
proto external void TurnOff ()
 Remove every particle associed with this effect.
 
proto external void TurnOn (IEntity owner)
 Active particle associed with this effect.
 
proto external EntitySlotInfo GetEffectPosition ()
 
proto external float GetSignalRpm ()
 Get current RPM.
 
proto external float GetSignalThrust ()
 
proto external float GetRpmScaled ()
 Get current scaled RPM.
 
void OnInit (IEntity owner)
 Called during EOnInit.
 
void OnDelete (IEntity owner)
 
- Public Member Functions inherited from BaseEffectComponent
proto external IEntity GetParticleEntity ()
 Returns the particle entity associated with this effect component.
 
proto external SignalsManagerComponent GetSignalsManager ()
 
proto external bool HasActiveParticles ()
 
- Public Member Functions inherited from GameComponent
bool OnTicksOnRemoteProxy ()
 

Protected Member Functions

void UpdateExhaustParticles (float timeSlice)
 
void UpdateExhaustEmitter (float timeSlice)
 Ignition engine exhaust.
 
void UpdateDamagedEmitter (float timeSlice)
 Damaged engine exhaust.
 
void CreateDamageEffect ()
 Create damaged exhaust particles.
 
void AdjustEngineEffects (notnull ParticleEffectEntity effectEntity, array< ref array< int > > stageIndexes)
 
void ConnectToMotorExhaustSystem ()
 
void DisconnectFromMotorExhaustSystem ()
 

Static Protected Member Functions

static int GetStageIndex (string emitterName)
 
static array< ref array< int > > CreateStageIndexes (notnull ParticleEffectEntity effectEntity)
 

Protected Attributes

Particles m_ExhaustParticles
 
ParticleEffectEntity m_ExhaustEmitter
 
ParticleEffectEntity m_DamagedEmitter
 
SCR_VehicleDamageManagerComponent m_DamageManager
 
SignalsManagerComponent m_SignalsManager
 
float m_fRPMScaled
 
float m_fRPMScaledOld
 
float m_fThrust
 
float m_fEngineLoad
 
float m_fPreviousLoad = -1
 
float m_fLifetimeScale
 
int m_iIsExhaustUnderWaterSignalIdx
 
int m_iEngineLoadIdx
 
bool m_bIsUnderwater
 
bool m_bIsDefective
 
float m_fUpdateDelay
 
float m_fCurrentUpdateDelay
 
ref array< ref array< int > > m_aExhaustStagesEmitters
 
ref array< ref array< int > > m_aDamageStagesEmitters
 
float m_fStartupTimeLeft
 
ResourceName m_sDamagedParticle
 
float m_fStartupTime
 

Static Protected Attributes

const float TICK_TIME_DELAY_MAX = 2
 
const float TICK_DELAY_RANGE_START = 15
 
const float TICK_DELAY_RANGE_END = 100
 

Member Function Documentation

◆ AdjustEngineEffects()

void SCR_MotorExhaustEffectGeneralComponent.AdjustEngineEffects ( notnull ParticleEffectEntity  effectEntity,
array< ref array< int > >  stageIndexes 
)
protected

◆ ConnectToMotorExhaustSystem()

void SCR_MotorExhaustEffectGeneralComponent.ConnectToMotorExhaustSystem ( )
protected

◆ CreateDamageEffect()

void SCR_MotorExhaustEffectGeneralComponent.CreateDamageEffect ( )
protected

Create damaged exhaust particles.

◆ CreateStageIndexes()

static array< ref array< int > > SCR_MotorExhaustEffectGeneralComponent.CreateStageIndexes ( notnull ParticleEffectEntity  effectEntity)
staticprotected

◆ DisconnectFromMotorExhaustSystem()

void SCR_MotorExhaustEffectGeneralComponent.DisconnectFromMotorExhaustSystem ( )
protected

◆ GetStageIndex()

static int SCR_MotorExhaustEffectGeneralComponent.GetStageIndex ( string  emitterName)
staticprotected

◆ OnDelete()

override void SCR_MotorExhaustEffectGeneralComponent.OnDelete ( IEntity  owner)

◆ OnEngineStart()

void SCR_MotorExhaustEffectGeneralComponent.OnEngineStart ( bool  startup)

Turn on the effect for engine start and reset flow variables.

◆ OnEngineStop()

void SCR_MotorExhaustEffectGeneralComponent.OnEngineStop ( )

Turn off the effect and pause the damaged exhaust effect.

◆ OnInit()

override void SCR_MotorExhaustEffectGeneralComponent.OnInit ( IEntity  owner)

Called during EOnInit.

Parameters
ownerEntity this component is attached to.

Implements MotorExhaustEffectComponent.

◆ Update()

void SCR_MotorExhaustEffectGeneralComponent.Update ( float  timeSlice)

◆ UpdateDamagedEmitter()

void SCR_MotorExhaustEffectGeneralComponent.UpdateDamagedEmitter ( float  timeSlice)
protected

Damaged engine exhaust.

◆ UpdateExhaustEmitter()

void SCR_MotorExhaustEffectGeneralComponent.UpdateExhaustEmitter ( float  timeSlice)
protected

Ignition engine exhaust.

◆ UpdateExhaustParticles()

void SCR_MotorExhaustEffectGeneralComponent.UpdateExhaustParticles ( float  timeSlice)
protected

Member Data Documentation

◆ m_aDamageStagesEmitters

ref array<ref array<int> > SCR_MotorExhaustEffectGeneralComponent.m_aDamageStagesEmitters
protected

◆ m_aExhaustStagesEmitters

ref array<ref array<int> > SCR_MotorExhaustEffectGeneralComponent.m_aExhaustStagesEmitters
protected

◆ m_bIsDefective

bool SCR_MotorExhaustEffectGeneralComponent.m_bIsDefective
protected

◆ m_bIsUnderwater

bool SCR_MotorExhaustEffectGeneralComponent.m_bIsUnderwater
protected

◆ m_DamagedEmitter

ParticleEffectEntity SCR_MotorExhaustEffectGeneralComponent.m_DamagedEmitter
protected

◆ m_DamageManager

SCR_VehicleDamageManagerComponent SCR_MotorExhaustEffectGeneralComponent.m_DamageManager
protected

◆ m_ExhaustEmitter

ParticleEffectEntity SCR_MotorExhaustEffectGeneralComponent.m_ExhaustEmitter
protected

◆ m_ExhaustParticles

Particles SCR_MotorExhaustEffectGeneralComponent.m_ExhaustParticles
protected

◆ m_fCurrentUpdateDelay

float SCR_MotorExhaustEffectGeneralComponent.m_fCurrentUpdateDelay
protected

◆ m_fEngineLoad

float SCR_MotorExhaustEffectGeneralComponent.m_fEngineLoad
protected

◆ m_fLifetimeScale

float SCR_MotorExhaustEffectGeneralComponent.m_fLifetimeScale
protected

◆ m_fPreviousLoad

float SCR_MotorExhaustEffectGeneralComponent.m_fPreviousLoad = -1
protected

◆ m_fRPMScaled

float SCR_MotorExhaustEffectGeneralComponent.m_fRPMScaled
protected

◆ m_fRPMScaledOld

float SCR_MotorExhaustEffectGeneralComponent.m_fRPMScaledOld
protected

◆ m_fStartupTime

float SCR_MotorExhaustEffectGeneralComponent.m_fStartupTime
protected

◆ m_fStartupTimeLeft

float SCR_MotorExhaustEffectGeneralComponent.m_fStartupTimeLeft
protected

◆ m_fThrust

float SCR_MotorExhaustEffectGeneralComponent.m_fThrust
protected

◆ m_fUpdateDelay

float SCR_MotorExhaustEffectGeneralComponent.m_fUpdateDelay
protected

◆ m_iEngineLoadIdx

int SCR_MotorExhaustEffectGeneralComponent.m_iEngineLoadIdx
protected

◆ m_iIsExhaustUnderWaterSignalIdx

int SCR_MotorExhaustEffectGeneralComponent.m_iIsExhaustUnderWaterSignalIdx
protected

◆ m_sDamagedParticle

ResourceName SCR_MotorExhaustEffectGeneralComponent.m_sDamagedParticle
protected

◆ m_SignalsManager

SignalsManagerComponent SCR_MotorExhaustEffectGeneralComponent.m_SignalsManager
protected

◆ TICK_DELAY_RANGE_END

const float SCR_MotorExhaustEffectGeneralComponent.TICK_DELAY_RANGE_END = 100
staticprotected

◆ TICK_DELAY_RANGE_START

const float SCR_MotorExhaustEffectGeneralComponent.TICK_DELAY_RANGE_START = 15
staticprotected

◆ TICK_TIME_DELAY_MAX

const float SCR_MotorExhaustEffectGeneralComponent.TICK_TIME_DELAY_MAX = 2
staticprotected

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