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.

35 lines
1.0 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #ifdef CLIENT_DLL
  8. #define CEnvDetailController C_EnvDetailController
  9. #endif // CLIENT_DLL
  10. //-----------------------------------------------------------------------------
  11. // Implementation of the class that controls detail prop fade distances
  12. //-----------------------------------------------------------------------------
  13. class CEnvDetailController : public CBaseEntity
  14. {
  15. public:
  16. DECLARE_CLASS( CEnvDetailController, CBaseEntity );
  17. DECLARE_NETWORKCLASS();
  18. CEnvDetailController();
  19. virtual ~CEnvDetailController();
  20. #ifndef CLIENT_DLL
  21. virtual bool KeyValue( const char *szKeyName, const char *szValue );
  22. #endif // !CLIENT_DLL
  23. CNetworkVar( float, m_flFadeStartDist );
  24. CNetworkVar( float, m_flFadeEndDist );
  25. // ALWAYS transmit to all clients.
  26. virtual int UpdateTransmitState( void );
  27. };
  28. CEnvDetailController * GetDetailController();