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.

52 lines
1.1 KiB

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