aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/te_showline.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/te_showline.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/te_showline.cpp')
-rw-r--r--mp/src/game/server/te_showline.cpp212
1 files changed, 106 insertions, 106 deletions
diff --git a/mp/src/game/server/te_showline.cpp b/mp/src/game/server/te_showline.cpp
index 5da5c7c2..99d39184 100644
--- a/mp/src/game/server/te_showline.cpp
+++ b/mp/src/game/server/te_showline.cpp
@@ -1,107 +1,107 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "te_particlesystem.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Dispatches line
-//-----------------------------------------------------------------------------
-class CTEShowLine : public CTEParticleSystem
-{
-public:
- DECLARE_CLASS( CTEShowLine, CTEParticleSystem );
- DECLARE_SERVERCLASS();
-
- CTEShowLine( const char *name );
- virtual ~CTEShowLine( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles );
-
-
-public:
- CNetworkVector( m_vecEnd );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *name -
-//-----------------------------------------------------------------------------
-CTEShowLine::CTEShowLine( const char *name ) :
- BaseClass( name )
-{
- m_vecEnd.Init();
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-CTEShowLine::~CTEShowLine( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *current_origin -
-// *current_angles -
-//-----------------------------------------------------------------------------
-void CTEShowLine::Test( const Vector& current_origin, const QAngle& current_angles )
-{
- // Fill in data
- m_vecOrigin = current_origin;
-
- Vector forward, right;
-
- m_vecOrigin.GetForModify()[2] += 24;
-
- AngleVectors( current_angles, &forward, &right, NULL );
- forward[2] = 0.0;
- VectorNormalize( forward );
-
- VectorMA( m_vecOrigin, 100.0, forward, m_vecEnd.GetForModify() );
-
- m_vecOrigin = m_vecEnd + right * -128;
- m_vecEnd += right * 128;
-
- CBroadcastRecipientFilter filter;
- Create( filter, 0.0 );
-}
-
-IMPLEMENT_SERVERCLASS_ST( CTEShowLine, DT_TEShowLine)
- SendPropVector( SENDINFO(m_vecEnd), -1, SPROP_COORD),
-END_SEND_TABLE()
-
-
-// Singleton to fire TEShowLine objects
-static CTEShowLine g_TEShowLine( "Show Line" );
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : msg_dest -
-// delay -
-// *origin -
-// *recipient -
-// *start -
-// *end -
-//-----------------------------------------------------------------------------
-void TE_ShowLine( IRecipientFilter& filter, float delay,
- const Vector* start, const Vector* end )
-{
- g_TEShowLine.m_vecOrigin = *start;
- g_TEShowLine.m_vecEnd = *end;
-
- // Send it over the wire
- g_TEShowLine.Create( filter, delay );
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+//
+//-----------------------------------------------------------------------------
+// $Log: $
+//
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "te_particlesystem.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Dispatches line
+//-----------------------------------------------------------------------------
+class CTEShowLine : public CTEParticleSystem
+{
+public:
+ DECLARE_CLASS( CTEShowLine, CTEParticleSystem );
+ DECLARE_SERVERCLASS();
+
+ CTEShowLine( const char *name );
+ virtual ~CTEShowLine( void );
+
+ virtual void Test( const Vector& current_origin, const QAngle& current_angles );
+
+
+public:
+ CNetworkVector( m_vecEnd );
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *name -
+//-----------------------------------------------------------------------------
+CTEShowLine::CTEShowLine( const char *name ) :
+ BaseClass( name )
+{
+ m_vecEnd.Init();
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+CTEShowLine::~CTEShowLine( void )
+{
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *current_origin -
+// *current_angles -
+//-----------------------------------------------------------------------------
+void CTEShowLine::Test( const Vector& current_origin, const QAngle& current_angles )
+{
+ // Fill in data
+ m_vecOrigin = current_origin;
+
+ Vector forward, right;
+
+ m_vecOrigin.GetForModify()[2] += 24;
+
+ AngleVectors( current_angles, &forward, &right, NULL );
+ forward[2] = 0.0;
+ VectorNormalize( forward );
+
+ VectorMA( m_vecOrigin, 100.0, forward, m_vecEnd.GetForModify() );
+
+ m_vecOrigin = m_vecEnd + right * -128;
+ m_vecEnd += right * 128;
+
+ CBroadcastRecipientFilter filter;
+ Create( filter, 0.0 );
+}
+
+IMPLEMENT_SERVERCLASS_ST( CTEShowLine, DT_TEShowLine)
+ SendPropVector( SENDINFO(m_vecEnd), -1, SPROP_COORD),
+END_SEND_TABLE()
+
+
+// Singleton to fire TEShowLine objects
+static CTEShowLine g_TEShowLine( "Show Line" );
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : msg_dest -
+// delay -
+// *origin -
+// *recipient -
+// *start -
+// *end -
+//-----------------------------------------------------------------------------
+void TE_ShowLine( IRecipientFilter& filter, float delay,
+ const Vector* start, const Vector* end )
+{
+ g_TEShowLine.m_vecOrigin = *start;
+ g_TEShowLine.m_vecEnd = *end;
+
+ // Send it over the wire
+ g_TEShowLine.Create( filter, delay );
} \ No newline at end of file