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_bubbletrail.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_bubbletrail.cpp')
| -rw-r--r-- | mp/src/game/client/c_te_bubbletrail.cpp | 168 |
1 files changed, 84 insertions, 84 deletions
diff --git a/mp/src/game/client/c_te_bubbletrail.cpp b/mp/src/game/client/c_te_bubbletrail.cpp index 3011853f..ab0a7f21 100644 --- a/mp/src/game/client/c_te_bubbletrail.cpp +++ b/mp/src/game/client/c_te_bubbletrail.cpp @@ -1,84 +1,84 @@ -//========= 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: Bubble Trail TE
-//-----------------------------------------------------------------------------
-class C_TEBubbleTrail : public C_BaseTempEntity
-{
-public:
- DECLARE_CLASS( C_TEBubbleTrail, C_BaseTempEntity );
- DECLARE_CLIENTCLASS();
-
- C_TEBubbleTrail( void );
- virtual ~C_TEBubbleTrail( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
-public:
- Vector m_vecMins;
- Vector m_vecMaxs;
- float m_flWaterZ;
- int m_nModelIndex;
- int m_nCount;
- float m_fSpeed;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBubbleTrail::C_TEBubbleTrail( void )
-{
- m_vecMins.Init();
- m_vecMaxs.Init();
- m_flWaterZ = 0.0;
- m_nModelIndex = 0;
- m_nCount = 0;
- m_fSpeed = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBubbleTrail::~C_TEBubbleTrail( void )
-{
-}
-
-void TE_BubbleTrail( IRecipientFilter& filter, float delay,
- const Vector* mins, const Vector* maxs, float flWaterZ, int modelindex, int count, float speed )
-{
- tempents->BubbleTrail( *mins, *maxs, flWaterZ, modelindex, count, speed );
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : bool -
-//-----------------------------------------------------------------------------
-void C_TEBubbleTrail::PostDataUpdate( DataUpdateType_t updateType )
-{
- VPROF( "C_TEBubbleTrail::PostDataUpdate" );
-
- tempents->BubbleTrail( m_vecMins, m_vecMaxs, m_flWaterZ, m_nModelIndex, m_nCount, m_fSpeed );
-}
-
-IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBubbleTrail, DT_TEBubbleTrail, CTEBubbleTrail)
- RecvPropVector( RECVINFO(m_vecMins)),
- RecvPropVector( RECVINFO(m_vecMaxs)),
- RecvPropInt( RECVINFO(m_nModelIndex)),
- RecvPropFloat( RECVINFO(m_flWaterZ )),
- RecvPropInt( RECVINFO(m_nCount)),
- RecvPropFloat( RECVINFO(m_fSpeed )),
-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: Bubble Trail TE +//----------------------------------------------------------------------------- +class C_TEBubbleTrail : public C_BaseTempEntity +{ +public: + DECLARE_CLASS( C_TEBubbleTrail, C_BaseTempEntity ); + DECLARE_CLIENTCLASS(); + + C_TEBubbleTrail( void ); + virtual ~C_TEBubbleTrail( void ); + + virtual void PostDataUpdate( DataUpdateType_t updateType ); + +public: + Vector m_vecMins; + Vector m_vecMaxs; + float m_flWaterZ; + int m_nModelIndex; + int m_nCount; + float m_fSpeed; +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBubbleTrail::C_TEBubbleTrail( void ) +{ + m_vecMins.Init(); + m_vecMaxs.Init(); + m_flWaterZ = 0.0; + m_nModelIndex = 0; + m_nCount = 0; + m_fSpeed = 0; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBubbleTrail::~C_TEBubbleTrail( void ) +{ +} + +void TE_BubbleTrail( IRecipientFilter& filter, float delay, + const Vector* mins, const Vector* maxs, float flWaterZ, int modelindex, int count, float speed ) +{ + tempents->BubbleTrail( *mins, *maxs, flWaterZ, modelindex, count, speed ); +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : bool - +//----------------------------------------------------------------------------- +void C_TEBubbleTrail::PostDataUpdate( DataUpdateType_t updateType ) +{ + VPROF( "C_TEBubbleTrail::PostDataUpdate" ); + + tempents->BubbleTrail( m_vecMins, m_vecMaxs, m_flWaterZ, m_nModelIndex, m_nCount, m_fSpeed ); +} + +IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBubbleTrail, DT_TEBubbleTrail, CTEBubbleTrail) + RecvPropVector( RECVINFO(m_vecMins)), + RecvPropVector( RECVINFO(m_vecMaxs)), + RecvPropInt( RECVINFO(m_nModelIndex)), + RecvPropFloat( RECVINFO(m_flWaterZ )), + RecvPropInt( RECVINFO(m_nCount)), + RecvPropFloat( RECVINFO(m_fSpeed )), +END_RECV_TABLE() |