Counter Strike : Global Offensive Source Code
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.

38 lines
980 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Header file for player-thrown grenades.
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef GRENADE_BASE_H
  14. #define GRENADE_BASE_H
  15. #pragma once
  16. #include "basegrenade_shared.h"
  17. class CSprite;
  18. #define GRENADE_TIMER 5 // Try 5 seconds instead of 3?
  19. //-----------------------------------------------------------------------------
  20. // Purpose: Base Thrown-Grenade class
  21. //-----------------------------------------------------------------------------
  22. class CThrownGrenade : public CBaseGrenade
  23. {
  24. public:
  25. DECLARE_CLASS( CThrownGrenade, CBaseGrenade );
  26. void Spawn( void );
  27. void Thrown( Vector vecOrigin, Vector vecVelocity, float flExplodeTime );
  28. };
  29. #endif // GRENADE_BASE_H