diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /sp/src/game/server/hl2/te_gaussexplosion.cpp | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'sp/src/game/server/hl2/te_gaussexplosion.cpp')
| -rw-r--r-- | sp/src/game/server/hl2/te_gaussexplosion.cpp | 134 |
1 files changed, 67 insertions, 67 deletions
diff --git a/sp/src/game/server/hl2/te_gaussexplosion.cpp b/sp/src/game/server/hl2/te_gaussexplosion.cpp index 7a25633d..b8a44ec6 100644 --- a/sp/src/game/server/hl2/te_gaussexplosion.cpp +++ b/sp/src/game/server/hl2/te_gaussexplosion.cpp @@ -1,67 +1,67 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================//
-
-#include "cbase.h"
-#include "te_particlesystem.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//=============================================================================
-// Gauss explosion
-//=============================================================================
-
-class CTEGaussExplosion : public CTEParticleSystem
-{
-public:
- DECLARE_CLASS( CTEGaussExplosion, CTEParticleSystem );
- DECLARE_SERVERCLASS();
-
- CTEGaussExplosion( const char *name );
- virtual ~CTEGaussExplosion( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles ) { };
-
- CNetworkVar( int, m_nType );
- CNetworkVector( m_vecDirection );
-};
-
-
-CTEGaussExplosion::CTEGaussExplosion( const char *name ) : BaseClass( name )
-{
- m_nType = 0;
- m_vecDirection.Init();
-}
-
-CTEGaussExplosion::~CTEGaussExplosion( void )
-{
-}
-
-IMPLEMENT_SERVERCLASS_ST( CTEGaussExplosion, DT_TEGaussExplosion )
- SendPropInt( SENDINFO(m_nType), 2, SPROP_UNSIGNED ),
- SendPropVector( SENDINFO(m_vecDirection), -1, SPROP_COORD ),
-END_SEND_TABLE()
-
-static CTEGaussExplosion g_TEGaussExplosion( "GaussExplosion" );
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : &pos -
-// &angles -
-//-----------------------------------------------------------------------------
-void TE_GaussExplosion( IRecipientFilter& filter, float delay,
- const Vector &pos, const Vector &dir, int type )
-{
- g_TEGaussExplosion.m_vecOrigin = pos;
- g_TEGaussExplosion.m_vecDirection = dir;
- g_TEGaussExplosion.m_nType = type;
-
- //Send it
- g_TEGaussExplosion.Create( filter, delay );
-}
-
-
-
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//=============================================================================// + +#include "cbase.h" +#include "te_particlesystem.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//============================================================================= +// Gauss explosion +//============================================================================= + +class CTEGaussExplosion : public CTEParticleSystem +{ +public: + DECLARE_CLASS( CTEGaussExplosion, CTEParticleSystem ); + DECLARE_SERVERCLASS(); + + CTEGaussExplosion( const char *name ); + virtual ~CTEGaussExplosion( void ); + + virtual void Test( const Vector& current_origin, const QAngle& current_angles ) { }; + + CNetworkVar( int, m_nType ); + CNetworkVector( m_vecDirection ); +}; + + +CTEGaussExplosion::CTEGaussExplosion( const char *name ) : BaseClass( name ) +{ + m_nType = 0; + m_vecDirection.Init(); +} + +CTEGaussExplosion::~CTEGaussExplosion( void ) +{ +} + +IMPLEMENT_SERVERCLASS_ST( CTEGaussExplosion, DT_TEGaussExplosion ) + SendPropInt( SENDINFO(m_nType), 2, SPROP_UNSIGNED ), + SendPropVector( SENDINFO(m_vecDirection), -1, SPROP_COORD ), +END_SEND_TABLE() + +static CTEGaussExplosion g_TEGaussExplosion( "GaussExplosion" ); + +//----------------------------------------------------------------------------- +// Purpose: +// Input : &pos - +// &angles - +//----------------------------------------------------------------------------- +void TE_GaussExplosion( IRecipientFilter& filter, float delay, + const Vector &pos, const Vector &dir, int type ) +{ + g_TEGaussExplosion.m_vecOrigin = pos; + g_TEGaussExplosion.m_vecDirection = dir; + g_TEGaussExplosion.m_nType = type; + + //Send it + g_TEGaussExplosion.Create( filter, delay ); +} + + + |