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.

52 lines
1.4 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef C_BREAKABLEPROP_H
  7. #define C_BREAKABLEPROP_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "player_pickup.h"
  12. //-----------------------------------------------------------------------------
  13. // Purpose:
  14. //-----------------------------------------------------------------------------
  15. class C_BreakableProp : public C_BaseAnimating, public CDefaultPlayerPickupVPhysics
  16. {
  17. public:
  18. DECLARE_CLASS( C_BreakableProp, C_BaseAnimating );
  19. DECLARE_CLIENTCLASS();
  20. C_BreakableProp();
  21. virtual bool IsProp( void ) const
  22. {
  23. return true;
  24. };
  25. //IPlayerPickupVPhysics
  26. virtual bool HasPreferredCarryAnglesForPlayer( CBasePlayer *pPlayer );
  27. virtual QAngle PreferredCarryAngles( void );
  28. virtual bool ShouldPredict( void );
  29. virtual C_BasePlayer *GetPredictionOwner( void );
  30. virtual bool PredictionErrorShouldResetLatchedForAllPredictables( void ) { return false; }
  31. // Copy fade from another breakable prop
  32. void CopyFadeFrom( C_BreakableProp *pSource );
  33. virtual void OnDataChanged( DataUpdateType_t type );
  34. const QAngle &GetNetworkedPreferredPlayerCarryAngles( void ) { return m_qPreferredPlayerCarryAngles; }
  35. protected:
  36. QAngle m_qPreferredPlayerCarryAngles;
  37. private:
  38. bool m_bClientPhysics;
  39. };
  40. #endif // C_BREAKABLEPROP_H