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.

45 lines
1.2 KiB

  1. //====== Copyright � 1996-2005, Valve Corporation, All rights reserved. =======
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef WEAPON_SENSORGRENADE_H
  7. #define WEAPON_SENSORGRENADE_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "weapon_basecsgrenade.h"
  12. #ifdef CLIENT_DLL
  13. #define CSensorGrenade C_SensorGrenade
  14. #endif
  15. //-----------------------------------------------------------------------------
  16. // SensorGrenade grenades
  17. //-----------------------------------------------------------------------------
  18. class CSensorGrenade : public CBaseCSGrenade
  19. {
  20. public:
  21. DECLARE_CLASS( CSensorGrenade, CBaseCSGrenade );
  22. DECLARE_NETWORKCLASS();
  23. DECLARE_PREDICTABLE();
  24. CSensorGrenade() {}
  25. virtual CSWeaponID GetCSWeaponID( void ) const { return WEAPON_TAGRENADE; }
  26. #if !defined( CLIENT_DLL )
  27. DECLARE_DATADESC();
  28. virtual void EmitGrenade( Vector vecSrc, QAngle vecAngles, Vector vecVel, AngularImpulse angImpulse, CBasePlayer *pPlayer, const CCSWeaponInfo& weaponInfo );
  29. virtual void ShotDetonate( CBasePlayer *pPlayer, const CCSWeaponInfo& weaponInfo );
  30. #endif
  31. private:
  32. CSensorGrenade( const CSensorGrenade& );
  33. };
  34. #endif // WEAPON_SENSORGRENADE_H