DIFF

class EffectParticleSource

EffectParticle Effect Managed

All members, including inherited

Wrapper class for managing particles through SEffectManager

Constructors 2

void EffectParticle()

ctor

void ~EffectParticle()

dtor

Members 6

protected Particle m_ParticleObj

The main Particle effect that this Effect wrapper manages

Referenced by GetParticle(), and SetParticle()
protected int m_ParticleID

The ID in the ParticleList to create Particle from

protected vector m_Orientation

Orientation set by SetOrientation

protected bool m_ForceRotationRelativeToWorld

Orientation setting to be used by the effect when the Effect starts

protected vector m_ParticleOrientation

\name DEPRECATED Simply exist because of backwards compatibility, might have never been used

protected Object m_Object
Referenced by SetDecalOwner()

Methods 33

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

NoteOverride this when inheriting to create own validation check
NoteIs called from Event_OnStarted invoker after Event_OnStarted has been performed
References GetParticle(), and Stop()
override EffectType GetEffectType()

Get what type of effect the Effect is

Returns: EffectType What type of effect the Effect is

override bool IsParticle()

Check whether the Effect is EffectParticle without casting

Returns: bool Whether the Effect is EffectParticle

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

protected void AddAsChild(Object obj, vector local_pos, vector local_ori, bool force_rotation_to_world)

Helper method to attach to parent

Referenced by AttachTo(), and ReAttach()
void Event_OnPlayStart()

Event which just simply exists (DEPRECATED)

NoteUse Event_OnStarted instead
WarningNever called or used
void Event_OnPlayStarted()

Event which just simply exists (DEPRECATED)

NoteUse Event_OnStarted instead
WarningNever called or used
int GetParticleID()

Gets the id of the particle to be used

Returns: int Particle ID registered in ParticleList

WarningOnly gets the cached variable, for immediate effect use GetCurrent variant
References m_ParticleID
void SetCurrentParticleID(int id)

Sets the id of the particle to be used

id
int Particle ID registered in ParticleList
NoteParticle will not update immediately, but ParticleSource will
int GetCurrentParticleID()

Gets the current id of the managed Particle

Returns: int Particle ID registered in ParticleList

override void SetCurrentParent(Object parent_obj, bool updateCached = true)

Set current parent of the managed Particle

parent_obj
Object The parent for the Particle
updateCached
bool Whether to update the cached variable
override Object GetCurrentParent()

Get the current parent of the managed Particle

Returns: Object The currrent parent of the Particle

override void SetCurrentPosition(vector pos, bool updateCached = true)

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
override vector GetCurrentPosition()

Get the current world position of the managed Particle

Returns: vector 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

pos
vector The current local position for the managed Particle
updateCached
bool Whether to update the cached variable
override vector GetCurrentLocalPosition()

Get the current local position of the managed Particle

Returns: vector The current local position of the managed Particle

void SetOrientation(vector ori)

Set orientation of the EffectParticle

ori
vector Orientation in degrees (yaw, pitch, roll)
WarningOnly sets the cached variable, for immediate effect use SetCurrent variant
References m_Orientation
vector GetOrientation()

Get the orientation of the EffectParticle

Returns: vector The orientation of EffectParticle

WarningOnly gets the cached variable, for immediate effect use GetCurrent variant
References m_Orientation
Referenced by Start()
void SetCurrentOrientation(vector ori, bool updateCached = true)

Set the current orientation of the managed Particle

ori
vector Orientation in degrees (yaw, pitch, roll)
vector GetCurrentOrientation()

Get the current orientation of the managed Particle

Returns: vector The current orientation of the managed Particle

void ForceParticleRotationRelativeToWorld(bool state)

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
NoteThere is no way to update this immediately
WarningOnly caches it into a variable to be used by Start, does not live update when called afterwards
bool IsParticleRotationRelativeToWorld()

Get the orientation setting to be used by the effect when the Effect starts

Returns: bool Whether to keep WS orientation when attaching it to parent

WarningOnly gets the cached variable, for immediate effect use IsParticleCurrentRotationRelativeToWorld
Referenced by ReAttach(), and Start()
bool IsParticleCurrentRotationRelativeToWorld()

Get the current orientation setting to be used by the managed Particle

Returns: bool Whether the managed Particle is only updating position from parent

void CheckLifeSpan()

Was never called and probably should never be called

WarningEmptied the functionality as it is relatively unsafe...
void SetDecalOwner(Object o)
References m_Object