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

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

void EffWheelSmoke ()
 
void SetSurface (string surface)
 
void SetParticleState (int state)
 
- Закрытые члены унаследованные от EffectParticle
override EffectType GetEffectType ()
 Get what type of effect the Effect is.
 
override bool IsParticle ()
 Check whether the Effect is EffectParticle without casting.
 
void SetParticle (Particle p)
 Sets the main particle which this Effect will manage.
 
Particle GetParticle ()
 Gets the main particle which this Effect is managing.
 
override void Start ()
 Plays all elements this effect consists of.
 
override void Stop ()
 Stops all elements this effect consists of.
 
void AttachTo (Object obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_to_world=false)
 Read Particle.AddAsChild.
 
void ReAttach ()
 Helper method to attach to parent using stored settings.
 
void AddAsChild (Object obj, vector local_pos, vector local_ori, bool force_rotation_to_world)
 Helper method to attach to parent.
 
void Event_OnPlayStart ()
 Event which just simply exists (DEPRECATED)
 
void Event_OnPlayStarted ()
 Event which just simply exists (DEPRECATED)
 
void SetParticleID (int id)
 Sets the id of the particle to be used.
 
int GetParticleID ()
 Gets the id of the particle to be used.
 
void SetCurrentParticleID (int id)
 Sets the id of the particle to be used.
 
int GetCurrentParticleID ()
 Gets the current id of the managed Particle.
 
override void SetCurrentParent (Object parent_obj, bool updateCached=true)
 Set current parent of the managed Particle.
 
override Object GetCurrentParent ()
 Get the current parent of the managed Particle.
 
override void SetCurrentPosition (vector pos, bool updateCached=true)
 Set the current world position of the managed Particle.
 
override vector GetCurrentPosition ()
 Get the current world position of the managed Particle.
 
override void SetCurrentLocalPosition (vector pos, bool updateCached=true)
 Set the current local position of the managed Particle.
 
override vector GetCurrentLocalPosition ()
 Get the current local position of the managed Particle.
 
void SetOrientation (vector ori)
 Set orientation of the EffectParticle.
 
vector GetOrientation ()
 Get the orientation of the EffectParticle.
 
void SetCurrentOrientation (vector ori, bool updateCached=true)
 Set the current orientation of the managed Particle.
 
vector GetCurrentOrientation ()
 Get the current orientation of the managed Particle.
 
void ForceParticleRotationRelativeToWorld (bool state)
 Set orientation setting to be used by the effect when the Effect starts.
 
bool IsParticleRotationRelativeToWorld ()
 Get the orientation setting to be used by the effect when the Effect starts.
 
bool IsParticleCurrentRotationRelativeToWorld ()
 Get the current orientation setting to be used by the managed Particle.
 
void EffectParticle ()
 ctor
 
void ~EffectParticle ()
 dtor
 
override void InitEffect ()
 init
 
override string GetDebugName ()
 Override when getting debug information.
 
override void ValidateStart ()
 Validation whether an effect truly started playing or if the Effect should stop as none is present.
 
void CheckLifeSpan ()
 Was never called and probably should never be called.
 
void SetDecalOwner (Object o)
 

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

const float WHEEL_SMOKE_THRESHOLD = 5.0
 
- Закрытые данные унаследованные от EffectParticle
Particle m_ParticleObj
 The main Particle effect that this Effect wrapper manages.
 
int m_ParticleID
 The ID in the ParticleList to create Particle from.
 
vector m_Orientation
 Orientation set by SetOrientation.
 
bool m_ForceRotationRelativeToWorld
 Orientation setting to be used by the effect when the Effect starts.
 
vector m_ParticleOrientation
 
Object m_Object
 

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

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

◆ EffWheelSmoke()

void EffWheelSmoke ( )
inlineprivate
6 {
7 }

Методы

◆ SetParticleState()

void SetParticleState ( int state)
inlineprivate
27 {
28 bool was_playing = IsPlaying();
29
30 Stop();
31
33
34 if (was_playing)
35 {
36 Start(); // resume effect
37 }
38 }
bool IsPlaying()
Returns true when the Effect is playing, false otherwise.
Definition Effect.c:195
void SetParticleID(int id)
Sets the id of the particle to be used.
Definition EffectParticle.c:303
override void Start()
Plays all elements this effect consists of.
Definition EffectParticle.c:181
override void Stop()
Stops all elements this effect consists of.
Definition EffectParticle.c:204
Definition EntityAI.c:95

Перекрестные ссылки IsPlaying(), EffectParticle::SetParticleID(), EffectParticle::Start() и EffectParticle::Stop().

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

◆ SetSurface()

void SetSurface ( string surface)
inlineprivate
10 {
12
14 {
15 if (particleID != 0)
16 {
18 }
19 else
20 {
21 Stop();
22 }
23 }
24 }
void SetParticleState(int state)
Definition WheelSmoke.c:26
int m_ParticleID
The ID in the ParticleList to create Particle from.
Definition EffectParticle.c:14
Definition Surface.c:2
static int GetWheelParticleID(string surface_name)
Definition Surface.c:8

Перекрестные ссылки Surface::GetWheelParticleID(), EffectParticle::m_ParticleID, SetParticleState() и EffectParticle::Stop().

Поля

◆ WHEEL_SMOKE_THRESHOLD

const float WHEEL_SMOKE_THRESHOLD = 5.0
private

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


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