aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/server/te_bloodstream.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_bloodstream.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_bloodstream.cpp')
-rw-r--r--mp/src/game/server/te_bloodstream.cpp268
1 files changed, 134 insertions, 134 deletions
diff --git a/mp/src/game/server/te_bloodstream.cpp b/mp/src/game/server/te_bloodstream.cpp
index 1363da18..77ccccc7 100644
--- a/mp/src/game/server/te_bloodstream.cpp
+++ b/mp/src/game/server/te_bloodstream.cpp
@@ -1,135 +1,135 @@
-//========= 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 blood stream tempentity
-//-----------------------------------------------------------------------------
-class CTEBloodStream : public CTEParticleSystem
-{
-public:
- DECLARE_CLASS( CTEBloodStream, CTEParticleSystem );
-
- CTEBloodStream( const char *name );
- virtual ~CTEBloodStream( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles );
-
- DECLARE_SERVERCLASS();
-
-public:
- CNetworkVector( m_vecDirection );
- CNetworkVar( int, r );
- CNetworkVar( int, g );
- CNetworkVar( int, b );
- CNetworkVar( int, a );
- CNetworkVar( int, m_nAmount );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *name -
-//-----------------------------------------------------------------------------
-CTEBloodStream::CTEBloodStream( const char *name ) :
- BaseClass( name )
-{
- m_vecDirection.Init();
- r = 0;
- g = 0;
- b = 0;
- a = 0;
- m_nAmount = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-CTEBloodStream::~CTEBloodStream( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *current_origin -
-// *current_angles -
-//-----------------------------------------------------------------------------
-void CTEBloodStream::Test( const Vector& current_origin, const QAngle& current_angles )
-{
- // Fill in data
- r = 247;
- g = 0;
- b = 0;
- a = 255;
- m_nAmount = random->RandomInt(50, 150);
- m_vecOrigin = current_origin;
-
- Vector forward;
-
- m_vecOrigin.GetForModify()[2] += 24;
-
- AngleVectors( current_angles, &forward );
- forward[2] = 0.0;
- VectorNormalize( forward );
-
- m_vecOrigin += forward * 50;
-
- m_vecDirection = UTIL_RandomBloodVector();
-
- CBroadcastRecipientFilter filter;
- Create( filter, 0.0 );
-}
-
-IMPLEMENT_SERVERCLASS_ST(CTEBloodStream, DT_TEBloodStream)
- SendPropVector( SENDINFO(m_vecDirection), 11, 0, -10.0, 10.0 ),
- SendPropInt( SENDINFO(r), 8, SPROP_UNSIGNED ),
- SendPropInt( SENDINFO(g), 8, SPROP_UNSIGNED ),
- SendPropInt( SENDINFO(b), 8, SPROP_UNSIGNED ),
- SendPropInt( SENDINFO(a), 8, SPROP_UNSIGNED ),
- SendPropInt( SENDINFO(m_nAmount), 8, SPROP_UNSIGNED ),
-END_SEND_TABLE()
-
-// Singleton to fire TEBloodStream objects
-static CTEBloodStream g_TEBloodStream( "Blood Stream" );
-
-//-----------------------------------------------------------------------------
-// Purpose: Creates a blood stream
-// Input : msg_dest -
-// delay -
-// *origin -
-// *recipient -
-// *org -
-// *dir -
-// r -
-// g -
-// b -
-// a -
-// amount -
-//-----------------------------------------------------------------------------
-void TE_BloodStream( IRecipientFilter& filter, float delay,
- const Vector* org, const Vector* dir, int r, int g, int b, int a, int amount )
-{
- g_TEBloodStream.m_vecOrigin = *org;
- g_TEBloodStream.m_vecDirection = *dir;
- g_TEBloodStream.r = r;
- g_TEBloodStream.g = g;
- g_TEBloodStream.b = b;
- g_TEBloodStream.a = a;
- g_TEBloodStream.m_nAmount = amount;
-
- // Send it over the wire
- g_TEBloodStream.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 blood stream tempentity
+//-----------------------------------------------------------------------------
+class CTEBloodStream : public CTEParticleSystem
+{
+public:
+ DECLARE_CLASS( CTEBloodStream, CTEParticleSystem );
+
+ CTEBloodStream( const char *name );
+ virtual ~CTEBloodStream( void );
+
+ virtual void Test( const Vector& current_origin, const QAngle& current_angles );
+
+ DECLARE_SERVERCLASS();
+
+public:
+ CNetworkVector( m_vecDirection );
+ CNetworkVar( int, r );
+ CNetworkVar( int, g );
+ CNetworkVar( int, b );
+ CNetworkVar( int, a );
+ CNetworkVar( int, m_nAmount );
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *name -
+//-----------------------------------------------------------------------------
+CTEBloodStream::CTEBloodStream( const char *name ) :
+ BaseClass( name )
+{
+ m_vecDirection.Init();
+ r = 0;
+ g = 0;
+ b = 0;
+ a = 0;
+ m_nAmount = 0;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+CTEBloodStream::~CTEBloodStream( void )
+{
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : *current_origin -
+// *current_angles -
+//-----------------------------------------------------------------------------
+void CTEBloodStream::Test( const Vector& current_origin, const QAngle& current_angles )
+{
+ // Fill in data
+ r = 247;
+ g = 0;
+ b = 0;
+ a = 255;
+ m_nAmount = random->RandomInt(50, 150);
+ m_vecOrigin = current_origin;
+
+ Vector forward;
+
+ m_vecOrigin.GetForModify()[2] += 24;
+
+ AngleVectors( current_angles, &forward );
+ forward[2] = 0.0;
+ VectorNormalize( forward );
+
+ m_vecOrigin += forward * 50;
+
+ m_vecDirection = UTIL_RandomBloodVector();
+
+ CBroadcastRecipientFilter filter;
+ Create( filter, 0.0 );
+}
+
+IMPLEMENT_SERVERCLASS_ST(CTEBloodStream, DT_TEBloodStream)
+ SendPropVector( SENDINFO(m_vecDirection), 11, 0, -10.0, 10.0 ),
+ SendPropInt( SENDINFO(r), 8, SPROP_UNSIGNED ),
+ SendPropInt( SENDINFO(g), 8, SPROP_UNSIGNED ),
+ SendPropInt( SENDINFO(b), 8, SPROP_UNSIGNED ),
+ SendPropInt( SENDINFO(a), 8, SPROP_UNSIGNED ),
+ SendPropInt( SENDINFO(m_nAmount), 8, SPROP_UNSIGNED ),
+END_SEND_TABLE()
+
+// Singleton to fire TEBloodStream objects
+static CTEBloodStream g_TEBloodStream( "Blood Stream" );
+
+//-----------------------------------------------------------------------------
+// Purpose: Creates a blood stream
+// Input : msg_dest -
+// delay -
+// *origin -
+// *recipient -
+// *org -
+// *dir -
+// r -
+// g -
+// b -
+// a -
+// amount -
+//-----------------------------------------------------------------------------
+void TE_BloodStream( IRecipientFilter& filter, float delay,
+ const Vector* org, const Vector* dir, int r, int g, int b, int a, int amount )
+{
+ g_TEBloodStream.m_vecOrigin = *org;
+ g_TEBloodStream.m_vecDirection = *dir;
+ g_TEBloodStream.r = r;
+ g_TEBloodStream.g = g;
+ g_TEBloodStream.b = b;
+ g_TEBloodStream.a = a;
+ g_TEBloodStream.m_nAmount = amount;
+
+ // Send it over the wire
+ g_TEBloodStream.Create( filter, delay );
} \ No newline at end of file