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

Go to the source code of this file.

Classes

class  SCR_MotorExhaustEffectGeneralComponentClass

Functions

override void OnInit (IEntity owner)
override void OnDelete (IEntity owner)
void Update (float timeSlice)
void OnGamePauseChanged (bool paused)
void UpdateExhaustParticles (float timeSlice)
void UpdateExhaustEmitter (float timeSlice, bool paused=false)
 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 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.
void ConnectToMotorExhaustSystem ()
void DisconnectFromMotorExhaustSystem ()

Variables

SCR_MotorExhaustEffectGeneralComponentClass 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
const float TICK_TIME_DELAY_MAX = 2
const float TICK_DELAY_RANGE_START = 15
const float TICK_DELAY_RANGE_END = 100
ref array< ref array< int > > m_aExhaustStagesEmitters
ref array< ref array< int > > m_aDamageStagesEmitters
float m_fStartupTimeLeft
ResourceName m_sDamagedParticle
float m_fStartupTime

Function Documentation

◆ AdjustEngineEffects()

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

Definition at line 279 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ ConnectToMotorExhaustSystem()

void ConnectToMotorExhaustSystem ( )
protected

Definition at line 350 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ CreateDamageEffect()

void CreateDamageEffect ( )
protected

Create damaged exhaust particles.

Definition at line 261 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ DisconnectFromMotorExhaustSystem()

void DisconnectFromMotorExhaustSystem ( )
protected

Definition at line 361 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ OnDelete()

override void OnDelete ( IEntity owner)
protected

Definition at line 64 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ OnEngineStart()

void OnEngineStart ( bool startup)
protected

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

Definition at line 323 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ OnEngineStop()

void OnEngineStop ( )
protected

Turn off the effect and pause the damaged exhaust effect.

Definition at line 340 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ OnGamePauseChanged()

void OnGamePauseChanged ( bool paused)
protected

Definition at line 176 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ Update()

void Update ( float timeSlice)
protected
Parameters
[in]timeSlice

Definition at line 128 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ UpdateDamagedEmitter()

void UpdateDamagedEmitter ( float timeSlice)
protected

Damaged engine exhaust.

Definition at line 239 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ UpdateExhaustEmitter()

void UpdateExhaustEmitter ( float timeSlice,
bool paused = false )
protected

Ignition engine exhaust.

Definition at line 213 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ UpdateExhaustParticles()

void UpdateExhaustParticles ( float timeSlice)
protected

Definition at line 181 of file SCR_MotorExhaustEffectGeneralComponent.c.

Variable Documentation

◆ m_aDamageStagesEmitters

ref array<ref array<int> > m_aDamageStagesEmitters
protected

Definition at line 34 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_aExhaustStagesEmitters

ref array<ref array<int> > m_aExhaustStagesEmitters
protected

Definition at line 33 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_bIsDefective

bool m_bIsDefective
protected

Definition at line 22 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_bIsUnderwater

bool m_bIsUnderwater
protected

Definition at line 21 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_DamagedEmitter

ParticleEffectEntity m_DamagedEmitter
protected

Definition at line 10 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_DamageManager

SCR_VehicleDamageManagerComponent m_DamageManager
protected

Definition at line 11 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_ExhaustEmitter

◆ m_fCurrentUpdateDelay

float m_fCurrentUpdateDelay
protected

Definition at line 26 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fEngineLoad

float m_fEngineLoad
protected

Definition at line 16 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fLifetimeScale

float m_fLifetimeScale
protected

Definition at line 18 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fPreviousLoad

float m_fPreviousLoad = -1
protected

Definition at line 17 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fRPMScaled

float m_fRPMScaled
protected

Definition at line 13 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fRPMScaledOld

float m_fRPMScaledOld
protected

Definition at line 14 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fStartupTime

float m_fStartupTime
protected

Definition at line 42 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fStartupTimeLeft

float m_fStartupTimeLeft
protected

Definition at line 36 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fThrust

float m_fThrust
protected

Definition at line 15 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_fUpdateDelay

float m_fUpdateDelay
protected

Definition at line 25 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_iEngineLoadIdx

int m_iEngineLoadIdx
protected

Definition at line 20 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_iIsExhaustUnderWaterSignalIdx

int m_iIsExhaustUnderWaterSignalIdx
protected

Definition at line 19 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_sDamagedParticle

ResourceName m_sDamagedParticle
protected

Definition at line 39 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ m_SignalsManager

SignalsManagerComponent m_SignalsManager
protected

Definition at line 12 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ TICK_DELAY_RANGE_END

const float TICK_DELAY_RANGE_END = 100
protected

Definition at line 29 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ TICK_DELAY_RANGE_START

const float TICK_DELAY_RANGE_START = 15
protected

Definition at line 28 of file SCR_MotorExhaustEffectGeneralComponent.c.

◆ TICK_TIME_DELAY_MAX

const float TICK_TIME_DELAY_MAX = 2
protected

Definition at line 27 of file SCR_MotorExhaustEffectGeneralComponent.c.