Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.2 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. #ifndef PARTICLE_SMOKEGRENADE_H
  9. #define PARTICLE_SMOKEGRENADE_H
  10. #include "baseparticleentity.h"
  11. #define PARTICLESMOKEGRENADE_ENTITYNAME "env_particlesmokegrenade"
  12. class ParticleSmokeGrenade : public CBaseParticleEntity
  13. {
  14. DECLARE_DATADESC();
  15. public:
  16. DECLARE_CLASS( ParticleSmokeGrenade, CBaseParticleEntity );
  17. DECLARE_SERVERCLASS();
  18. ParticleSmokeGrenade();
  19. virtual int UpdateTransmitState( void );
  20. public:
  21. // Tell the client entity to start filling the volume.
  22. void FillVolume();
  23. // Set the times it fades out at.
  24. void SetFadeTime(float startTime, float endTime);
  25. // Set time to fade out relative to current time
  26. void SetRelativeFadeTime(float startTime, float endTime);
  27. public:
  28. // Stage 0 (default): make a smoke trail that follows the entity it's following.
  29. // Stage 1 : fill a volume with smoke.
  30. CNetworkVar( unsigned char, m_CurrentStage );
  31. CNetworkVar( float, m_flSpawnTime );
  32. // When to fade in and out.
  33. CNetworkVar( float, m_FadeStartTime );
  34. CNetworkVar( float, m_FadeEndTime );
  35. };
  36. #endif