Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MotorExhaustEffectGeneralComponent.c File Reference

Go to the source code of this file.

Data Structures

class  SCR_MotorExhaustEffectGeneralComponentClass
 

Functions

override void OnInit (IEntity owner)
 
override void OnDelete (IEntity owner)
 
void Update (float timeSlice)
 
protected void UpdateExhaustParticles (float timeSlice)
 
protected void UpdateExhaustEmitter (float timeSlice)
 Ignition engine exhaust. More...
 
protected void UpdateDamagedEmitter (float timeSlice)
 Damaged engine exhaust. More...
 
protected void CreateDamageEffect ()
 Create damaged exhaust particles. More...
 
protected void AdjustEngineEffects (notnull ParticleEffectEntity effectEntity, array< ref array< int >> stageIndexes)
 
void OnEngineStart (bool startup)
 Turn on the effect for engine start and reset flow variables. More...
 
void OnEngineStop ()
 Turn off the effect and pause the damaged exhaust effect. More...
 
protected void ConnectToMotorExhaustSystem ()
 
protected void DisconnectFromMotorExhaustSystem ()
 

Variables

SCR_MotorExhaustEffectGeneralComponentClass m_ExhaustParticles
 
protected ParticleEffectEntity m_ExhaustEmitter
 
protected ParticleEffectEntity m_DamagedEmitter
 
protected SCR_VehicleDamageManagerComponent m_DamageManager
 
protected SignalsManagerComponent m_SignalsManager
 
protected float m_fRPMScaled
 
protected float m_fRPMScaledOld
 
protected float m_fThrust
 
protected float m_fEngineLoad
 
protected float m_fPreviousLoad = -1
 
protected float m_fLifetimeScale
 
protected int m_iIsExhaustUnderWaterSignalIdx
 
protected int m_iEngineLoadIdx
 
protected bool m_bIsUnderwater
 
protected bool m_bIsDefective
 
protected float m_fUpdateDelay
 
protected float m_fCurrentUpdateDelay
 
const protected float TICK_TIME_DELAY_MAX = 2
 
const protected float TICK_DELAY_RANGE_START = 15
 
const protected float TICK_DELAY_RANGE_END = 100
 
protected ref array< ref array< int > > m_aExhaustStagesEmitters
 
protected ref array< ref array< int > > m_aDamageStagesEmitters
 
protected float m_fStartupTimeLeft
 
protected ResourceName m_sDamagedParticle
 
protected float m_fStartupTime
 

Function Documentation

◆ AdjustEngineEffects()

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

Definition at line 271 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ ConnectToMotorExhaustSystem()

protected void ConnectToMotorExhaustSystem ( )

Definition at line 342 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ CreateDamageEffect()

protected void CreateDamageEffect ( )

Create damaged exhaust particles.

Definition at line 253 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ DisconnectFromMotorExhaustSystem()

protected void DisconnectFromMotorExhaustSystem ( )

Definition at line 353 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ OnEngineStart()

void OnEngineStart ( bool  startup)

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

Definition at line 315 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ Update()

void Update ( float  timeSlice)
Parameters
[in]timeSlice

Definition at line 128 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ UpdateDamagedEmitter()

protected void UpdateDamagedEmitter ( float  timeSlice)

Damaged engine exhaust.

Definition at line 231 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ UpdateExhaustEmitter()

protected void UpdateExhaustEmitter ( float  timeSlice)

Ignition engine exhaust.

Definition at line 208 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ UpdateExhaustParticles()

protected void UpdateExhaustParticles ( float  timeSlice)

Definition at line 176 of file SCR_MotorExhaustEffectGeneralComponent.c.

Variable Documentation

◆ m_aDamageStagesEmitters

protected ref array<ref array<int> > m_aDamageStagesEmitters

Definition at line 34 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_aExhaustStagesEmitters

protected ref array<ref array<int> > m_aExhaustStagesEmitters

Definition at line 33 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_bIsDefective

protected bool m_bIsDefective

Definition at line 22 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_bIsUnderwater

protected bool m_bIsUnderwater

Definition at line 21 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_DamagedEmitter

protected ParticleEffectEntity m_DamagedEmitter

Definition at line 10 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_DamageManager

protected SCR_VehicleDamageManagerComponent m_DamageManager

Definition at line 11 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_ExhaustEmitter

protected ParticleEffectEntity m_ExhaustEmitter

Definition at line 9 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_ExhaustParticles

◆ m_fCurrentUpdateDelay

protected float m_fCurrentUpdateDelay

Definition at line 26 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fEngineLoad

protected float m_fEngineLoad

Definition at line 16 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fLifetimeScale

protected float m_fLifetimeScale

Definition at line 18 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fPreviousLoad

protected float m_fPreviousLoad = -1

Definition at line 17 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fRPMScaled

protected float m_fRPMScaled

Definition at line 13 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fRPMScaledOld

protected float m_fRPMScaledOld

Definition at line 14 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fStartupTime

protected float m_fStartupTime

Definition at line 42 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fStartupTimeLeft

protected float m_fStartupTimeLeft

Definition at line 36 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fThrust

protected float m_fThrust

Definition at line 15 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fUpdateDelay

protected float m_fUpdateDelay

Definition at line 25 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_iEngineLoadIdx

protected int m_iEngineLoadIdx

Definition at line 20 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_iIsExhaustUnderWaterSignalIdx

protected int m_iIsExhaustUnderWaterSignalIdx

Definition at line 19 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_sDamagedParticle

protected ResourceName m_sDamagedParticle

Definition at line 39 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_SignalsManager

protected SignalsManagerComponent m_SignalsManager

Definition at line 12 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ TICK_DELAY_RANGE_END

const protected float TICK_DELAY_RANGE_END = 100

Definition at line 29 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ TICK_DELAY_RANGE_START

const protected float TICK_DELAY_RANGE_START = 15

Definition at line 28 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ TICK_TIME_DELAY_MAX

const protected float TICK_TIME_DELAY_MAX = 2

Definition at line 27 of file SCR_MotorExhaustEffectGeneralComponent.c.