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_clientprojectile.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_clientprojectile.cpp')
| -rw-r--r-- | mp/src/game/client/c_te_clientprojectile.cpp | 156 |
1 files changed, 78 insertions, 78 deletions
diff --git a/mp/src/game/client/c_te_clientprojectile.cpp b/mp/src/game/client/c_te_clientprojectile.cpp index 98333d97..f2a17392 100644 --- a/mp/src/game/client/c_te_clientprojectile.cpp +++ b/mp/src/game/client/c_te_clientprojectile.cpp @@ -1,78 +1,78 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-//=============================================================================
-#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: Client Projectile TE
-//-----------------------------------------------------------------------------
-class C_TEClientProjectile : public C_BaseTempEntity
-{
-public:
- DECLARE_CLASS( C_TEClientProjectile, C_BaseTempEntity );
- DECLARE_CLIENTCLASS();
-
- C_TEClientProjectile( void );
- virtual ~C_TEClientProjectile( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
-public:
- Vector m_vecOrigin;
- Vector m_vecVelocity;
- int m_nModelIndex;
- int m_nLifeTime;
- EHANDLE m_hOwner;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEClientProjectile::C_TEClientProjectile( void )
-{
- m_vecOrigin.Init();
- m_vecVelocity.Init();
- m_nModelIndex = 0;
- m_nLifeTime = 0;
- m_hOwner = NULL;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEClientProjectile::~C_TEClientProjectile( void )
-{
-}
-
-void TE_ClientProjectile( IRecipientFilter& filter, float delay,
- const Vector* vecOrigin, const Vector* vecVelocity, int modelindex, int lifetime, CBaseEntity *pOwner )
-{
- tempents->ClientProjectile( *vecOrigin, *vecVelocity, vec3_origin, modelindex, lifetime, pOwner );
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : bool -
-//-----------------------------------------------------------------------------
-void C_TEClientProjectile::PostDataUpdate( DataUpdateType_t updateType )
-{
- VPROF( "C_TEClientProjectile::PostDataUpdate" );
-
- tempents->ClientProjectile( m_vecOrigin, m_vecVelocity, vec3_origin, m_nModelIndex, m_nLifeTime, m_hOwner );
-}
-
-IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEClientProjectile, DT_TEClientProjectile, CTEClientProjectile)
- RecvPropVector( RECVINFO(m_vecOrigin)),
- RecvPropVector( RECVINFO(m_vecVelocity)),
- RecvPropInt( RECVINFO(m_nModelIndex)),
- RecvPropInt( RECVINFO(m_nLifeTime)),
- RecvPropEHandle( RECVINFO(m_hOwner)),
-END_RECV_TABLE()
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= +#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: Client Projectile TE +//----------------------------------------------------------------------------- +class C_TEClientProjectile : public C_BaseTempEntity +{ +public: + DECLARE_CLASS( C_TEClientProjectile, C_BaseTempEntity ); + DECLARE_CLIENTCLASS(); + + C_TEClientProjectile( void ); + virtual ~C_TEClientProjectile( void ); + + virtual void PostDataUpdate( DataUpdateType_t updateType ); + +public: + Vector m_vecOrigin; + Vector m_vecVelocity; + int m_nModelIndex; + int m_nLifeTime; + EHANDLE m_hOwner; +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEClientProjectile::C_TEClientProjectile( void ) +{ + m_vecOrigin.Init(); + m_vecVelocity.Init(); + m_nModelIndex = 0; + m_nLifeTime = 0; + m_hOwner = NULL; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEClientProjectile::~C_TEClientProjectile( void ) +{ +} + +void TE_ClientProjectile( IRecipientFilter& filter, float delay, + const Vector* vecOrigin, const Vector* vecVelocity, int modelindex, int lifetime, CBaseEntity *pOwner ) +{ + tempents->ClientProjectile( *vecOrigin, *vecVelocity, vec3_origin, modelindex, lifetime, pOwner ); +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : bool - +//----------------------------------------------------------------------------- +void C_TEClientProjectile::PostDataUpdate( DataUpdateType_t updateType ) +{ + VPROF( "C_TEClientProjectile::PostDataUpdate" ); + + tempents->ClientProjectile( m_vecOrigin, m_vecVelocity, vec3_origin, m_nModelIndex, m_nLifeTime, m_hOwner ); +} + +IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEClientProjectile, DT_TEClientProjectile, CTEClientProjectile) + RecvPropVector( RECVINFO(m_vecOrigin)), + RecvPropVector( RECVINFO(m_vecVelocity)), + RecvPropInt( RECVINFO(m_nModelIndex)), + RecvPropInt( RECVINFO(m_nLifeTime)), + RecvPropEHandle( RECVINFO(m_hOwner)), +END_RECV_TABLE() |