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.

31 lines
953 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. #ifndef GRENADE_TRAIL_H
  3. #define GRENADE_TRAIL_H
  4. #include "baseparticleentity.h"
  5. //==================================================
  6. // SmokeTrail
  7. //==================================================
  8. class CGrenadeTrail : public CBaseParticleEntity
  9. {
  10. DECLARE_DATADESC();
  11. public:
  12. DECLARE_CLASS( CGrenadeTrail, CBaseParticleEntity );
  13. DECLARE_SERVERCLASS();
  14. CGrenadeTrail();
  15. void SetEmit(bool bVal);
  16. void FollowEntity( CBaseEntity *pEntity, const char *pAttachmentName = NULL);
  17. static CGrenadeTrail* CreateGrenadeTrail();
  18. public:
  19. CNetworkVar( float, m_SpawnRate ); // How many particles per second.
  20. CNetworkVar( float, m_ParticleLifetime ); // How long do the particles live?
  21. CNetworkVar( bool, m_bEmit );
  22. CNetworkVar( float, m_StopEmitTime ); // When do I stop emitting particles?
  23. CNetworkVar( int, m_nAttachment );
  24. };
  25. #endif //GRENADE_TRAIL_H