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.

70 lines
1.6 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. //
  8. //-----------------------------------------------------------------------------
  9. // $Log: $
  10. //
  11. // $NoKeywords: $
  12. //=============================================================================//
  13. #ifndef HL2MP_WEAPON_CROWBAR_H
  14. #define HL2MP_WEAPON_CROWBAR_H
  15. #pragma once
  16. #include "weapon_hl2mpbasehlmpcombatweapon.h"
  17. #include "weapon_hl2mpbasebasebludgeon.h"
  18. #ifdef CLIENT_DLL
  19. #define CWeaponCrowbar C_WeaponCrowbar
  20. #endif
  21. //-----------------------------------------------------------------------------
  22. // CWeaponCrowbar
  23. //-----------------------------------------------------------------------------
  24. class CWeaponCrowbar : public CBaseHL2MPBludgeonWeapon
  25. {
  26. public:
  27. DECLARE_CLASS( CWeaponCrowbar, CBaseHL2MPBludgeonWeapon );
  28. DECLARE_NETWORKCLASS();
  29. DECLARE_PREDICTABLE();
  30. #ifndef CLIENT_DLL
  31. DECLARE_ACTTABLE();
  32. #endif
  33. CWeaponCrowbar();
  34. float GetRange( void );
  35. float GetFireRate( void );
  36. void AddViewKick( void );
  37. float GetDamageForActivity( Activity hitActivity );
  38. void SecondaryAttack( void ) { return; }
  39. void Drop( const Vector &vecVelocity );
  40. // Animation event
  41. #ifndef CLIENT_DLL
  42. virtual void Operator_HandleAnimEvent( animevent_t *pEvent, CBaseCombatCharacter *pOperator );
  43. void HandleAnimEventMeleeHit( animevent_t *pEvent, CBaseCombatCharacter *pOperator );
  44. int WeaponMeleeAttack1Condition( float flDot, float flDist );
  45. #endif
  46. CWeaponCrowbar( const CWeaponCrowbar & );
  47. private:
  48. };
  49. #endif // HL2MP_WEAPON_CROWBAR_H