DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
ParticleSource.c
См. документацию.
1
13
15enum PlayParticleFlags
16{
18 NONE,
19 // Is just a placeholder for now
20}
21
23enum StopParticleFlags
24{
26 NONE,
40}
41
43enum EGetParticleMode
44{
51}
52
53enum ParticlePropertiesFlags
54{
55 NONE,
62};
63
65class ParticleProperties
66{
78 void ParticleProperties(vector localPos, int flags, Object parent = null, vector localOri = vector.Zero, Class owner = null)
79 {
80 }
81
84 {
85 }
86
92 proto Class GetOwner();
95 proto int GetPPFlags();
96 proto bool IsPlayOnCreation();
97 proto bool IsForceWorldRotation();
98 proto bool IsKeepParentOnEnd();
100}
101
102typedef array<ref ParticleProperties> ParticlePropertiesArray;
104
124{
127 {
128 m_ParticleEffect = this;
129 }
130
133 {
134 }
135
137 override protected void ParticleInit() {}
138
147
155
160 proto native int GetParticleAutoDestroyFlags();
161
166
178 static ParticleSource CreateParticle( int id, vector pos, bool playOnCreation = false, Object parent = null, vector ori = vector.Zero, bool forceWorldRotation = false, Class owner = null )
179 {
180 int flags = ParticlePropertiesFlags.NONE;
181
182 if (playOnCreation)
183 {
184 flags = flags | ParticlePropertiesFlags.PLAY_ON_CREATION;
185 }
186
187 if (forceWorldRotation)
188 {
189 flags = flags | ParticlePropertiesFlags.FORCE_WORLD_ROT;
190 }
191
192 return CreateParticleEx(id, pos, flags, parent, ori, owner);
193 }
194
205 static ParticleSource CreateParticleEx( int id, vector pos, int flags = ParticlePropertiesFlags.NONE, Object parent = null, vector ori = vector.Zero, Class owner = null )
206 {
207 string particlePath = ParticleList.GetParticleFullPath(id);
208 if (particlePath == "") // There is already an error inside of ParticleList signaling this
209 {
210 ErrorEx(string.Format("Could not create ParticleSource as particle id %1 is invalid.", id));
211 return null;
212 }
213
214 vector localPos = pos;
215
216 if (parent)
217 pos = parent.GetPosition();
218
219 ParticleSource p = ParticleSource.Cast( GetGame().CreateObjectEx("ParticleSource", pos, ECE_LOCAL) );
220 p.SetParticle(particlePath);
221 ParticleProperties props = new ParticleProperties(localPos, flags, parent, ori, owner);
222 p.ApplyProperties(props);
223
224 return p;
225 }
226
236 override static Particle CreateOnObject(
237 int particle_id,
238 Object parent_obj,
239 vector local_pos = "0 0 0",
240 vector local_ori = "0 0 0",
241 bool force_world_rotation = false )
242 {
243 return CreateParticle(particle_id, local_pos, false, parent_obj, local_ori, force_world_rotation);
244 }
245
249 override static Particle Create( int particle_id, Object parent_obj, vector local_pos = "0 0 0", vector local_ori = "0 0 0" )
250 {
251 return CreateOnObject( particle_id, parent_obj, local_pos, local_ori);
252 }
253
262 override static Particle CreateInWorld( int particle_id, vector global_pos, vector global_ori = "0 0 0", bool force_world_rotation = false )
263 {
264 return CreateParticle(particle_id, global_pos, false, null, global_ori, force_world_rotation);
265 }
266
270 override static ParticleSource Create( int particle_id, vector global_pos, vector global_ori = "0 0 0" )
271 {
272 return CreateInWorld( particle_id, global_pos, global_ori );
273 }
274
276
277
278
283
293 override static Particle PlayOnObject(int particle_id, Object parent_obj, vector local_pos = "0 0 0", vector local_ori = "0 0 0", bool force_world_rotation = false )
294 {
295 return CreateParticle(particle_id, local_pos, true, parent_obj, local_ori, force_world_rotation);
296 }
297
301 override static Particle Play( int particle_id, Object parent_obj, vector local_pos = "0 0 0", vector local_ori = "0 0 0" )
302 {
303 return PlayOnObject( particle_id, parent_obj, local_pos, local_ori);
304 }
305
312 override static Particle PlayInWorld( int particle_id, vector global_pos)
313 {
314 return CreateParticle(particle_id, global_pos, true);
315 }
316
320 override static Particle Play( int particle_id, vector global_pos)
321 {
322 return PlayInWorld( particle_id, global_pos);
323 }
324
326
327
328
333
339 private proto bool PlayParticleNative(int flags);
340
346 override bool PlayParticleEx(int particle_id = -1, int flags = 0)
347 {
348 if ( particle_id > -1 )
349 {
350 // Here we can just do it directly
351 // While with the old system it will not work when the particle is already created
353 }
354
355 return PlayParticleNative(flags);
356 }
357
365 private proto bool StopParticleNative(int flags);
366
372 override bool StopParticle(int flags = 0)
373 {
374 return StopParticleNative(flags);
375 }
376
381 private proto native bool ResetParticleNative();
382
387 override bool ResetParticle()
388 {
389 return ResetParticleNative();
390 }
391
396 private proto native bool RestartParticleNative();
397
402 override bool RestartParticle()
403 {
404 return RestartParticleNative();
405 }
406
411 private proto bool IsParticlePlayingNative();
412
417 override bool IsParticlePlaying()
418 {
420 }
421
423
424
425
430
436 private proto native bool SetParticleNative(string path);
437
444 private bool SetParticle(string path)
445 {
446 return SetParticleNative(path);
447 }
448
454 bool SetParticleByID(int id)
455 {
457 }
458
464 override void SetSource(int particle_id)
465 {
467 }
468
470
471
472
477
484 private proto bool GetParticleNative(out string path, EGetParticleMode mode);
485
492 bool GetParticle(out string path, EGetParticleMode mode)
493 {
494 return GetParticleNative(path, mode);
495 }
496
501 override int GetParticleID()
502 {
503 string path;
504 if (GetParticle(path, EGetParticleMode.FILE))
506 else
507 return -1;
508 }
509
517 {
518 string path;
519 if (GetParticle(path, EGetParticleMode.NO_EXT))
521 else
522 return -1;
523 }
524
526
527
528
533
540 private proto native bool ApplyPropertiesNative(ParticleProperties properties);
541
547 bool ApplyProperties(ParticleProperties properties)
548 {
549 return ApplyPropertiesNative(properties);
550 }
551
553
554
555
560
567 {
568 return this;
569 }
570
576 {
577 return Object.Cast(GetParent());
578 }
579
584 private proto bool HasActiveParticleNative();
585
590 override bool HasActiveParticle()
591 {
593 }
594
600 private proto int GetParticleCountNative();
601
607 override int GetParticleCount()
608 {
609 return GetParticleCountNative();
610 }
611
616 private proto bool IsRepeatNative();
617
622 override bool IsRepeat()
623 {
624 return IsRepeatNative();
625 }
626
631 private proto float GetMaxLifetimeNative();
632
637 override float GetMaxLifetime()
638 {
639 return GetMaxLifetimeNative();
640 }
641
646 proto native Class GetOwner();
647
652 proto native void SetOwner(Class owner);
653
657 proto native void Orphan();
658
660
661
662
667
673
678 proto native int GetIndex();
679
681
682
683
688
694 proto int GetCountID();
695
700 proto native static int GetStaticCount();
701
706 proto native static int GetStaticActiveCount();
707
709
710
711
718
722 override protected void OnParticleParented(IEntity parent)
723 {
724 m_ParentObject = Object.Cast(parent);
725
726 super.OnParticleParented(parent);
727 }
728
732 override protected void OnParticleUnParented(IEntity parent)
733 {
734 m_ParentObject = null;
735
736 // Since we have lost the parent, we will need to refresh the wiggle
737 // As it uses a cached local position, which is now no longer correct
739 {
740 float randomAngle = m_MaxOriWiggle;
741 float randomInterval = m_MaxOriInterval;
744
745 StopWiggle();
746 SetWiggle(randomAngle, randomInterval);
747 }
748
749 super.OnParticleUnParented(parent);
750 }
751
755 override protected void OnParticleStop()
756 {
757 if (IsWiggling())
758 {
759 StopWiggle();
760 delete m_RandomizeOri;
761 }
762
763 super.OnParticleStop();
764 }
765
767
768
769
774
783 override void AddAsChild(Object parent, vector local_pos = "0 0 0", vector local_ori = "0 0 0", bool force_rotation_to_world = false)
784 {
785 int flags = ParticlePropertiesFlags.NONE;
786
787 if (force_rotation_to_world)
788 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
789
790 ParticleProperties props = new ParticleProperties(local_pos, flags, parent, local_ori);
791 ApplyProperties(props);
792 }
793
795
796
797
802
808 override void SetParticleParam(int parameter_id, float value )
809 {
810 SetParticleParm(this, -1, parameter_id, value);
811 }
812
819 override void SetParameter(int emitter, int parameter, float value)
820 {
821 SetParticleParm(this, emitter, parameter, value);
822 }
823
830 override void GetParameter(int emitter, int parameter, out float value)
831 {
832 GetParticleParm(this, emitter, parameter, value);
833 }
834
841 override float GetParameterEx(int emitter, int parameter)
842 {
843 float value;
844 GetParticleParm(this, emitter, parameter, value);
845 return value;
846 }
847
853 override void ScaleParticleParamFromOriginal(int parameter_id, float coef )
854 {
855 int emitors = GetParticleEmitorCount(this);
856 for (int i = 0; i < emitors; ++i)
857 {
858 float value;
859 GetParticleParmOriginal(this, i, parameter_id, value);
860 SetParticleParm(this, i, parameter_id, value * coef);
861 }
862 }
863
869 override void ScaleParticleParam(int parameter_id, float coef )
870 {
871 int emitors = GetParticleEmitorCount(this);
872 for (int i = 0; i < emitors; ++i)
873 {
874 float value;
875 GetParticleParm(this, i, parameter_id, value);
876 SetParticleParm(this, i, parameter_id, value * coef);
877 }
878 }
879
886 override void IncrementParticleParamFromOriginal(int parameter_id, float value )
887 {
888 int emitors = GetParticleEmitorCount(this);
889 for (int i = 0; i < emitors; ++i)
890 {
891 float param;
892 GetParticleParmOriginal(this, i, parameter_id, param);
893 SetParticleParm(this, i, parameter_id, param + value);
894 }
895 }
896
903 override void IncrementParticleParam(int parameter_id, float value )
904 {
905 int emitors = GetParticleEmitorCount(this);
906 for (int i = 0; i < emitors; ++i)
907 {
908 float param;
909 GetParticleParm(this, i, parameter_id, param);
910 SetParticleParm(this, i, parameter_id, param + value);
911 }
912 }
913
915
916
917
922
929 override void SetWiggle(float random_angle, float random_interval)
930 {
931 if (random_angle != 0 || random_interval != 0)
932 {
933 if (IsWiggling())
934 {
935 m_MaxOriWiggle = random_angle;
936 m_MaxOriInterval = random_interval;
937 return;
938 }
939
940 // We need the position to be accurate before storing it
941 Update();
942
943 // These are only ever used within the Wiggle API
944 // To restore the properties after wiggling
945 // So let's only set them within the Wiggle API c:
946
948 m_DefaultOri = GetLocalYawPitchRoll();
949 m_DefaultWorldPos = GetWorldPosition();
950 m_DefaultWorldOri = GetYawPitchRoll();
951 m_ForceOrientationRelativeToWorld = IsHierarchyPositionOnly();
952 }
953
954 super.SetWiggle(random_angle, random_interval);
955 }
956
960 override void StopWiggle()
961 {
962 bool wiggling = IsWiggling();
963
964 super.StopWiggle();
965
966 if (wiggling)
967 {
968 // Restore pre-wiggle orientation
969 int flags = ParticlePropertiesFlags.NONE;
970
972 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
973
974 ParticleProperties prop = new ParticleProperties(m_DefaultPos, flags, GetParticleParent(), m_DefaultOri, GetOwner());
975 ApplyProperties(prop);
976 }
977 }
978
982 override private void RandomizeOrientation()
983 {
984 if (ToDelete())
985 return;
986
987 m_WiggleProcessing = true;
988
989 if ( !m_RandomizeOri.IsRunning() )
990 m_RandomizeOri.Run( Math.RandomFloat(0, m_MaxOriInterval) , this, "RandomizeOrientation", null, false);
991
992 int flags = ParticlePropertiesFlags.NONE;
993
995 flags = ParticlePropertiesFlags.FORCE_WORLD_ROT;
996
997 ParticleProperties prop = new ParticleProperties(m_DefaultPos, flags, GetParticleParent(), m_DefaultOri + RandWiggleVector(), GetOwner());
998 ApplyProperties(prop);
999
1000 m_WiggleProcessing = false;
1001 }
1002
1004
1005
1006
1011
1013 override private void UpdateState() { ErrorEx("Should not be in use on ParticleSource."); }
1014
1016 override private void DestroyParticleEffect() { ErrorEx("Should not be in use on ParticleSource."); }
1017
1019 override private void CreateParticleEffect() { ErrorEx("Should not be in use on ParticleSource."); }
1020
1022 override protected void EOnFrame(IEntity other, float timeSlice) { ErrorEx("Should not be in use on ParticleSource."); }
1023
1025 override private void OnCheckAutoDelete() { ErrorEx("Should not be in use on ParticleSource."); }
1026
1028 override private void OnToDelete() { ErrorEx("Should not be in use on ParticleSource."); }
1029
1031}
IMMEDIATE
It gets added in immediately, which means that when called while an invoker is running,...
Определения tools.c:7
enum EWetnessLevel FULL
void CreateParticle()
Определения BleedingSource.c:83
const int ECE_LOCAL
Определения CentralEconomy.c:24
vector GetLocalPosition()
Get the local position of the Effect.
Определения Effect.c:488
string path
Определения OptionSelectorMultistate.c:142
void ParticleManager(ParticleManagerSettings settings)
Constructor (ctor)
Определения ParticleManager.c:88
enum ParticleAutoDestroyFlags PLAY_ON_CREATION
Makes the particle start playing immediately after being created.
enum ParticleAutoDestroyFlags FILE
Filename only ("smoking_barrel_small")
ParticleAutoDestroyFlags
Flags to pass to ParticleSource.SetParticleAutoDestroyFlags.
Определения ParticleSource.c:3
enum ParticleAutoDestroyFlags PAUSE
(SPF_IMMEDIATE | SPF_VISIBLE) "Freezes" the particle while keeping it visible
array< ParticleSource > ParticleSourceArray
Определения ParticleSource.c:103
enum ParticleAutoDestroyFlags NO_EXT
Full path without ext ("graphics/particles/smoking_barrel_small")
enum ParticleAutoDestroyFlags KEEP_PARENT_ON_END
By default, a particle unparents when it ends, this disables this behaviour.
enum ParticleAutoDestroyFlags FORCE_WORLD_ROT
Only applicable when there is a parent, this will force the localOri to be in world space instead of ...
int particle_id
Определения SmokeSimulation.c:28
Super root of all classes in Enforce script.
Определения EnScript.c:11
Определения EnEntity.c:165
Определения EnMath.c:7
Определения ObjectTyped.c:2
void Particle()
ctor
Определения Particle.c:61
vector m_DefaultPos
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:33
Object m_ParticleEffect
The child object which contains the actual particle.
Определения Particle.c:50
vector m_DefaultWorldOri
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:35
vector m_DefaultOri
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:31
bool m_ForceOrientationRelativeToWorld
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:29
bool m_WiggleProcessing
Used for Wiggle API, to signal that wiggle API is currently doing work.
Определения Particle.c:27
vector m_DefaultWorldPos
Used for Wiggle API, to restore after unparenting.
Определения Particle.c:37
vector RandWiggleVector()
Helper to get a randomized wiggle vector.
Определения Particle.c:833
Object m_ParentObject
Parent Object the Particle is child of.
Определения Particle.c:48
float m_MaxOriWiggle
Used for Wiggle API, Wiggle room [-m_MaxOriWiggle, m_MaxOriWiggle].
Определения Particle.c:40
float m_MaxOriInterval
Used for Wiggle API, Interval for wiggling [0, m_MaxOriInterval[.
Определения Particle.c:42
ref Timer m_RandomizeOri
Used for Wiggle API, calls the Wiggle functionality.
Определения Particle.c:44
bool IsWiggling()
Checks if particle is currently wiggling.
Определения Particle.c:763
static int GetParticleIDByName(string name)
Returns particle's ID based on the filename (without .ptc suffix)
Определения ParticleList.c:500
static string GetParticleFullPath(int particle_id)
Returns particle's full path (with .ptc suffix) based on its ID.
Определения ParticleList.c:485
static int GetParticleID(string particle_file)
Returns particle's ID based on the path (without .ptc suffix)
Определения ParticleList.c:491
Определения ParticleList.c:12
override void IncrementParticleParam(int parameter_id, float value)
Increments the value of the given parameter relatively from the CURRENT value.
Определения ParticleSource.c:903
static override Particle Play(int particle_id, Object parent_obj, vector local_pos="0 0 0", vector local_ori="0 0 0")
Legacy function for backwards compatibility with 1.01 and below.
Определения ParticleSource.c:301
proto int GetCountID()
Gets the ID for the ParticleSource.
override void ScaleParticleParamFromOriginal(int parameter_id, float coef)
Scales the given parameter on all emitors relatively to their ORIGINAL value.
Определения ParticleSource.c:853
void ParticleSource()
ctor
Определения ParticleSource.c:126
proto float GetMaxLifetimeNative()
Returns the approx. max lifetime.
proto bool HasActiveParticleNative()
Returns if there is any particle active.
void UpdateState()
Empty.
Определения ParticleSource.c:1013
static override Particle CreateInWorld(int particle_id, vector global_pos, vector global_ori="0 0 0", bool force_world_rotation=false)
Creates a particle emitter on the given position.
Определения ParticleSource.c:262
void RandomizeOrientation()
Randomizes a new orientation and applies it.
Определения ParticleSource.c:982
override int GetParticleCount()
Returns the total count of active particles in all emitors.
Определения ParticleSource.c:607
override float GetMaxLifetime()
Returns the approx. max lifetime.
Определения ParticleSource.c:637
void OnCheckAutoDelete()
Empty.
Определения ParticleSource.c:1025
static override Particle PlayOnObject(int particle_id, Object parent_obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_world_rotation=false)
Creates a particle emitter, attaches it on the given object and activates it.
Определения ParticleSource.c:293
static ParticleSource CreateParticleEx(int id, vector pos, int flags=ParticlePropertiesFlags.NONE, Object parent=null, vector ori=vector.Zero, Class owner=null)
Master create function.
Определения ParticleSource.c:205
void ParticleInit()
Empty - Only needed for Particle.
Определения ParticleSource.c:137
override bool StopParticle(int flags=0)
Method to tell the particle to stop playing.
Определения ParticleSource.c:372
proto native int GetIndex()
Get the index of this ParticleSource in the owning ParticleManager.
proto native bool SetParticleNative(string path)
Assigns a particle to the ParticleSource.
proto bool GetParticleNative(out string path, EGetParticleMode mode)
Gets the path to the currently assigned particle.
bool GetParticle(out string path, EGetParticleMode mode)
Gets the path to the currently assigned particle.
Определения ParticleSource.c:492
proto int GetParticleCountNative()
Returns the total count of active particles in all emitors.
static ParticleSource CreateParticle(int id, vector pos, bool playOnCreation=false, Object parent=null, vector ori=vector.Zero, bool forceWorldRotation=false, Class owner=null)
Create function.
Определения ParticleSource.c:178
override bool IsParticlePlaying()
Ask if the particle is still playing.
Определения ParticleSource.c:417
void OnToDelete()
Empty.
Определения ParticleSource.c:1028
override void AddAsChild(Object parent, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_rotation_to_world=false)
Attaches this particle onto some object. If null value is provided then the particle will be detached...
Определения ParticleSource.c:783
override void SetParameter(int emitter, int parameter, float value)
Set the value of a parameter of an emitor in the particle.
Определения ParticleSource.c:819
static override Particle PlayInWorld(int particle_id, vector global_pos)
Creates a particle emitter on the given position and activates it.
Определения ParticleSource.c:312
proto native bool RestartParticleNative()
Method to tell the particle to restart (reset + play)
bool SetParticleByID(int id)
Assigns a particle to the ParticleSource.
Определения ParticleSource.c:454
int GetParticleIDLegacy()
Gets the ParticleList ID of the currently assigned particle.
Определения ParticleSource.c:516
override void StopWiggle()
Stops randomized wiggle.
Определения ParticleSource.c:960
static override Particle Create(int particle_id, Object parent_obj, vector local_pos="0 0 0", vector local_ori="0 0 0")
Legacy function for backwards compatibility.
Определения ParticleSource.c:249
static override Particle Play(int particle_id, vector global_pos)
Legacy function for backwards compatibility with 1.01 and below.
Определения ParticleSource.c:320
override void IncrementParticleParamFromOriginal(int parameter_id, float value)
Increments the value of the given parameter relatively from the ORIGINAL value.
Определения ParticleSource.c:886
bool ApplyProperties(ParticleProperties properties)
Applies the properties given to the ParticleSource.
Определения ParticleSource.c:547
proto bool IsParticlePlayingNative()
Ask if the particle is still playing.
override Object GetParticleParent()
Returns the parent of this Particle if there is one.
Определения ParticleSource.c:575
proto native Class GetOwner()
Get the owner of this ParticleSource.
override void SetSource(int particle_id)
Sets particle id.
Определения ParticleSource.c:464
override bool PlayParticleEx(int particle_id=-1, int flags=0)
Method to tell the particle to start playing.
Определения ParticleSource.c:346
static override ParticleSource Create(int particle_id, vector global_pos, vector global_ori="0 0 0")
Legacy function for backwards compatibility with 1.01 and below.
Определения ParticleSource.c:270
override float GetParameterEx(int emitter, int parameter)
Get the value of a parameter of an emitor in the particle.
Определения ParticleSource.c:841
proto native void SetOwner(Class owner)
Set the owner of this ParticleSource.
void ~ParticleSource()
dtor
Определения ParticleSource.c:132
proto static native int GetStaticActiveCount()
Gets the amount of ParticleSource that are currently existing.
proto native int GetParticleAutoDestroyFlags()
Gets the currently set ParticleAutoDestroyFlags flags set on this ParticleSource.
override bool HasActiveParticle()
Returns if there is any particle active.
Определения ParticleSource.c:590
void OnParticleParented(IEntity parent)
Event when the particle receives a parent.
Определения ParticleSource.c:722
proto native void SetParticleAutoDestroyFlags(ParticleAutoDestroyFlags flags)
Enables the particle to automatically clean up itself when ending or stopping.
void DestroyParticleEffect()
Empty.
Определения ParticleSource.c:1016
override void SetWiggle(float random_angle, float random_interval)
Makes the particle change direction by random_angle every random_interval seconds.
Определения ParticleSource.c:929
void OnParticleUnParented(IEntity parent)
Event when the particle is orphaned.
Определения ParticleSource.c:732
override bool RestartParticle()
Method to tell the particle to restart (reset + play)
Определения ParticleSource.c:402
override Object GetDirectParticleEffect()
Returns direct particle effect entity.
Определения ParticleSource.c:566
static override Particle CreateOnObject(int particle_id, Object parent_obj, vector local_pos="0 0 0", vector local_ori="0 0 0", bool force_world_rotation=false)
Creates a particle emitter and attaches it on the given object.
Определения ParticleSource.c:236
override bool IsRepeat()
Returns whether there is a repeating particle.
Определения ParticleSource.c:622
void DisableAutoDestroy()
Disables the particle automatically cleaning up itself when ending or stopping.
Определения ParticleSource.c:151
proto native bool ApplyPropertiesNative(ParticleProperties properties)
Applies the properties given to the ParticleSource.
void OnParticleStop()
Event when the particle stops.
Определения ParticleSource.c:755
proto native void Orphan()
null the owner of this ParticleSource
override int GetParticleID()
Gets the ParticleList ID of the currently assigned particle.
Определения ParticleSource.c:501
bool SetParticle(string path)
Assigns a particle to the ParticleSource.
Определения ParticleSource.c:444
proto static native int GetStaticCount()
Gets the amount of ParticleSource that have been created since the start of the program.
void CreateParticleEffect()
Empty.
Определения ParticleSource.c:1019
proto native ParticleManager GetParticleManager()
Get the ParticleManager the ParticleSource belongs to if any.
proto bool IsRepeatNative()
Returns whether there is a repeating particle.
proto bool StopParticleNative(int flags)
Method to tell the particle to stop playing.
override void ScaleParticleParam(int parameter_id, float coef)
Scales the given parameter on all emitors relatively to their CURRENT value.
Определения ParticleSource.c:869
proto bool PlayParticleNative(int flags)
Method to tell the particle to start playing.
proto native bool ResetParticleNative()
Method to tell the particle to reset.
override void GetParameter(int emitter, int parameter, out float value)
Get the value of a parameter of an emitor in the particle.
Определения ParticleSource.c:830
void EOnFrame(IEntity other, float timeSlice)
Empty.
Определения ParticleSource.c:1022
override bool ResetParticle()
Method to tell the particle to reset.
Определения ParticleSource.c:387
override void SetParticleParam(int parameter_id, float value)
Set the value of a parameter of all emitors in the particle.
Определения ParticleSource.c:808
proto vector GetLocalPos()
proto vector GetLocalOri()
proto Object GetParent()
void ~ParticleProperties()
dtor
Определения ParticleSource.c:83
proto bool IsKeepParentOnEnd()
proto Class GetOwner()
proto int GetPPFlags()
void ParticleProperties(vector localPos, int flags, Object parent=null, vector localOri=vector.Zero, Class owner=null)
Constructor (ctor)
Определения ParticleSource.c:78
proto bool IsPlayOnCreation()
proto bool IsForceWorldRotation()
Result for an object found in CGame.IsBoxCollidingGeometryProxy.
static const vector Zero
Определения EnConvert.c:110
Определения EnConvert.c:106
proto native CGame GetGame()
enum ShapeType ErrorEx
@ VISIBLE
Определения EnDebug.c:136
@ ALL
Mask of all events.
Определения EnEntity.c:110
static proto float RandomFloat(float min, float max)
Returns a random float number between and min[inclusive] and max[exclusive].
proto void SetParticleParm(notnull IEntity ent, int emitor, EmitorParam parameter, void value)
proto void GetParticleParmOriginal(notnull IEntity ent, int emitor, EmitorParam parameter, out void value)
proto int GetParticleEmitorCount(notnull IEntity ent)
proto void GetParticleParm(notnull IEntity ent, int emitor, EmitorParam parameter, out void value)
@ NONE
No flags.
Определения EnProfiler.c:11
@ RESET
When present, will reset [PD] on sorting, otherwise will accumulate on top of it.
Определения EnProfiler.c:13
proto native Widget GetParent()
Get parent of the Effect.
Определения Effect.c:407
@ ON_END
Определения EnWidgets.c:535
@ ON_STOP
Определения EnWidgets.c:534
proto native volatile void Update()
Определения PlayerSoundManager.c:125