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.3 KiB

  1. //===== Copyright � 1996-2005, Valve Corporation, All rights reserved. ======//
  2. //
  3. // Purpose:
  4. //
  5. //===========================================================================//
  6. #ifndef C_PHYSICSPROP_H
  7. #define C_PHYSICSPROP_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. #include "c_breakableprop.h"
  12. //-----------------------------------------------------------------------------
  13. // Purpose:
  14. //-----------------------------------------------------------------------------
  15. class C_PhysicsProp : public C_BreakableProp
  16. {
  17. typedef C_BreakableProp BaseClass;
  18. public:
  19. DECLARE_CLIENTCLASS();
  20. // Inherited from IClientUnknown
  21. public:
  22. virtual IClientModelRenderable* GetClientModelRenderable();
  23. // Inherited from IClientModelRenderable
  24. public:
  25. virtual bool GetRenderData( void *pData, ModelDataCategory_t nCategory );
  26. // Other public methods
  27. public:
  28. C_PhysicsProp();
  29. virtual ~C_PhysicsProp();
  30. virtual void OnDataChanged( DataUpdateType_t type );
  31. virtual bool OnInternalDrawModel( ClientModelRenderInfo_t *pInfo );
  32. bool GetPropDataAngles( const char *pKeyName, QAngle &vecAngles );
  33. float GetCarryDistanceOffset( void );
  34. void OnPreDataChanged( DataUpdateType_t updateType );
  35. protected:
  36. // Networked vars.
  37. bool m_bAwake;
  38. bool m_bAwakeLastTime;
  39. bool m_bCanUseStaticLighting;
  40. Vector m_vecClientOrigin;
  41. QAngle m_vecClientAngles;
  42. };
  43. #endif // C_PHYSICSPROP_H