summaryrefslogtreecommitdiff
path: root/game/server/spotlightend.h
diff options
context:
space:
mode:
authorFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
committerFluorescentCIAAfricanAmerican <[email protected]>2020-04-22 12:56:21 -0400
commit3bf9df6b2785fa6d951086978a3e66f49427166a (patch)
tree2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/server/spotlightend.h
downloadarchived-source-engine-2018-hl2-src-master.tar.xz
archived-source-engine-2018-hl2-src-master.zip
Diffstat (limited to 'game/server/spotlightend.h')
-rw-r--r--game/server/spotlightend.h47
1 files changed, 47 insertions, 0 deletions
diff --git a/game/server/spotlightend.h b/game/server/spotlightend.h
new file mode 100644
index 0000000..c6b8ae0
--- /dev/null
+++ b/game/server/spotlightend.h
@@ -0,0 +1,47 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose: Dynamic light at the end of a spotlight
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef SPOTLIGHTEND_H
+#define SPOTLIGHTEND_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+
+#include "baseentity.h"
+
+class CSpotlightEnd : public CBaseEntity
+{
+ DECLARE_DATADESC();
+public:
+ DECLARE_CLASS( CSpotlightEnd, CBaseEntity );
+
+ void Spawn( void );
+
+ int ObjectCaps( void )
+ {
+ // Don't save and don't go across transitions
+ return (BaseClass::ObjectCaps() & ~FCAP_ACROSS_TRANSITION) | FCAP_DONT_SAVE;
+ }
+
+ DECLARE_SERVERCLASS();
+
+public:
+ CNetworkVar( float, m_flLightScale );
+ CNetworkVar( float, m_Radius );
+// CNetworkVector( m_vSpotlightDir );
+// CNetworkVector( m_vSpotlightOrg );
+ Vector m_vSpotlightDir;
+ Vector m_vSpotlightOrg;
+};
+
+#endif //SPOTLIGHTEND_H
+
+