diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /mp/src/game/client/fx_fleck.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'mp/src/game/client/fx_fleck.h')
| -rw-r--r-- | mp/src/game/client/fx_fleck.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/mp/src/game/client/fx_fleck.h b/mp/src/game/client/fx_fleck.h new file mode 100644 index 00000000..56c8f333 --- /dev/null +++ b/mp/src/game/client/fx_fleck.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#if !defined( FXFLECKS_H )
+#define FXFLECKS_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "particles_simple.h"
+#include "particlemgr.h"
+#include "particle_collision.h"
+
+// FleckParticle
+
+class FleckParticle : public Particle
+{
+public:
+ Vector m_vecVelocity;
+ float m_flRoll;
+ float m_flRollDelta;
+ float m_flDieTime; // How long it lives for.
+ float m_flLifetime; // How long it has been alive for so far.
+ byte m_uchColor[3];
+ byte m_uchSize;
+};
+
+//
+// CFleckParticles
+//
+
+class CFleckParticles : public CSimpleEmitter
+{
+public:
+
+ CFleckParticles( const char *pDebugName );
+ ~CFleckParticles();
+ static CSmartPtr<CFleckParticles> Create( const char *pDebugName, const Vector &vCenter, const Vector &extents );
+
+ virtual void RenderParticles( CParticleRenderIterator *pIterator );
+ virtual void SimulateParticles( CParticleSimulateIterator *pIterator );
+
+ //Setup for point emission
+ virtual void Setup( const Vector &origin, const Vector *direction, float angularSpread, float minSpeed, float maxSpeed, float gravity, float dampen, int flags = 0 );
+
+ CParticleCollision m_ParticleCollision;
+
+ CFleckParticles *m_pNextParticleSystem;
+private:
+ CFleckParticles( const CFleckParticles & ); // not defined, not accessible
+};
+
+#endif //FXFLECKS_H
\ No newline at end of file |