aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/te_sparks.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_sparks.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_sparks.cpp')
-rw-r--r--mp/src/game/server/te_sparks.cpp202
1 files changed, 101 insertions, 101 deletions
diff --git a/mp/src/game/server/te_sparks.cpp b/mp/src/game/server/te_sparks.cpp
index e11eab1c..af8f9947 100644
--- a/mp/src/game/server/te_sparks.cpp
+++ b/mp/src/game/server/te_sparks.cpp
@@ -1,101 +1,101 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $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 sparks
-//-----------------------------------------------------------------------------
-class CTESparks : public CTEParticleSystem
-{
-public:
- DECLARE_CLASS( CTESparks, CTEParticleSystem );
- DECLARE_SERVERCLASS();
-
- CTESparks( const char *name );
- virtual ~CTESparks( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles );
-
- CNetworkVar( int, m_nMagnitude );
- CNetworkVar( int, m_nTrailLength );
- CNetworkVector( m_vecDir );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *name -
-//-----------------------------------------------------------------------------
-CTESparks::CTESparks( const char *name ) :
- BaseClass( name )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-CTESparks::~CTESparks( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *current_origin -
-// *current_angles -
-//-----------------------------------------------------------------------------
-void CTESparks::Test( const Vector& current_origin, const QAngle& current_angles )
-{
- // Fill in data
- m_vecOrigin = current_origin;
-
- Vector forward;
-
- m_vecOrigin.GetForModify()[2] += 24;
-
- AngleVectors( current_angles, &forward );
- forward[2] = 0.0;
- VectorNormalize( forward );
-
- m_vecOrigin += forward * 100;
-
- CBroadcastRecipientFilter filter;
- Create( filter, 0.0 );
-}
-
-IMPLEMENT_SERVERCLASS_ST(CTESparks, DT_TESparks)
- SendPropInt( SENDINFO( m_nMagnitude ), 4, SPROP_UNSIGNED ),
- SendPropInt( SENDINFO( m_nTrailLength ), 4, SPROP_UNSIGNED ),
- SendPropVector( SENDINFO( m_vecDir ), -1, SPROP_COORD ),
-END_SEND_TABLE()
-
-
-// Singleton to fire TESparks objects
-static CTESparks g_TESparks( "Sparks" );
-
-void TE_Sparks( IRecipientFilter& filter, float delay,
- const Vector *pos, int nMagnitude, int nTrailLength, const Vector *pDir )
-{
- g_TESparks.m_vecOrigin = *pos;
- g_TESparks.m_nMagnitude = nMagnitude;
- g_TESparks.m_nTrailLength = nTrailLength;
-
- if ( pDir )
- {
- g_TESparks.m_vecDir = *pDir;
- }
- else
- {
- g_TESparks.m_vecDir = vec3_origin;
- }
-
- // Send it over the wire
- g_TESparks.Create( filter, delay );
-}
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $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 sparks
+//-----------------------------------------------------------------------------
+class CTESparks : public CTEParticleSystem
+{
+public:
+ DECLARE_CLASS( CTESparks, CTEParticleSystem );
+ DECLARE_SERVERCLASS();
+
+ CTESparks( const char *name );
+ virtual ~CTESparks( void );
+
+ virtual void Test( const Vector& current_origin, const QAngle& current_angles );
+
+ CNetworkVar( int, m_nMagnitude );
+ CNetworkVar( int, m_nTrailLength );
+ CNetworkVector( m_vecDir );
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *name -
+//-----------------------------------------------------------------------------
+CTESparks::CTESparks( const char *name ) :
+ BaseClass( name )
+{
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+CTESparks::~CTESparks( void )
+{
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *current_origin -
+// *current_angles -
+//-----------------------------------------------------------------------------
+void CTESparks::Test( const Vector& current_origin, const QAngle& current_angles )
+{
+ // Fill in data
+ m_vecOrigin = current_origin;
+
+ Vector forward;
+
+ m_vecOrigin.GetForModify()[2] += 24;
+
+ AngleVectors( current_angles, &forward );
+ forward[2] = 0.0;
+ VectorNormalize( forward );
+
+ m_vecOrigin += forward * 100;
+
+ CBroadcastRecipientFilter filter;
+ Create( filter, 0.0 );
+}
+
+IMPLEMENT_SERVERCLASS_ST(CTESparks, DT_TESparks)
+ SendPropInt( SENDINFO( m_nMagnitude ), 4, SPROP_UNSIGNED ),
+ SendPropInt( SENDINFO( m_nTrailLength ), 4, SPROP_UNSIGNED ),
+ SendPropVector( SENDINFO( m_vecDir ), -1, SPROP_COORD ),
+END_SEND_TABLE()
+
+
+// Singleton to fire TESparks objects
+static CTESparks g_TESparks( "Sparks" );
+
+void TE_Sparks( IRecipientFilter& filter, float delay,
+ const Vector *pos, int nMagnitude, int nTrailLength, const Vector *pDir )
+{
+ g_TESparks.m_vecOrigin = *pos;
+ g_TESparks.m_nMagnitude = nMagnitude;
+ g_TESparks.m_nTrailLength = nTrailLength;
+
+ if ( pDir )
+ {
+ g_TESparks.m_vecDir = *pDir;
+ }
+ else
+ {
+ g_TESparks.m_vecDir = vec3_origin;
+ }
+
+ // Send it over the wire
+ g_TESparks.Create( filter, delay );
+}