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.

44 lines
887 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef CPROPCOMBINEBALL_H_
  7. #define CPROPCOMBINEBALL_H_
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class C_PropCombineBall : public C_BaseAnimating
  12. {
  13. DECLARE_CLASS( C_PropCombineBall, C_BaseAnimating );
  14. DECLARE_CLIENTCLASS();
  15. public:
  16. C_PropCombineBall( void );
  17. virtual RenderGroup_t GetRenderGroup( void );
  18. virtual void OnDataChanged( DataUpdateType_t updateType );
  19. virtual int DrawModel( int flags );
  20. protected:
  21. void DrawMotionBlur( void );
  22. void DrawFlicker( void );
  23. virtual bool InitMaterials( void );
  24. Vector m_vecLastOrigin;
  25. bool m_bEmit;
  26. float m_flRadius;
  27. bool m_bHeld;
  28. bool m_bLaunched;
  29. IMaterial *m_pFlickerMaterial;
  30. IMaterial *m_pBodyMaterial;
  31. IMaterial *m_pBlurMaterial;
  32. };
  33. #endif