DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс EffEngineSmoke
+ Граф наследования:EffEngineSmoke:

Закрытые члены

void EffEngineSmoke ()
 
override void SetParticleStateLight ()
 
override void SetParticleStateHeavy ()
 
override void Event_OnFrameUpdate (float time_delta)
 

Закрытые данные

float m_Time
 

Закрытые статические данные

float m_UpdateInterval = 2
 

Подробное описание

Конструктор(ы)

◆ EffEngineSmoke()

void EffEngineSmoke ( )
inlineprivate
7 {
9 }
void SetEnableEventFrame(bool enable)
Enable Event_OnFrameUpdate for the effect.
Definition Effect.c:280

Перекрестные ссылки SetEnableEventFrame().

Методы

◆ Event_OnFrameUpdate()

override void Event_OnFrameUpdate ( float time_delta)
inlineprivate
22 {
24
26 {
27 m_Time = 0;
28
29 Car parent = Car.Cast( GetAttachmentParent() );
30
31 if (parent)
32 {
34 if (p)
35 {
36 SetParticleState( p.GetParticleID() );
37
38 float speed = parent.GetSpeedometerAbsolute();
39 float lifetime_scale;
40
41 if (speed < 100)
42 lifetime_scale = (100 - speed) / 100;
43 else
44 lifetime_scale = 0.1;
45
46 float birthrate_scale = 1 + (speed * 0.02 );
47
48 p.ScaleParticleParamFromOriginal( EmitorParam.LIFETIME, lifetime_scale );
49 p.ScaleParticleParamFromOriginal( EmitorParam.LIFETIME_RND, lifetime_scale );
50 p.ScaleParticleParamFromOriginal( EmitorParam.BIRTH_RATE, birthrate_scale );
51 p.ScaleParticleParamFromOriginal( EmitorParam.BIRTH_RATE_RND, birthrate_scale );
52 }
53 }
54 }
55 }
Object GetAttachmentParent()
Get the parent set by SetAttachmentParent.
Definition Effect.c:574
float m_Time
Definition EngineSmoke.c:3
float m_UpdateInterval
Definition EngineSmoke.c:4
void SetParticleState(int state)
Definition VehicleSmoke.c:20
Particle GetParticle()
Gets the main particle which this Effect is managing.
Definition EffectParticle.c:162
Definition EntityAI.c:95
Legacy way of using particles in the game.
Definition Particle.c:7
EmitorParam
Definition EnVisual.c:114

Перекрестные ссылки GetAttachmentParent(), EffectParticle::GetParticle(), m_Time, m_UpdateInterval и EffVehicleSmoke::SetParticleState().

◆ SetParticleStateHeavy()

override void SetParticleStateHeavy ( )
inlineprivate
17 {
19 }
Definition ParticleList.c:12
static const int HATCHBACK_ENGINE_OVERHEATED
Definition ParticleList.c:272

Перекрестные ссылки ParticleList::HATCHBACK_ENGINE_OVERHEATED и EffVehicleSmoke::SetParticleState().

◆ SetParticleStateLight()

override void SetParticleStateLight ( )
inlineprivate
12 {
14 }
static const int HATCHBACK_ENGINE_OVERHEATING
Definition ParticleList.c:271

Перекрестные ссылки ParticleList::HATCHBACK_ENGINE_OVERHEATING и EffVehicleSmoke::SetParticleState().

Поля

◆ m_Time

float m_Time
private

Используется в Event_OnFrameUpdate().

◆ m_UpdateInterval

float m_UpdateInterval = 2
staticprivate

Используется в Event_OnFrameUpdate().


Объявления и описания членов класса находятся в файле: