From f56bb35301836e56582a575a75864392a0177875 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rgen=20P=2E=20Tjern=C3=B8?= Date: Mon, 2 Dec 2013 19:31:46 -0800 Subject: Fix line endings. WHAMMY. --- mp/src/game/client/c_te_bubbles.cpp | 170 ++++++++++++++++++------------------ 1 file changed, 85 insertions(+), 85 deletions(-) (limited to 'mp/src/game/client/c_te_bubbles.cpp') diff --git a/mp/src/game/client/c_te_bubbles.cpp b/mp/src/game/client/c_te_bubbles.cpp index 6958eb21..7d406fa4 100644 --- a/mp/src/game/client/c_te_bubbles.cpp +++ b/mp/src/game/client/c_te_bubbles.cpp @@ -1,85 +1,85 @@ -//========= 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: Bubbles TE -//----------------------------------------------------------------------------- -class C_TEBubbles : public C_BaseTempEntity -{ -public: - DECLARE_CLASS( C_TEBubbles, C_BaseTempEntity ); - DECLARE_CLIENTCLASS(); - - C_TEBubbles( void ); - virtual ~C_TEBubbles( void ); - - virtual void PostDataUpdate( DataUpdateType_t updateType ); - -public: - Vector m_vecMins; - Vector m_vecMaxs; - float m_fHeight; - int m_nModelIndex; - int m_nCount; - float m_fSpeed; -}; - -//----------------------------------------------------------------------------- -// Purpose: -//----------------------------------------------------------------------------- -C_TEBubbles::C_TEBubbles( void ) -{ - m_vecMins.Init(); - m_vecMaxs.Init(); - m_fHeight = 0.0; - m_nModelIndex = 0; - m_nCount = 0; - m_fSpeed = 0; -} - -//----------------------------------------------------------------------------- -// Purpose: -//----------------------------------------------------------------------------- -C_TEBubbles::~C_TEBubbles( void ) -{ -} - -void TE_Bubbles( IRecipientFilter& filter, float delay, - const Vector* mins, const Vector* maxs, float height, int modelindex, int count, float speed ) -{ - tempents->Bubbles( *mins, *maxs, height, modelindex, count, speed ); -} - -//----------------------------------------------------------------------------- -// Purpose: -// Input : bool - -//----------------------------------------------------------------------------- -void C_TEBubbles::PostDataUpdate( DataUpdateType_t updateType ) -{ - VPROF( "C_TEBubbles::PostDataUpdate" ); - - tempents->Bubbles( m_vecMins, m_vecMaxs, m_fHeight, m_nModelIndex, m_nCount, m_fSpeed ); -} - -IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBubbles, DT_TEBubbles, CTEBubbles) - RecvPropVector( RECVINFO(m_vecMins)), - RecvPropVector( RECVINFO(m_vecMaxs)), - RecvPropInt( RECVINFO(m_nModelIndex)), - RecvPropFloat( RECVINFO(m_fHeight )), - 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: Bubbles TE +//----------------------------------------------------------------------------- +class C_TEBubbles : public C_BaseTempEntity +{ +public: + DECLARE_CLASS( C_TEBubbles, C_BaseTempEntity ); + DECLARE_CLIENTCLASS(); + + C_TEBubbles( void ); + virtual ~C_TEBubbles( void ); + + virtual void PostDataUpdate( DataUpdateType_t updateType ); + +public: + Vector m_vecMins; + Vector m_vecMaxs; + float m_fHeight; + int m_nModelIndex; + int m_nCount; + float m_fSpeed; +}; + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBubbles::C_TEBubbles( void ) +{ + m_vecMins.Init(); + m_vecMaxs.Init(); + m_fHeight = 0.0; + m_nModelIndex = 0; + m_nCount = 0; + m_fSpeed = 0; +} + +//----------------------------------------------------------------------------- +// Purpose: +//----------------------------------------------------------------------------- +C_TEBubbles::~C_TEBubbles( void ) +{ +} + +void TE_Bubbles( IRecipientFilter& filter, float delay, + const Vector* mins, const Vector* maxs, float height, int modelindex, int count, float speed ) +{ + tempents->Bubbles( *mins, *maxs, height, modelindex, count, speed ); +} + +//----------------------------------------------------------------------------- +// Purpose: +// Input : bool - +//----------------------------------------------------------------------------- +void C_TEBubbles::PostDataUpdate( DataUpdateType_t updateType ) +{ + VPROF( "C_TEBubbles::PostDataUpdate" ); + + tempents->Bubbles( m_vecMins, m_vecMaxs, m_fHeight, m_nModelIndex, m_nCount, m_fSpeed ); +} + +IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBubbles, DT_TEBubbles, CTEBubbles) + RecvPropVector( RECVINFO(m_vecMins)), + RecvPropVector( RECVINFO(m_vecMaxs)), + RecvPropInt( RECVINFO(m_nModelIndex)), + RecvPropFloat( RECVINFO(m_fHeight )), + RecvPropInt( RECVINFO(m_nCount)), + RecvPropFloat( RECVINFO(m_fSpeed )), +END_RECV_TABLE() + -- cgit v1.2.3