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
901 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef HL1_BASEGRENADE_H
  7. #define HL1_BASEGRENADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "basegrenade_shared.h"
  12. class CHL1BaseGrenade : public CBaseGrenade
  13. {
  14. DECLARE_CLASS( CHL1BaseGrenade, CBaseGrenade );
  15. public:
  16. virtual void Precache();
  17. void Explode( trace_t *pTrace, int bitsDamageType );
  18. unsigned int PhysicsSolidMaskForEntity( void ) const;
  19. };
  20. class CHandGrenade : public CHL1BaseGrenade
  21. {
  22. public:
  23. DECLARE_CLASS( CHandGrenade, CHL1BaseGrenade );
  24. DECLARE_DATADESC();
  25. void Spawn( void );
  26. void Precache( void );
  27. void BounceSound( void );
  28. void BounceTouch( CBaseEntity *pOther );
  29. void ShootTimed( CBaseCombatCharacter *pOwner, Vector vecVelocity, float flTime );
  30. };
  31. #endif // HL1_BASEGRENADE_H