DayZ 1.24
|
Wrapper class for managing particles through SEffectManager. More...
Protected Member Functions | |
EffectType | |
Information about what type of effect the Effect is, without the need for casting | |
override EffectType | GetEffectType () |
Get what type of effect the Effect is. | |
override bool | IsParticle () |
Check whether the Effect is EffectParticle without casting. | |
Main particle | |
Set or get the main particle which this Effect will manage | |
void | SetParticle (Particle p) |
Sets the main particle which this Effect will manage. | |
Particle | GetParticle () |
Gets the main particle which this Effect is managing. | |
Playback | |
Methods to Play/Stop Effect Generally, SEffectManager.Play methods are used instead of Start | |
override void | Start () |
Plays all elements this effect consists of. | |
override void | Stop () |
Stops all elements this effect consists of. | |
Attach | |
Helper methods for attaching to prent | |
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. | |
Events | |
Various events that can be overriden for custom behaviour | |
void | Event_OnPlayStart () |
Event which just simply exists (DEPRECATED) | |
void | Event_OnPlayStarted () |
Event which just simply exists (DEPRECATED) | |
Generic API | |
Setters and getters for generic data and properties | |
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. | |
Protected Attributes | |
Particle | m_ParticleObj |
The main Particle effect that this Effect wrapper manages. | |
Generic data | |
Generic data for the particle | |
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. | |
DEPRECATED | |
Methods which exist for backwards compatibility and are no longer in use or have never been in use | |
vector | m_ParticleOrientation |
Object | m_Object |
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) |
Wrapper class for managing particles through SEffectManager.
Definition at line 4 of file EffectParticle.c.
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
Helper method to attach to parent.
Definition at line 242 of file EffectParticle.c.
References GetParticle().
Referenced by AttachTo(), and ReAttach().
|
inlineprotected |
Read Particle.AddAsChild.
Definition at line 218 of file EffectParticle.c.
References AddAsChild(), ForceParticleRotationRelativeToWorld(), SetAttachedLocalOri(), SetLocalPosition(), and SetParent().
|
inlineprotected |
Was never called and probably should never be called.
Definition at line 530 of file EffectParticle.c.
|
inlineprotected |
Event which just simply exists (DEPRECATED)
Definition at line 262 of file EffectParticle.c.
|
inlineprotected |
Event which just simply exists (DEPRECATED)
Definition at line 272 of file EffectParticle.c.
Set orientation setting to be used by the effect when the Effect starts.
state | bool Whether to keep WS orientation when attaching it to parent |
Definition at line 484 of file EffectParticle.c.
References m_ForceRotationRelativeToWorld.
Referenced by AttachTo().
Get the current local position of the managed Particle.
vector
The current local position of the managed Particle Definition at line 412 of file EffectParticle.c.
References GetParent(), and GetParticle().
|
inlineprotected |
Get the current orientation of the managed Particle.
vector
The current orientation of the managed Particle Definition at line 468 of file EffectParticle.c.
References GetParticle(), and vector::Zero.
Get the current parent of the managed Particle.
Definition at line 348 of file EffectParticle.c.
References GetParticle().
|
inlineprotected |
Gets the current id of the managed Particle.
int
Particle ID registered in ParticleList Definition at line 323 of file EffectParticle.c.
References GetParticle(), and ParticleList::INVALID.
Get the current world position of the managed Particle.
vector
The current world position of the managed Particle Definition at line 377 of file EffectParticle.c.
References GetParticle().
Override when getting debug information.
Definition at line 66 of file EffectParticle.c.
References GetParticle(), and m_ParticleID.
Referenced by ValidateStart().
|
inlineprotected |
Get what type of effect the Effect is.
EffectType
What type of effect the Effect is Definition at line 101 of file EffectParticle.c.
|
inlineprotected |
Get the orientation of the EffectParticle.
vector
The orientation of EffectParticle Definition at line 444 of file EffectParticle.c.
References m_Orientation.
Referenced by Start().
|
inlineprotected |
Gets the main particle which this Effect is managing.
Particle
Main particle which this Effect is managing Definition at line 155 of file EffectParticle.c.
References m_ParticleObj.
Referenced by AddAsChild(), EffEngineSmoke::Event_OnFrameUpdate(), GetCurrentLocalPosition(), GetCurrentOrientation(), GetCurrentParent(), GetCurrentParticleID(), GetCurrentPosition(), GetDebugName(), IsParticleCurrentRotationRelativeToWorld(), IsParticleRotationRelativeToWorld(), SetCurrentLocalPosition(), SetCurrentOrientation(), SetCurrentParticleID(), SetCurrentPosition(), EffExhaustSmoke::SetParticleStateLight(), Stop(), EffCoolantSteam::UpdateParticle(), and ValidateStart().
|
inlineprotected |
Gets the id of the particle to be used.
int
Particle ID registered in ParticleList Definition at line 300 of file EffectParticle.c.
References m_ParticleID.
init
Definition at line 49 of file EffectParticle.c.
References Event_OnEffectEnded, and Event_OnStopped.
Check whether the Effect is EffectParticle without casting.
bool
Whether the Effect is EffectParticle Definition at line 110 of file EffectParticle.c.
|
inlineprotected |
Get the current orientation setting to be used by the managed Particle.
bool
Whether the managed Particle is only updating position from parent Definition at line 508 of file EffectParticle.c.
References GetParticle().
|
inlineprotected |
Get the orientation setting to be used by the effect when the Effect starts.
bool
Whether to keep WS orientation when attaching it to parent Definition at line 494 of file EffectParticle.c.
References GetParticle(), and m_ForceRotationRelativeToWorld.
Referenced by ReAttach(), and Start().
|
inlineprotected |
Helper method to attach to parent using stored settings.
Definition at line 233 of file EffectParticle.c.
References AddAsChild(), GetAttachedLocalOri(), GetLocalPosition(), GetParent(), and IsParticleRotationRelativeToWorld().
Referenced by SetCurrentLocalPosition(), and SetCurrentParent().
|
inlineprotected |
Set the current local position of the managed Particle.
pos | vector The current local position for the managed Particle |
updateCached | bool Whether to update the cached variable |
Definition at line 392 of file EffectParticle.c.
References GetParent(), GetParticle(), and ReAttach().
Set the current orientation of the managed Particle.
ori | vector Orientation in degrees (yaw, pitch, roll) |
Definition at line 453 of file EffectParticle.c.
References GetParticle(), and SetOrientation().
|
inlineprotected |
Set current parent of the managed Particle.
parent_obj | Object The parent for the Particle |
updateCached | bool Whether to update the cached variable |
Definition at line 337 of file EffectParticle.c.
References ReAttach().
Sets the id of the particle to be used.
id | int Particle ID registered in ParticleList |
Definition at line 310 of file EffectParticle.c.
References GetParticle(), and m_ParticleID.
|
inlineprotected |
Set the current world position of the managed Particle.
pos | vector The current world position for the Particle |
updateCached | bool Whether to update the cached variable |
Definition at line 363 of file EffectParticle.c.
References GetParticle().
Definition at line 542 of file EffectParticle.c.
References m_Object.
Set orientation of the EffectParticle.
ori | vector Orientation in degrees (yaw, pitch, roll) |
Definition at line 434 of file EffectParticle.c.
References m_Orientation.
Referenced by SetCurrentOrientation().
Sets the main particle which this Effect will manage.
p | Particle Main particle which this Effect will manage |
Definition at line 127 of file EffectParticle.c.
References Event_OnEffectEnded, Event_OnEffectStarted, and m_ParticleObj.
Referenced by EffBulletImpactBase::Event_OnStarted(), Start(), and Stop().
Sets the id of the particle to be used.
id | int Particle ID registered in ParticleList |
Definition at line 290 of file EffectParticle.c.
References m_ParticleID.
Referenced by BleedingSourceEffect::BleedingSourceEffect(), BleedingSourceEffect(), BloodSplatter::BloodSplatter(), EffBreathVapourHeavy::EffBreathVapourHeavy(), EffBreathVapourLight::EffBreathVapourLight(), EffBreathVapourMedium::EffBreathVapourMedium(), EffBulletImpactTest::EffBulletImpactTest(), EffGeneratorSmoke::EffGeneratorSmoke(), EffSwarmingFlies::EffSwarmingFlies(), EffVomit::EffVomit(), EffVomitBlood::EffVomitBlood(), LandmineExplosion::LandmineExplosion(), MenuCarEngineSmoke::MenuCarEngineSmoke(), MenuEvaporation::MenuEvaporation(), and EffVehicleSmoke::SetParticleState().
Plays all elements this effect consists of.
Definition at line 173 of file EffectParticle.c.
References GetAttachedLocalOri(), GetLocalPosition(), GetOrientation(), GetParent(), GetPosition, IsParticleRotationRelativeToWorld(), m_ParentObject, m_ParticleID, ParticleManager(), and SetParticle().
Referenced by EffVehicleSmoke::SetParticleState().
Stops all elements this effect consists of.
Definition at line 196 of file EffectParticle.c.
References GetParticle(), SetParticle(), and Particle::Stop().
Referenced by EffVehicleSmoke::SetParticleState(), and ValidateStart().
Validation whether an effect truly started playing or if the Effect should stop as none is present.
Definition at line 82 of file EffectParticle.c.
References ErrorEx, GetDebugName(), GetParticle(), and Stop().
|
protected |
Orientation setting to be used by the effect when the Effect starts.
Definition at line 18 of file EffectParticle.c.
Referenced by ForceParticleRotationRelativeToWorld(), and IsParticleRotationRelativeToWorld().
|
protected |
Definition at line 26 of file EffectParticle.c.
Referenced by SetDecalOwner().
|
protected |
Orientation set by SetOrientation.
Definition at line 16 of file EffectParticle.c.
Referenced by GetOrientation(), and SetOrientation().
|
protected |
The ID in the ParticleList to create Particle from.
Definition at line 14 of file EffectParticle.c.
Referenced by GetDebugName(), GetParticleID(), SetCurrentParticleID(), SetParticleID(), and Start().
|
protected |
The main Particle effect that this Effect wrapper manages.
Definition at line 7 of file EffectParticle.c.
Referenced by GetParticle(), and SetParticle().
|
protected |
Definition at line 25 of file EffectParticle.c.