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.

38 lines
864 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef C_DOD_SMOKEGRENADE_H
  7. #define C_DOD_SMOKEGRENADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "c_dod_basegrenade.h"
  12. class C_DODSmokeGrenade : public C_DODBaseGrenade
  13. {
  14. public:
  15. DECLARE_CLASS( C_DODSmokeGrenade, C_DODBaseGrenade );
  16. DECLARE_NETWORKCLASS();
  17. C_DODSmokeGrenade();
  18. virtual const char *GetOverviewSpriteName( void );
  19. virtual const char *GetParticleTrailName( void ) { return NULL; }
  20. virtual void OnDataChanged( DataUpdateType_t updateType );
  21. virtual void ClientThink( void );
  22. float CalcSmokeCloudRadius( void );
  23. float CalcSmokeCloudAlpha( void );
  24. private:
  25. float m_flSmokeSpawnTime; // time the smoke starts emitting
  26. };
  27. #endif // C_DOD_SMOKEGRENADE_H