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/te_killplayerattachments.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/te_killplayerattachments.cpp')
| -rw-r--r-- | sp/src/game/server/te_killplayerattachments.cpp | 182 |
1 files changed, 91 insertions, 91 deletions
diff --git a/sp/src/game/server/te_killplayerattachments.cpp b/sp/src/game/server/te_killplayerattachments.cpp index 23c2181f..1d6ae167 100644 --- a/sp/src/game/server/te_killplayerattachments.cpp +++ b/sp/src/game/server/te_killplayerattachments.cpp @@ -1,92 +1,92 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-//
-//-----------------------------------------------------------------------------
-// $Log: $
-//
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "basetempentity.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Dispatches blood stream tempentity
-//-----------------------------------------------------------------------------
-class CTEKillPlayerAttachments : public CBaseTempEntity
-{
-public:
- DECLARE_CLASS( CTEKillPlayerAttachments, CBaseTempEntity );
-
- CTEKillPlayerAttachments( const char *name );
- virtual ~CTEKillPlayerAttachments( void );
-
- virtual void Test( const Vector& current_origin, const QAngle& current_angles );
-
- DECLARE_SERVERCLASS();
-
-public:
- CNetworkVar( int, m_nPlayer );
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *name -
-//-----------------------------------------------------------------------------
-CTEKillPlayerAttachments::CTEKillPlayerAttachments( const char *name ) :
- CBaseTempEntity( name )
-{
- m_nPlayer = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-CTEKillPlayerAttachments::~CTEKillPlayerAttachments( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : *current_origin -
-// *current_angles -
-//-----------------------------------------------------------------------------
-void CTEKillPlayerAttachments::Test( const Vector& current_origin, const QAngle& current_angles )
-{
- m_nPlayer = 1;
-
- CBroadcastRecipientFilter filter;
- Create( filter, 0.0 );
-}
-
-
-IMPLEMENT_SERVERCLASS_ST(CTEKillPlayerAttachments, DT_TEKillPlayerAttachments)
- SendPropInt( SENDINFO(m_nPlayer), 5, SPROP_UNSIGNED ),
-END_SEND_TABLE()
-
-
-// Singleton to fire TEKillPlayerAttachments objects
-static CTEKillPlayerAttachments g_TEKillPlayerAttachments( "KillPlayerAttachments" );
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : msg_dest -
-// delay -
-// *origin -
-// *recipient -
-// player -
-//-----------------------------------------------------------------------------
-void TE_KillPlayerAttachments( IRecipientFilter& filter, float delay,
- int player )
-{
- g_TEKillPlayerAttachments.m_nPlayer = player;
-
- // Send it over the wire
- g_TEKillPlayerAttachments.Create( filter, delay );
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// +//----------------------------------------------------------------------------- +// $Log: $ +// +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "basetempentity.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//----------------------------------------------------------------------------- +// Purpose: Dispatches blood stream tempentity +//----------------------------------------------------------------------------- +class CTEKillPlayerAttachments : public CBaseTempEntity +{ +public: + DECLARE_CLASS( CTEKillPlayerAttachments, CBaseTempEntity ); + + CTEKillPlayerAttachments( const char *name ); + virtual ~CTEKillPlayerAttachments( void ); + + virtual void Test( const Vector& current_origin, const QAngle& current_angles ); + + DECLARE_SERVERCLASS(); + +public: + CNetworkVar( int, m_nPlayer ); +}; + +//----------------------------------------------------------------------------- +// Purpose: +// Input : *name - +//----------------------------------------------------------------------------- +CTEKillPlayerAttachments::CTEKillPlayerAttachments( const char *name ) : + CBaseTempEntity( name ) +{ + m_nPlayer = 0; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +CTEKillPlayerAttachments::~CTEKillPlayerAttachments( void ) +{ +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : *current_origin - +// *current_angles - +//----------------------------------------------------------------------------- +void CTEKillPlayerAttachments::Test( const Vector& current_origin, const QAngle& current_angles ) +{ + m_nPlayer = 1; + + CBroadcastRecipientFilter filter; + Create( filter, 0.0 ); +} + + +IMPLEMENT_SERVERCLASS_ST(CTEKillPlayerAttachments, DT_TEKillPlayerAttachments) + SendPropInt( SENDINFO(m_nPlayer), 5, SPROP_UNSIGNED ), +END_SEND_TABLE() + + +// Singleton to fire TEKillPlayerAttachments objects +static CTEKillPlayerAttachments g_TEKillPlayerAttachments( "KillPlayerAttachments" ); + +//----------------------------------------------------------------------------- +// Purpose: +// Input : msg_dest - +// delay - +// *origin - +// *recipient - +// player - +//----------------------------------------------------------------------------- +void TE_KillPlayerAttachments( IRecipientFilter& filter, float delay, + int player ) +{ + g_TEKillPlayerAttachments.m_nPlayer = player; + + // Send it over the wire + g_TEKillPlayerAttachments.Create( filter, delay ); }
\ No newline at end of file |