aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/client/fx_trail.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/client/fx_trail.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/client/fx_trail.h')
-rw-r--r--sp/src/game/client/fx_trail.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/sp/src/game/client/fx_trail.h b/sp/src/game/client/fx_trail.h
new file mode 100644
index 00000000..6fc2836f
--- /dev/null
+++ b/sp/src/game/client/fx_trail.h
@@ -0,0 +1,56 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef FX_TRAIL_H
+#define FX_TRAIL_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "particle_util.h"
+#include "baseparticleentity.h"
+#include "particle_prototype.h"
+
+class C_ParticleTrail : public C_BaseParticleEntity, public IPrototypeAppEffect
+{
+public:
+
+ DECLARE_CLASS( C_ParticleTrail, C_BaseParticleEntity );
+
+ C_ParticleTrail( void );
+ virtual ~C_ParticleTrail( void );
+
+ void GetAimEntOrigin( IClientEntity *pAttachedTo, Vector *pAbsOrigin, QAngle *pAbsAngles );
+
+ void SetEmit( bool bEmit );
+ bool ShouldEmit( void ) { return m_bEmit; }
+
+ void SetSpawnRate( float rate );
+
+
+// C_BaseEntity.
+public:
+ virtual void OnDataChanged(DataUpdateType_t updateType);
+
+ virtual void Start( CParticleMgr *pParticleMgr, IPrototypeArgAccess *pArgs );
+
+ int m_nAttachment;
+ float m_flLifetime; // How long this effect will last
+
+private:
+
+ float m_SpawnRate; // How many particles per second.
+ bool m_bEmit; // Keep emitting particles?
+
+ TimedEvent m_ParticleSpawn;
+ CParticleMgr *m_pParticleMgr;
+
+private:
+
+ C_ParticleTrail( const C_ParticleTrail & );
+};
+
+#endif // FX_TRAIL_H