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.

47 lines
1.2 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef C_ENTITY_FREEZING_H
  8. #define C_ENTITY_FREEZING_H
  9. #include "cbase.h"
  10. struct EntityFreezingHitboxBlobData_t
  11. {
  12. CUtlVector<Vector> m_vPoints;
  13. };
  14. //-----------------------------------------------------------------------------
  15. // Entity Dissolve, client-side implementation
  16. //-----------------------------------------------------------------------------
  17. class C_EntityFreezing : public C_BaseEntity
  18. {
  19. public:
  20. DECLARE_CLIENTCLASS();
  21. DECLARE_CLASS( C_EntityFreezing, C_BaseEntity );
  22. virtual void GetRenderBounds( Vector& theMins, Vector& theMaxs );
  23. virtual RenderableTranslucencyType_t ComputeTranslucencyType( );
  24. virtual int DrawModel( int flags, const RenderableInstance_t &instance );
  25. virtual bool ShouldDraw() { return true; }
  26. virtual void OnDataChanged( DataUpdateType_t updateType );
  27. void ClientThink( void );
  28. private:
  29. Vector m_vFreezingOrigin;
  30. float m_flFrozenPerHitbox[ 50 ];
  31. float m_flFrozen;
  32. bool m_bFinishFreezing;
  33. CUtlVector<EntityFreezingHitboxBlobData_t> m_HitboxBlobData;
  34. };
  35. #endif // C_ENTITY_FREEZING_H