aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/c_te_smoke.cpp
diff options
context:
space:
mode:
authorJørgen P. Tjernø <[email protected]>2013-12-02 19:31:46 -0800
committerJørgen P. Tjernø <[email protected]>2013-12-02 19:46:31 -0800
commitf56bb35301836e56582a575a75864392a0177875 (patch)
treede61ddd39de3e7df52759711950b4c288592f0dc /mp/src/game/client/c_te_smoke.cpp
parentMark some more files as text. (diff)
downloadsource-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz
source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/game/client/c_te_smoke.cpp')
-rw-r--r--mp/src/game/client/c_te_smoke.cpp222
1 files changed, 111 insertions, 111 deletions
diff --git a/mp/src/game/client/c_te_smoke.cpp b/mp/src/game/client/c_te_smoke.cpp
index 1439fbf8..5d664cd6 100644
--- a/mp/src/game/client/c_te_smoke.cpp
+++ b/mp/src/game/client/c_te_smoke.cpp
@@ -1,111 +1,111 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//===========================================================================//
-#include "cbase.h"
-#include "c_basetempentity.h"
-#include "IEffects.h"
-#include "tier1/KeyValues.h"
-#include "toolframework_client.h"
-#include "tier0/vprof.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-//-----------------------------------------------------------------------------
-// Purpose: Smoke TE
-//-----------------------------------------------------------------------------
-class C_TESmoke : public C_BaseTempEntity
-{
-public:
- DECLARE_CLASS( C_TESmoke, C_BaseTempEntity );
- DECLARE_CLIENTCLASS();
-
- C_TESmoke( void );
- virtual ~C_TESmoke( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
-public:
- Vector m_vecOrigin;
- int m_nModelIndex;
- float m_fScale;
- int m_nFrameRate;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TESmoke::C_TESmoke( void )
-{
- m_vecOrigin.Init();
- m_nModelIndex = 0;
- m_fScale = 0;
- m_nFrameRate = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TESmoke::~C_TESmoke( void )
-{
-}
-
-
-//-----------------------------------------------------------------------------
-// Recording
-//-----------------------------------------------------------------------------
-static inline void RecordSmoke( const Vector &start, float flScale, int nFrameRate )
-{
- if ( !ToolsEnabled() )
- return;
-
- if ( clienttools->IsInRecordingMode() )
- {
- KeyValues *msg = new KeyValues( "TempEntity" );
-
- msg->SetInt( "te", TE_SMOKE );
- msg->SetString( "name", "TE_Smoke" );
- msg->SetFloat( "time", gpGlobals->curtime );
- msg->SetFloat( "originx", start.x );
- msg->SetFloat( "originy", start.y );
- msg->SetFloat( "originz", start.z );
- msg->SetFloat( "scale", flScale );
- msg->SetInt( "framerate", nFrameRate );
-
- ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
- msg->deleteThis();
- }
-}
-
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-void C_TESmoke::PostDataUpdate( DataUpdateType_t updateType )
-{
- VPROF( "C_TESmoke::PostDataUpdate" );
-
- // The number passed down is 10 times smaller...
- g_pEffects->Smoke( m_vecOrigin, m_nModelIndex, m_fScale * 10.0f, m_nFrameRate );
- RecordSmoke( m_vecOrigin, m_fScale * 10.0f, m_nFrameRate );
-}
-
-void TE_Smoke( IRecipientFilter& filter, float delay,
- const Vector* pos, int modelindex, float scale, int framerate )
-{
- // The number passed down is 10 times smaller...
- g_pEffects->Smoke( *pos, modelindex, scale * 10.0f, framerate );
- RecordSmoke( *pos, scale * 10.0f, framerate );
-}
-
-IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TESmoke, DT_TESmoke, CTESmoke)
- RecvPropVector( RECVINFO(m_vecOrigin)),
- RecvPropInt( RECVINFO(m_nModelIndex)),
- RecvPropFloat( RECVINFO(m_fScale )),
- RecvPropInt( RECVINFO(m_nFrameRate)),
-END_RECV_TABLE()
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//===========================================================================//
+#include "cbase.h"
+#include "c_basetempentity.h"
+#include "IEffects.h"
+#include "tier1/KeyValues.h"
+#include "toolframework_client.h"
+#include "tier0/vprof.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+//-----------------------------------------------------------------------------
+// Purpose: Smoke TE
+//-----------------------------------------------------------------------------
+class C_TESmoke : public C_BaseTempEntity
+{
+public:
+ DECLARE_CLASS( C_TESmoke, C_BaseTempEntity );
+ DECLARE_CLIENTCLASS();
+
+ C_TESmoke( void );
+ virtual ~C_TESmoke( void );
+
+ virtual void PostDataUpdate( DataUpdateType_t updateType );
+
+public:
+ Vector m_vecOrigin;
+ int m_nModelIndex;
+ float m_fScale;
+ int m_nFrameRate;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+C_TESmoke::C_TESmoke( void )
+{
+ m_vecOrigin.Init();
+ m_nModelIndex = 0;
+ m_fScale = 0;
+ m_nFrameRate = 0;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+C_TESmoke::~C_TESmoke( void )
+{
+}
+
+
+//-----------------------------------------------------------------------------
+// Recording
+//-----------------------------------------------------------------------------
+static inline void RecordSmoke( const Vector &start, float flScale, int nFrameRate )
+{
+ if ( !ToolsEnabled() )
+ return;
+
+ if ( clienttools->IsInRecordingMode() )
+ {
+ KeyValues *msg = new KeyValues( "TempEntity" );
+
+ msg->SetInt( "te", TE_SMOKE );
+ msg->SetString( "name", "TE_Smoke" );
+ msg->SetFloat( "time", gpGlobals->curtime );
+ msg->SetFloat( "originx", start.x );
+ msg->SetFloat( "originy", start.y );
+ msg->SetFloat( "originz", start.z );
+ msg->SetFloat( "scale", flScale );
+ msg->SetInt( "framerate", nFrameRate );
+
+ ToolFramework_PostToolMessage( HTOOLHANDLE_INVALID, msg );
+ msg->deleteThis();
+ }
+}
+
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+void C_TESmoke::PostDataUpdate( DataUpdateType_t updateType )
+{
+ VPROF( "C_TESmoke::PostDataUpdate" );
+
+ // The number passed down is 10 times smaller...
+ g_pEffects->Smoke( m_vecOrigin, m_nModelIndex, m_fScale * 10.0f, m_nFrameRate );
+ RecordSmoke( m_vecOrigin, m_fScale * 10.0f, m_nFrameRate );
+}
+
+void TE_Smoke( IRecipientFilter& filter, float delay,
+ const Vector* pos, int modelindex, float scale, int framerate )
+{
+ // The number passed down is 10 times smaller...
+ g_pEffects->Smoke( *pos, modelindex, scale * 10.0f, framerate );
+ RecordSmoke( *pos, scale * 10.0f, framerate );
+}
+
+IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TESmoke, DT_TESmoke, CTESmoke)
+ RecvPropVector( RECVINFO(m_vecOrigin)),
+ RecvPropInt( RECVINFO(m_nModelIndex)),
+ RecvPropFloat( RECVINFO(m_fScale )),
+ RecvPropInt( RECVINFO(m_nFrameRate)),
+END_RECV_TABLE()