aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/testtraceline.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/server/testtraceline.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/server/testtraceline.cpp')
-rw-r--r--mp/src/game/server/testtraceline.cpp164
1 files changed, 82 insertions, 82 deletions
diff --git a/mp/src/game/server/testtraceline.cpp b/mp/src/game/server/testtraceline.cpp
index 9f2bebcd..d017a1b2 100644
--- a/mp/src/game/server/testtraceline.cpp
+++ b/mp/src/game/server/testtraceline.cpp
@@ -1,82 +1,82 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//=============================================================================//
-#include "cbase.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-// -------------------------------------------------------------------------------- //
-// An entity used to test traceline
-// -------------------------------------------------------------------------------- //
-
-class CTestTraceline : public CPointEntity
-{
-public:
- DECLARE_CLASS( CTestTraceline, CPointEntity );
-
- void Spawn( void );
- int UpdateTransmitState();
-
- DECLARE_SERVERCLASS();
- DECLARE_DATADESC();
-
-private:
- void Spin( void );
-};
-
-
-// This table encodes the CBaseEntity data.
-IMPLEMENT_SERVERCLASS_ST_NOBASE(CTestTraceline, DT_TestTraceline)
- SendPropInt (SENDINFO(m_clrRender), 32, SPROP_UNSIGNED ),
- SendPropVector (SENDINFO(m_vecOrigin), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
- SendPropFloat (SENDINFO_VECTORELEM(m_angRotation, 0), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
- SendPropFloat (SENDINFO_VECTORELEM(m_angRotation, 1), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
- SendPropFloat (SENDINFO_VECTORELEM(m_angRotation, 2), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
- SendPropEHandle (SENDINFO_NAME(m_hMoveParent, moveparent)),
-END_SEND_TABLE()
-
-LINK_ENTITY_TO_CLASS( test_traceline, CTestTraceline );
-
-BEGIN_DATADESC( CTestTraceline )
-
- // Function Pointers
- DEFINE_FUNCTION( Spin ),
-
-END_DATADESC()
-
-
-void CTestTraceline::Spawn( void )
-{
- SetRenderColor( 255, 255, 255, 255 );
- SetNextThink( gpGlobals->curtime );
-
- SetThink( &CTestTraceline::Spin );
-}
-
-void CTestTraceline::Spin( void )
-{
- static ConVar traceline_spin( "traceline_spin","1" );
-
- if (traceline_spin.GetInt())
- {
- float s = sin( gpGlobals->curtime );
- QAngle angles = GetLocalAngles();
-
- angles[0] = 180.0 * 0.5 * (s * s * s + 1.0f) + 90;
- angles[1] = gpGlobals->curtime * 10;
-
- SetLocalAngles( angles );
-
- }
- SetNextThink( gpGlobals->curtime );
-}
-
-int CTestTraceline::UpdateTransmitState()
-{
- return SetTransmitState( FL_EDICT_ALWAYS );
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//=============================================================================//
+#include "cbase.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+// -------------------------------------------------------------------------------- //
+// An entity used to test traceline
+// -------------------------------------------------------------------------------- //
+
+class CTestTraceline : public CPointEntity
+{
+public:
+ DECLARE_CLASS( CTestTraceline, CPointEntity );
+
+ void Spawn( void );
+ int UpdateTransmitState();
+
+ DECLARE_SERVERCLASS();
+ DECLARE_DATADESC();
+
+private:
+ void Spin( void );
+};
+
+
+// This table encodes the CBaseEntity data.
+IMPLEMENT_SERVERCLASS_ST_NOBASE(CTestTraceline, DT_TestTraceline)
+ SendPropInt (SENDINFO(m_clrRender), 32, SPROP_UNSIGNED ),
+ SendPropVector (SENDINFO(m_vecOrigin), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
+ SendPropFloat (SENDINFO_VECTORELEM(m_angRotation, 0), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
+ SendPropFloat (SENDINFO_VECTORELEM(m_angRotation, 1), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
+ SendPropFloat (SENDINFO_VECTORELEM(m_angRotation, 2), 19, 0, MIN_COORD_INTEGER, MAX_COORD_INTEGER),
+ SendPropEHandle (SENDINFO_NAME(m_hMoveParent, moveparent)),
+END_SEND_TABLE()
+
+LINK_ENTITY_TO_CLASS( test_traceline, CTestTraceline );
+
+BEGIN_DATADESC( CTestTraceline )
+
+ // Function Pointers
+ DEFINE_FUNCTION( Spin ),
+
+END_DATADESC()
+
+
+void CTestTraceline::Spawn( void )
+{
+ SetRenderColor( 255, 255, 255, 255 );
+ SetNextThink( gpGlobals->curtime );
+
+ SetThink( &CTestTraceline::Spin );
+}
+
+void CTestTraceline::Spin( void )
+{
+ static ConVar traceline_spin( "traceline_spin","1" );
+
+ if (traceline_spin.GetInt())
+ {
+ float s = sin( gpGlobals->curtime );
+ QAngle angles = GetLocalAngles();
+
+ angles[0] = 180.0 * 0.5 * (s * s * s + 1.0f) + 90;
+ angles[1] = gpGlobals->curtime * 10;
+
+ SetLocalAngles( angles );
+
+ }
+ SetNextThink( gpGlobals->curtime );
+}
+
+int CTestTraceline::UpdateTransmitState()
+{
+ return SetTransmitState( FL_EDICT_ALWAYS );
+}