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.

41 lines
959 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Things thrown from the hand
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef GRENADEBRICKBAT_H
  14. #define GRENADEBRICKBAT_H
  15. #include "basegrenade_shared.h"
  16. enum BrickbatAmmo_t;
  17. class CGrenade_Brickbat : public CBaseGrenade
  18. {
  19. public:
  20. DECLARE_CLASS( CGrenade_Brickbat, CBaseGrenade );
  21. virtual void Spawn( void );
  22. virtual void SpawnBrickbatWeapon( void );
  23. virtual void Detonate( void ) { return;};
  24. virtual bool CreateVPhysics();
  25. void BrickbatTouch( CBaseEntity *pOther );
  26. void BrickbatThink( void );
  27. BrickbatAmmo_t m_nType;
  28. bool m_bExplodes;
  29. bool m_bBounceToFlat; // Bouncing to flatten
  30. public:
  31. DECLARE_DATADESC();
  32. };
  33. #endif //GRENADEBRICKBAT_H