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.

67 lines
1.6 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifndef FUNC_AREAPORTALWINDOW_H
  8. #define FUNC_AREAPORTALWINDOW_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. #include "baseentity.h"
  13. #include "utllinkedlist.h"
  14. #include "func_areaportalbase.h"
  15. class CFuncAreaPortalWindow : public CFuncAreaPortalBase
  16. {
  17. public:
  18. DECLARE_CLASS( CFuncAreaPortalWindow, CFuncAreaPortalBase );
  19. DECLARE_SERVERCLASS();
  20. DECLARE_DATADESC();
  21. CFuncAreaPortalWindow();
  22. ~CFuncAreaPortalWindow();
  23. // Overrides.
  24. public:
  25. virtual void Spawn();
  26. virtual void Activate();
  27. // CFuncAreaPortalBase stuff.
  28. public:
  29. virtual bool UpdateVisibility( const CUtlVector< Vector > &vecOrigins, float fovDistanceAdjustFactor, bool &bIsOpenOnClient );
  30. public:
  31. // Returns false if the viewer is past the fadeout distance.
  32. bool IsWindowOpen( const CUtlVector< Vector > &vecOrigins, float fovDistanceAdjustFactor );
  33. public:
  34. CNetworkVar( float, m_flFadeStartDist ); // Distance at which it starts fading (when <= this, alpha=m_flTranslucencyLimit).
  35. CNetworkVar( float, m_flFadeDist ); // Distance at which it becomes solid.
  36. // 0-1 value - minimum translucency it's allowed to get to.
  37. CNetworkVar( float, m_flTranslucencyLimit );
  38. string_t m_iBackgroundBModelName; // string name of background bmodel
  39. CNetworkVar( int, m_iBackgroundModelIndex );
  40. //Input handlers
  41. void InputSetFadeStartDistance( inputdata_t &inputdata );
  42. void InputSetFadeEndDistance( inputdata_t &inputdata );
  43. };
  44. #endif // FUNC_AREAPORTALWINDOW_H