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.

55 lines
1022 B

  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. int OnTakeDamage_Alive( const CTakeDamageInfo &info );
  22. void WarningThink( void );
  23. void PowerupThink( void );
  24. void BeamBreakThink( void );
  25. void DelayDeathThink( void );
  26. void Event_Killed( const CTakeDamageInfo &info );
  27. void MakeBeam( void );
  28. void KillBeam( void );
  29. public:
  30. EHANDLE m_hOwner;
  31. private:
  32. float m_flPowerUp;
  33. Vector m_vecDir;
  34. Vector m_vecEnd;
  35. float m_flBeamLength;
  36. CBeam *m_pBeam;
  37. Vector m_posOwner;
  38. Vector m_angleOwner;
  39. DECLARE_DATADESC();
  40. };
  41. #endif // GRENADE_TRIPMINE_H