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.

49 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Projectile shot by bullsquid
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef GRENADESPIT_H
  14. #define GRENADESPIT_H
  15. #include "hl1_basegrenade.h"
  16. enum SpitSize_e
  17. {
  18. SPIT_SMALL,
  19. SPIT_MEDIUM,
  20. SPIT_LARGE,
  21. };
  22. #define SPIT_GRAVITY 0.9
  23. class CGrenadeSpit : public CHL1BaseGrenade
  24. {
  25. public:
  26. DECLARE_CLASS( CGrenadeSpit, CHL1BaseGrenade );
  27. void Spawn( void );
  28. void Precache( void );
  29. void SpitThink( void );
  30. void GrenadeSpitTouch( CBaseEntity *pOther );
  31. void Event_Killed( const CTakeDamageInfo &info );
  32. void SetSpitSize(int nSize);
  33. int m_nSquidSpitSprite;
  34. float m_fSpitDeathTime; // If non-zero won't detonate
  35. void EXPORT Detonate(void);
  36. CGrenadeSpit(void);
  37. DECLARE_DATADESC();
  38. };
  39. #endif //GRENADESPIT_H