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.

56 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef GRENADE_TRIPMINE_H
  8. #define GRENADE_TRIPMINE_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "basegrenade_shared.h"
  13. class CBeam;
  14. class CTripmineGrenade : public CBaseGrenade
  15. {
  16. public:
  17. DECLARE_CLASS( CTripmineGrenade, CBaseGrenade );
  18. CTripmineGrenade();
  19. void Spawn( void );
  20. void Precache( void );
  21. #if 0 // FIXME: OnTakeDamage_Alive() is no longer called now that base grenade derives from CBaseAnimating
  22. int OnTakeDamage_Alive( const CTakeDamageInfo &info );
  23. #endif
  24. void WarningThink( void );
  25. void PowerupThink( void );
  26. void BeamBreakThink( void );
  27. void DelayDeathThink( void );
  28. void Event_Killed( const CTakeDamageInfo &info );
  29. void MakeBeam( void );
  30. void KillBeam( void );
  31. public:
  32. EHANDLE m_hOwner;
  33. private:
  34. float m_flPowerUp;
  35. Vector m_vecDir;
  36. Vector m_vecEnd;
  37. float m_flBeamLength;
  38. CBeam *m_pBeam;
  39. Vector m_posOwner;
  40. Vector m_angleOwner;
  41. DECLARE_DATADESC();
  42. };
  43. #endif // GRENADE_TRIPMINE_H