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/client/c_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 'mp/src/game/client/c_te_killplayerattachments.cpp')
| -rw-r--r-- | mp/src/game/client/c_te_killplayerattachments.cpp | 138 |
1 files changed, 69 insertions, 69 deletions
diff --git a/mp/src/game/client/c_te_killplayerattachments.cpp b/mp/src/game/client/c_te_killplayerattachments.cpp index 60cb0078..ebb2436a 100644 --- a/mp/src/game/client/c_te_killplayerattachments.cpp +++ b/mp/src/game/client/c_te_killplayerattachments.cpp @@ -1,69 +1,69 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "c_basetempentity.h"
-#include "c_te_legacytempents.h"
-#include "tier0/vprof.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Kills Player Attachments
-//-----------------------------------------------------------------------------
-class C_TEKillPlayerAttachments : public C_BaseTempEntity
-{
-public:
- DECLARE_CLASS( C_TEKillPlayerAttachments, C_BaseTempEntity );
- DECLARE_CLIENTCLASS();
-
- C_TEKillPlayerAttachments( void );
- virtual ~C_TEKillPlayerAttachments( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
-public:
- int m_nPlayer;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEKillPlayerAttachments::C_TEKillPlayerAttachments( void )
-{
- m_nPlayer = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEKillPlayerAttachments::~C_TEKillPlayerAttachments( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : bool -
-//-----------------------------------------------------------------------------
-void C_TEKillPlayerAttachments::PostDataUpdate( DataUpdateType_t updateType )
-{
- VPROF( "C_TEKillPlayerAttachments::PostDataUpdate" );
-
- tempents->KillAttachedTents( m_nPlayer );
-}
-
-void TE_KillPlayerAttachments( IRecipientFilter& filter, float delay,
- int player )
-{
- tempents->KillAttachedTents( player );
-}
-
-IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEKillPlayerAttachments, DT_TEKillPlayerAttachments, CTEKillPlayerAttachments)
- RecvPropInt( RECVINFO(m_nPlayer)),
-END_RECV_TABLE()
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +// $Workfile: $ +// $Date: $ +// $NoKeywords: $ +//=============================================================================// +#include "cbase.h" +#include "c_basetempentity.h" +#include "c_te_legacytempents.h" +#include "tier0/vprof.h" + +// memdbgon must be the last include file in a .cpp file!!! +#include "tier0/memdbgon.h" + +//----------------------------------------------------------------------------- +// Purpose: Kills Player Attachments +//----------------------------------------------------------------------------- +class C_TEKillPlayerAttachments : public C_BaseTempEntity +{ +public: + DECLARE_CLASS( C_TEKillPlayerAttachments, C_BaseTempEntity ); + DECLARE_CLIENTCLASS(); + + C_TEKillPlayerAttachments( void ); + virtual ~C_TEKillPlayerAttachments( void ); + + virtual void PostDataUpdate( DataUpdateType_t updateType ); + +public: + int m_nPlayer; +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEKillPlayerAttachments::C_TEKillPlayerAttachments( void ) +{ + m_nPlayer = 0; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEKillPlayerAttachments::~C_TEKillPlayerAttachments( void ) +{ +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : bool - +//----------------------------------------------------------------------------- +void C_TEKillPlayerAttachments::PostDataUpdate( DataUpdateType_t updateType ) +{ + VPROF( "C_TEKillPlayerAttachments::PostDataUpdate" ); + + tempents->KillAttachedTents( m_nPlayer ); +} + +void TE_KillPlayerAttachments( IRecipientFilter& filter, float delay, + int player ) +{ + tempents->KillAttachedTents( player ); +} + +IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEKillPlayerAttachments, DT_TEKillPlayerAttachments, CTEKillPlayerAttachments) + RecvPropInt( RECVINFO(m_nPlayer)), +END_RECV_TABLE() |