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: Satchel Charge
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #ifndef SATCHEL_H
  10. #define SATCHEL_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "basegrenade_shared.h"
  15. #include "hl2mp/weapon_slam.h"
  16. class CSoundPatch;
  17. class CSprite;
  18. class CSatchelCharge : public CBaseGrenade
  19. {
  20. public:
  21. DECLARE_CLASS( CSatchelCharge, CBaseGrenade );
  22. void Spawn( void );
  23. void Precache( void );
  24. void BounceSound( void );
  25. void SatchelTouch( CBaseEntity *pOther );
  26. void SatchelThink( void );
  27. // Input handlers
  28. void InputExplode( inputdata_t &inputdata );
  29. float m_flNextBounceSoundTime;
  30. bool m_bInAir;
  31. Vector m_vLastPosition;
  32. public:
  33. CWeapon_SLAM* m_pMyWeaponSLAM; // Who shot me..
  34. bool m_bIsAttached;
  35. void Deactivate( void );
  36. CSatchelCharge();
  37. ~CSatchelCharge();
  38. DECLARE_DATADESC();
  39. private:
  40. void CreateEffects( void );
  41. CHandle<CSprite> m_hGlowSprite;
  42. };
  43. #endif //SATCHEL_H