diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/particle_smokegrenade.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/server/particle_smokegrenade.h')
| -rw-r--r-- | game/server/particle_smokegrenade.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/game/server/particle_smokegrenade.h b/game/server/particle_smokegrenade.h new file mode 100644 index 0000000..925b11d --- /dev/null +++ b/game/server/particle_smokegrenade.h @@ -0,0 +1,58 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $NoKeywords: $ +// +//=============================================================================// + +#ifndef PARTICLE_SMOKEGRENADE_H +#define PARTICLE_SMOKEGRENADE_H + + +#include "baseparticleentity.h" + + +#define PARTICLESMOKEGRENADE_ENTITYNAME "env_particlesmokegrenade" + + +class ParticleSmokeGrenade : public CBaseParticleEntity +{ + DECLARE_DATADESC(); +public: + DECLARE_CLASS( ParticleSmokeGrenade, CBaseParticleEntity ); + DECLARE_SERVERCLASS(); + + ParticleSmokeGrenade(); + + virtual int UpdateTransmitState( void ); + +public: + + // Tell the client entity to start filling the volume. + void FillVolume(); + + // Set the times it fades out at. + void SetFadeTime(float startTime, float endTime); + + // Set time to fade out relative to current time + void SetRelativeFadeTime(float startTime, float endTime); + + +public: + + // Stage 0 (default): make a smoke trail that follows the entity it's following. + // Stage 1 : fill a volume with smoke. + CNetworkVar( unsigned char, m_CurrentStage ); + + CNetworkVar( float, m_flSpawnTime ); + + // When to fade in and out. + CNetworkVar( float, m_FadeStartTime ); + CNetworkVar( float, m_FadeEndTime ); +}; + + +#endif + + |