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

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Projectile shot by mortar synth
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef GRENADEENERGY_H
  14. #define GRENADEENERGY_H
  15. #include "basegrenade_shared.h"
  16. class CGrenadeEnergy : public CBaseGrenade
  17. {
  18. public:
  19. DECLARE_CLASS( CGrenadeEnergy, CBaseGrenade );
  20. static void Shoot( CBaseEntity* pOwner, const Vector &vStart, Vector vVelocity );
  21. public:
  22. void Spawn( void );
  23. void Precache( void );
  24. void Animate( void );
  25. void GrenadeEnergyTouch( CBaseEntity *pOther );
  26. void Event_Killed( const CTakeDamageInfo &info );
  27. int m_flMaxFrame;
  28. int m_nEnergySprite;
  29. float m_flLaunchTime; // When was this thing launched
  30. void EXPORT Detonate(void);
  31. DECLARE_DATADESC();
  32. };
  33. #endif //GRENADEENERGY_H