aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/te_largefunnel.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_largefunnel.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_largefunnel.cpp')
-rw-r--r--mp/src/game/server/te_largefunnel.cpp204
1 files changed, 102 insertions, 102 deletions
diff --git a/mp/src/game/server/te_largefunnel.cpp b/mp/src/game/server/te_largefunnel.cpp
index e89e7a84..11c1ac6a 100644
--- a/mp/src/game/server/te_largefunnel.cpp
+++ b/mp/src/game/server/te_largefunnel.cpp
@@ -1,103 +1,103 @@
-//========= 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"
-
-extern short g_sModelIndexSmoke; // (in combatweapon.cpp) holds the index for the smoke cloud
-
-//-----------------------------------------------------------------------------
-// Purpose: Dispatches smoke tempentity
-//-----------------------------------------------------------------------------
-class CTELargeFunnel : public CTEParticleSystem
-{
-public:
- DECLARE_CLASS( CTELargeFunnel, CTEParticleSystem );
- DECLARE_SERVERCLASS();
-
- CTELargeFunnel( const char *name );
- virtual ~CTELargeFunnel( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles );
-
-public:
- CNetworkVar( int, m_nModelIndex );
- CNetworkVar( int, m_nReversed );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *name -
-//-----------------------------------------------------------------------------
-CTELargeFunnel::CTELargeFunnel( const char *name ) :
- BaseClass( name )
-{
- m_nModelIndex = 0;
- m_nReversed = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-CTELargeFunnel::~CTELargeFunnel( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *current_origin -
-// *current_angles -
-//-----------------------------------------------------------------------------
-void CTELargeFunnel::Test( const Vector& current_origin, const QAngle& current_angles )
-{
- // Fill in data
- m_nModelIndex = g_sModelIndexSmoke;
- m_nReversed = 0;
- 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.Get(), 50.0, forward, m_vecOrigin.GetForModify() );
- VectorMA( m_vecOrigin.Get(), 25.0, right, m_vecOrigin.GetForModify() );
-
- CBroadcastRecipientFilter filter;
- Create( filter, 0.0 );
-}
-
-IMPLEMENT_SERVERCLASS_ST(CTELargeFunnel, DT_TELargeFunnel)
- SendPropModelIndex( SENDINFO(m_nModelIndex) ),
- SendPropInt( SENDINFO(m_nReversed), 2, SPROP_UNSIGNED ),
-END_SEND_TABLE()
-
-
-// Singleton to fire TELargeFunnel objects
-static CTELargeFunnel g_TELargeFunnel( "Large Funnel" );
-
-void TE_LargeFunnel( IRecipientFilter& filter, float delay,
- const Vector* pos, int modelindex, int reversed )
-{
- g_TELargeFunnel.m_vecOrigin = *pos;
- g_TELargeFunnel.m_nModelIndex = modelindex;
- g_TELargeFunnel.m_nReversed = reversed;
-
- // Send it over the wire
- g_TELargeFunnel.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"
+
+extern short g_sModelIndexSmoke; // (in combatweapon.cpp) holds the index for the smoke cloud
+
+//-----------------------------------------------------------------------------
+// Purpose: Dispatches smoke tempentity
+//-----------------------------------------------------------------------------
+class CTELargeFunnel : public CTEParticleSystem
+{
+public:
+ DECLARE_CLASS( CTELargeFunnel, CTEParticleSystem );
+ DECLARE_SERVERCLASS();
+
+ CTELargeFunnel( const char *name );
+ virtual ~CTELargeFunnel( void );
+
+ virtual void Test( const Vector& current_origin, const QAngle& current_angles );
+
+public:
+ CNetworkVar( int, m_nModelIndex );
+ CNetworkVar( int, m_nReversed );
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *name -
+//-----------------------------------------------------------------------------
+CTELargeFunnel::CTELargeFunnel( const char *name ) :
+ BaseClass( name )
+{
+ m_nModelIndex = 0;
+ m_nReversed = 0;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+CTELargeFunnel::~CTELargeFunnel( void )
+{
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *current_origin -
+// *current_angles -
+//-----------------------------------------------------------------------------
+void CTELargeFunnel::Test( const Vector& current_origin, const QAngle& current_angles )
+{
+ // Fill in data
+ m_nModelIndex = g_sModelIndexSmoke;
+ m_nReversed = 0;
+ 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.Get(), 50.0, forward, m_vecOrigin.GetForModify() );
+ VectorMA( m_vecOrigin.Get(), 25.0, right, m_vecOrigin.GetForModify() );
+
+ CBroadcastRecipientFilter filter;
+ Create( filter, 0.0 );
+}
+
+IMPLEMENT_SERVERCLASS_ST(CTELargeFunnel, DT_TELargeFunnel)
+ SendPropModelIndex( SENDINFO(m_nModelIndex) ),
+ SendPropInt( SENDINFO(m_nReversed), 2, SPROP_UNSIGNED ),
+END_SEND_TABLE()
+
+
+// Singleton to fire TELargeFunnel objects
+static CTELargeFunnel g_TELargeFunnel( "Large Funnel" );
+
+void TE_LargeFunnel( IRecipientFilter& filter, float delay,
+ const Vector* pos, int modelindex, int reversed )
+{
+ g_TELargeFunnel.m_vecOrigin = *pos;
+ g_TELargeFunnel.m_nModelIndex = modelindex;
+ g_TELargeFunnel.m_nReversed = reversed;
+
+ // Send it over the wire
+ g_TELargeFunnel.Create( filter, delay );
} \ No newline at end of file