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.

49 lines
1.1 KiB

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