aboutsummaryrefslogtreecommitdiff
path: root/sp/src/game/server/point_camera.h
diff options
context:
space:
mode:
authorJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
committerJoe Ludwig <[email protected]>2013-06-26 15:22:04 -0700
commit39ed87570bdb2f86969d4be821c94b722dc71179 (patch)
treeabc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/point_camera.h
downloadsource-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz
source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/point_camera.h')
-rw-r--r--sp/src/game/server/point_camera.h63
1 files changed, 63 insertions, 0 deletions
diff --git a/sp/src/game/server/point_camera.h b/sp/src/game/server/point_camera.h
new file mode 100644
index 00000000..38e35e78
--- /dev/null
+++ b/sp/src/game/server/point_camera.h
@@ -0,0 +1,63 @@
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//=============================================================================//
+
+#ifndef CAMERA_H
+#define CAMERA_H
+#ifdef _WIN32
+#pragma once
+#endif
+
+#include "cbase.h"
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+class CPointCamera : public CBaseEntity
+{
+public:
+ DECLARE_CLASS( CPointCamera, CBaseEntity );
+ DECLARE_SERVERCLASS();
+ DECLARE_DATADESC();
+ CPointCamera();
+ ~CPointCamera();
+
+ void Spawn( void );
+
+ // Tell the client that this camera needs to be rendered
+ void SetActive( bool bActive );
+ int UpdateTransmitState(void);
+
+ void ChangeFOVThink( void );
+
+ void InputChangeFOV( inputdata_t &inputdata );
+ void InputSetOnAndTurnOthersOff( inputdata_t &inputdata );
+ void InputSetOn( inputdata_t &inputdata );
+ void InputSetOff( inputdata_t &inputdata );
+
+private:
+ float m_TargetFOV;
+ float m_DegreesPerSecond;
+
+ CNetworkVar( float, m_FOV );
+ CNetworkVar( float, m_Resolution );
+ CNetworkVar( bool, m_bFogEnable );
+ CNetworkColor32( m_FogColor );
+ CNetworkVar( float, m_flFogStart );
+ CNetworkVar( float, m_flFogEnd );
+ CNetworkVar( float, m_flFogMaxDensity );
+ CNetworkVar( bool, m_bActive );
+ CNetworkVar( bool, m_bUseScreenAspectRatio );
+
+ // Allows the mapmaker to control whether a camera is active or not
+ bool m_bIsOn;
+
+public:
+ CPointCamera *m_pNext;
+};
+
+CPointCamera *GetPointCameraList();
+#endif // CAMERA_H