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.

42 lines
836 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef DOD_SMOKEGRENADE_H
  7. #define DOD_SMOKEGRENADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "dod_basegrenade.h"
  12. class CDODSmokeGrenade : public CDODBaseGrenade
  13. {
  14. public:
  15. DECLARE_CLASS( CDODSmokeGrenade, CDODBaseGrenade );
  16. DECLARE_DATADESC();
  17. DECLARE_SERVERCLASS();
  18. virtual void Spawn();
  19. virtual void Precache();
  20. virtual void BounceSound( void );
  21. virtual void Detonate();
  22. virtual bool CanBePickedUp( void ) { return false; }
  23. void Think_Emit();
  24. void Think_Fade();
  25. void Think_Remove();
  26. private:
  27. bool m_bFading;
  28. bool m_bInitialSmoke;
  29. float m_flRemoveTime;
  30. CNetworkVar( float, m_flSmokeSpawnTime );
  31. };
  32. #endif // DOD_SMOKEGRENADE_H