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 /mp/src/game/server/te_muzzleflash.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 'mp/src/game/server/te_muzzleflash.cpp')
| -rw-r--r-- | mp/src/game/server/te_muzzleflash.cpp | 196 |
1 files changed, 98 insertions, 98 deletions
diff --git a/mp/src/game/server/te_muzzleflash.cpp b/mp/src/game/server/te_muzzleflash.cpp index 6f2b80ea..5d8afbb7 100644 --- a/mp/src/game/server/te_muzzleflash.cpp +++ b/mp/src/game/server/te_muzzleflash.cpp @@ -1,99 +1,99 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: Create a muzzle flash temp ent
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#include "cbase.h"
-#include "basetempentity.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Dispatches user tracer stream tempentity
-//-----------------------------------------------------------------------------
-class CTEMuzzleFlash : public CBaseTempEntity
-{
-public:
- DECLARE_CLASS( CTEMuzzleFlash, CBaseTempEntity );
-
- DECLARE_SERVERCLASS();
-
- CTEMuzzleFlash( const char *name );
- virtual ~CTEMuzzleFlash( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles );
-
-public:
-
- CNetworkVector( m_vecOrigin );
- CNetworkQAngle( m_vecAngles );
- CNetworkVar( float, m_flScale );
- CNetworkVar( int, m_nType );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *name -
-//-----------------------------------------------------------------------------
-CTEMuzzleFlash::CTEMuzzleFlash( const char *name ) :
- CBaseTempEntity( name )
-{
- m_vecOrigin.Init();
- m_vecAngles.Init();
-
- m_flScale = 1.0f;
- m_nType = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-CTEMuzzleFlash::~CTEMuzzleFlash( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *current_origin -
-// *current_angles -
-//-----------------------------------------------------------------------------
-void CTEMuzzleFlash::Test( const Vector& current_origin, const QAngle& current_angles )
-{
-}
-
-
-IMPLEMENT_SERVERCLASS_ST( CTEMuzzleFlash, DT_TEMuzzleFlash )
- SendPropVector( SENDINFO(m_vecOrigin), -1, SPROP_COORD ),
- SendPropVector( SENDINFO(m_vecAngles), -1, SPROP_COORD ),
- SendPropFloat( SENDINFO(m_flScale), -1, SPROP_NOSCALE ),
- SendPropInt( SENDINFO(m_nType), 32, SPROP_UNSIGNED ),
-END_SEND_TABLE()
-
-// Singleton to fire TEMuzzleFlash objects
-static CTEMuzzleFlash g_TEMuzzleFlash( "MuzzleFlash" );
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : msg_dest -
-// delay -
-// origin -
-// *recipient -
-// *origin -
-// *dir -
-// scale -
-// type -
-//-----------------------------------------------------------------------------
-void TE_MuzzleFlash( IRecipientFilter& filter, float delay,
- const Vector &start, const QAngle &angles, float scale, int type )
-{
- g_TEMuzzleFlash.m_vecOrigin = start;
- g_TEMuzzleFlash.m_vecAngles = angles;
- g_TEMuzzleFlash.m_flScale = scale;
- g_TEMuzzleFlash.m_nType = type;
-
- // Send it over the wire
- g_TEMuzzleFlash.Create( filter, delay );
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: Create a muzzle flash temp ent +// +// $NoKeywords: $ +//=============================================================================// + +#include "cbase.h" +#include "basetempentity.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//----------------------------------------------------------------------------- +// Purpose: Dispatches user tracer stream tempentity +//----------------------------------------------------------------------------- +class CTEMuzzleFlash : public CBaseTempEntity +{ +public: + DECLARE_CLASS( CTEMuzzleFlash, CBaseTempEntity ); + + DECLARE_SERVERCLASS(); + + CTEMuzzleFlash( const char *name ); + virtual ~CTEMuzzleFlash( void ); + + virtual void Test( const Vector& current_origin, const QAngle& current_angles ); + +public: + + CNetworkVector( m_vecOrigin ); + CNetworkQAngle( m_vecAngles ); + CNetworkVar( float, m_flScale ); + CNetworkVar( int, m_nType ); +}; + +//----------------------------------------------------------------------------- +// Purpose: +// Input : *name - +//----------------------------------------------------------------------------- +CTEMuzzleFlash::CTEMuzzleFlash( const char *name ) : + CBaseTempEntity( name ) +{ + m_vecOrigin.Init(); + m_vecAngles.Init(); + + m_flScale = 1.0f; + m_nType = 0; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +CTEMuzzleFlash::~CTEMuzzleFlash( void ) +{ +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : *current_origin - +// *current_angles - +//----------------------------------------------------------------------------- +void CTEMuzzleFlash::Test( const Vector& current_origin, const QAngle& current_angles ) +{ +} + + +IMPLEMENT_SERVERCLASS_ST( CTEMuzzleFlash, DT_TEMuzzleFlash ) + SendPropVector( SENDINFO(m_vecOrigin), -1, SPROP_COORD ), + SendPropVector( SENDINFO(m_vecAngles), -1, SPROP_COORD ), + SendPropFloat( SENDINFO(m_flScale), -1, SPROP_NOSCALE ), + SendPropInt( SENDINFO(m_nType), 32, SPROP_UNSIGNED ), +END_SEND_TABLE() + +// Singleton to fire TEMuzzleFlash objects +static CTEMuzzleFlash g_TEMuzzleFlash( "MuzzleFlash" ); + +//----------------------------------------------------------------------------- +// Purpose: +// Input : msg_dest - +// delay - +// origin - +// *recipient - +// *origin - +// *dir - +// scale - +// type - +//----------------------------------------------------------------------------- +void TE_MuzzleFlash( IRecipientFilter& filter, float delay, + const Vector &start, const QAngle &angles, float scale, int type ) +{ + g_TEMuzzleFlash.m_vecOrigin = start; + g_TEMuzzleFlash.m_vecAngles = angles; + g_TEMuzzleFlash.m_flScale = scale; + g_TEMuzzleFlash.m_nType = type; + + // Send it over the wire + g_TEMuzzleFlash.Create( filter, delay ); }
\ No newline at end of file |