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/server/particle_system.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/server/particle_system.h')
| -rw-r--r-- | mp/src/game/server/particle_system.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/mp/src/game/server/particle_system.h b/mp/src/game/server/particle_system.h new file mode 100644 index 00000000..e19fbf89 --- /dev/null +++ b/mp/src/game/server/particle_system.h @@ -0,0 +1,59 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================
+
+#ifndef PARTICLE_SYSTEM_H
+#define PARTICLE_SYSTEM_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "cbase.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: An entity that spawns and controls a particle system
+//-----------------------------------------------------------------------------
+class CParticleSystem : public CBaseEntity
+{
+ DECLARE_CLASS( CParticleSystem, CBaseEntity );
+public:
+ DECLARE_SERVERCLASS();
+ DECLARE_DATADESC();
+
+ CParticleSystem();
+
+ virtual void Precache( void );
+ virtual void Spawn( void );
+ virtual void Activate( void );
+ virtual int UpdateTransmitState(void);
+
+ void StartParticleSystem( void );
+ void StopParticleSystem( void );
+
+ void InputStart( inputdata_t &inputdata );
+ void InputStop( inputdata_t &inputdata );
+ void StartParticleSystemThink( void );
+
+ enum { kMAXCONTROLPOINTS = 63 }; ///< actually one less than the total number of cpoints since 0 is assumed to be me
+
+protected:
+
+ /// Load up and resolve the entities that are supposed to be the control points
+ void ReadControlPointEnts( void );
+
+ bool m_bStartActive;
+ string_t m_iszEffectName;
+
+ CNetworkVar( bool, m_bActive );
+ CNetworkVar( int, m_iEffectIndex )
+ CNetworkVar( float, m_flStartTime ); // Time at which this effect was started. This is used after restoring an active effect.
+
+ string_t m_iszControlPointNames[kMAXCONTROLPOINTS];
+ CNetworkArray( EHANDLE, m_hControlPointEnts, kMAXCONTROLPOINTS );
+ CNetworkArray( unsigned char, m_iControlPointParents, kMAXCONTROLPOINTS );
+ CNetworkVar( bool, m_bWeatherEffect );
+};
+
+#endif // PARTICLE_SYSTEM_H
|