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.

45 lines
1.1 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================//
  6. #ifndef ENTITYFREEZING_H
  7. #define ENTITYFREEZING_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. class CEntityFreezing : public CBaseEntity
  12. {
  13. public:
  14. DECLARE_SERVERCLASS();
  15. DECLARE_CLASS( CEntityFreezing, CBaseEntity );
  16. static CEntityFreezing *Create( CBaseAnimating *pTarget );
  17. void Precache();
  18. void Spawn();
  19. void AttachToEntity( CBaseEntity *pTarget );
  20. void SetFreezingOrigin( Vector vOrigin ) { m_vFreezingOrigin = vOrigin; }
  21. Vector GetFreezingOrigin( void ) { return m_vFreezingOrigin; }
  22. void SetFrozen( float flFrozen ){ m_flFrozen = flFrozen; }
  23. int GetFrozen( void ) { return m_flFrozen; }
  24. void FinishFreezing( void ) { m_bFinishFreezing = true; }
  25. DECLARE_DATADESC();
  26. protected:
  27. void InputFreeze( inputdata_t &inputdata );
  28. CNetworkVector( m_vFreezingOrigin );
  29. CNetworkVar( float, m_flFrozen );
  30. CNetworkVar( bool, m_bFinishFreezing );
  31. public:
  32. CNetworkArray( float, m_flFrozenPerHitbox, 50 );
  33. };
  34. #endif // ENTITYFREEZING_H