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.

47 lines
958 B

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Dynamic light at the end of a spotlight
  4. //
  5. // $Workfile: $
  6. // $Date: $
  7. // $NoKeywords: $
  8. //=============================================================================//
  9. #ifndef SPOTLIGHTEND_H
  10. #define SPOTLIGHTEND_H
  11. #ifdef _WIN32
  12. #pragma once
  13. #endif
  14. #include "baseentity.h"
  15. class CSpotlightEnd : public CBaseEntity
  16. {
  17. DECLARE_DATADESC();
  18. public:
  19. DECLARE_CLASS( CSpotlightEnd, CBaseEntity );
  20. void Spawn( void );
  21. int ObjectCaps( void )
  22. {
  23. // Don't save and don't go across transitions
  24. return (BaseClass::ObjectCaps() & ~FCAP_ACROSS_TRANSITION) | FCAP_DONT_SAVE;
  25. }
  26. DECLARE_SERVERCLASS();
  27. public:
  28. CNetworkVar( float, m_flLightScale );
  29. CNetworkVar( float, m_Radius );
  30. // CNetworkVector( m_vSpotlightDir );
  31. // CNetworkVector( m_vSpotlightOrg );
  32. Vector m_vSpotlightDir;
  33. Vector m_vSpotlightOrg;
  34. };
  35. #endif //SPOTLIGHTEND_H