aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/client/c_te_bspdecal.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_bspdecal.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_bspdecal.cpp')
-rw-r--r--mp/src/game/client/c_te_bspdecal.cpp218
1 files changed, 109 insertions, 109 deletions
diff --git a/mp/src/game/client/c_te_bspdecal.cpp b/mp/src/game/client/c_te_bspdecal.cpp
index b391fbfc..445912c2 100644
--- a/mp/src/game/client/c_te_bspdecal.cpp
+++ b/mp/src/game/client/c_te_bspdecal.cpp
@@ -1,109 +1,109 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $Workfile: $
-// $Date: $
-// $NoKeywords: $
-//=============================================================================//
-#include "cbase.h"
-#include "c_basetempentity.h"
-#include "iefx.h"
-#include "fx.h"
-#include "tier0/vprof.h"
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-// UNDONE: Get rid of this?
-#define FDECAL_PERMANENT 0x01
-
-//-----------------------------------------------------------------------------
-// Purpose: BSP Decal TE
-//-----------------------------------------------------------------------------
-class C_TEBSPDecal : public C_BaseTempEntity
-{
-public:
- DECLARE_CLASS( C_TEBSPDecal, C_BaseTempEntity );
- DECLARE_CLIENTCLASS();
-
- C_TEBSPDecal( void );
- virtual ~C_TEBSPDecal( void );
-
- virtual void PostDataUpdate( DataUpdateType_t updateType );
-
- virtual void Precache( void );
-
-public:
- Vector m_vecOrigin;
- int m_nEntity;
- int m_nIndex;
-};
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBSPDecal::C_TEBSPDecal( void )
-{
- m_vecOrigin.Init();
- m_nEntity = 0;
- m_nIndex = 0;
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-C_TEBSPDecal::~C_TEBSPDecal( void )
-{
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-//-----------------------------------------------------------------------------
-void C_TEBSPDecal::Precache( void )
-{
-}
-
-void TE_BSPDecal( IRecipientFilter& filter, float delay,
- const Vector* pos, int entity, int index )
-{
- C_BaseEntity *ent;
- if ( ( ent = cl_entitylist->GetEnt( entity ) ) == NULL )
- {
- DevMsg( 1, "Decal: entity = %i", entity );
- return;
- }
-
- if ( r_decals.GetInt() )
- {
- effects->DecalShoot( index, entity, ent->GetModel(), ent->GetAbsOrigin(), ent->GetAbsAngles(), *pos, 0, FDECAL_PERMANENT );
- }
-}
-
-//-----------------------------------------------------------------------------
-// Purpose:
-// Input : bool -
-//-----------------------------------------------------------------------------
-void C_TEBSPDecal::PostDataUpdate( DataUpdateType_t updateType )
-{
- VPROF( "C_TEBSPDecal::PostDataUpdate" );
-
- C_BaseEntity *ent;
- if ( ( ent = cl_entitylist->GetEnt( m_nEntity ) ) == NULL )
- {
- DevMsg( 1, "Decal: entity = %i", m_nEntity );
- return;
- }
-
- if ( r_decals.GetInt() )
- {
- effects->DecalShoot( m_nIndex, m_nEntity, ent->GetModel(), ent->GetAbsOrigin(), ent->GetAbsAngles(), m_vecOrigin, 0, FDECAL_PERMANENT );
- }
-}
-
-IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBSPDecal, DT_TEBSPDecal, CTEBSPDecal)
- RecvPropVector( RECVINFO(m_vecOrigin)),
- RecvPropInt( RECVINFO(m_nEntity)),
- RecvPropInt( RECVINFO(m_nIndex)),
-END_RECV_TABLE()
-
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $Workfile: $
+// $Date: $
+// $NoKeywords: $
+//=============================================================================//
+#include "cbase.h"
+#include "c_basetempentity.h"
+#include "iefx.h"
+#include "fx.h"
+#include "tier0/vprof.h"
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+// UNDONE: Get rid of this?
+#define FDECAL_PERMANENT 0x01
+
+//-----------------------------------------------------------------------------
+// Purpose: BSP Decal TE
+//-----------------------------------------------------------------------------
+class C_TEBSPDecal : public C_BaseTempEntity
+{
+public:
+ DECLARE_CLASS( C_TEBSPDecal, C_BaseTempEntity );
+ DECLARE_CLIENTCLASS();
+
+ C_TEBSPDecal( void );
+ virtual ~C_TEBSPDecal( void );
+
+ virtual void PostDataUpdate( DataUpdateType_t updateType );
+
+ virtual void Precache( void );
+
+public:
+ Vector m_vecOrigin;
+ int m_nEntity;
+ int m_nIndex;
+};
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+C_TEBSPDecal::C_TEBSPDecal( void )
+{
+ m_vecOrigin.Init();
+ m_nEntity = 0;
+ m_nIndex = 0;
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+C_TEBSPDecal::~C_TEBSPDecal( void )
+{
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+//-----------------------------------------------------------------------------
+void C_TEBSPDecal::Precache( void )
+{
+}
+
+void TE_BSPDecal( IRecipientFilter& filter, float delay,
+ const Vector* pos, int entity, int index )
+{
+ C_BaseEntity *ent;
+ if ( ( ent = cl_entitylist->GetEnt( entity ) ) == NULL )
+ {
+ DevMsg( 1, "Decal: entity = %i", entity );
+ return;
+ }
+
+ if ( r_decals.GetInt() )
+ {
+ effects->DecalShoot( index, entity, ent->GetModel(), ent->GetAbsOrigin(), ent->GetAbsAngles(), *pos, 0, FDECAL_PERMANENT );
+ }
+}
+
+//-----------------------------------------------------------------------------
+// Purpose:
+// Input : bool -
+//-----------------------------------------------------------------------------
+void C_TEBSPDecal::PostDataUpdate( DataUpdateType_t updateType )
+{
+ VPROF( "C_TEBSPDecal::PostDataUpdate" );
+
+ C_BaseEntity *ent;
+ if ( ( ent = cl_entitylist->GetEnt( m_nEntity ) ) == NULL )
+ {
+ DevMsg( 1, "Decal: entity = %i", m_nEntity );
+ return;
+ }
+
+ if ( r_decals.GetInt() )
+ {
+ effects->DecalShoot( m_nIndex, m_nEntity, ent->GetModel(), ent->GetAbsOrigin(), ent->GetAbsAngles(), m_vecOrigin, 0, FDECAL_PERMANENT );
+ }
+}
+
+IMPLEMENT_CLIENTCLASS_EVENT_DT(C_TEBSPDecal, DT_TEBSPDecal, CTEBSPDecal)
+ RecvPropVector( RECVINFO(m_vecOrigin)),
+ RecvPropInt( RECVINFO(m_nEntity)),
+ RecvPropInt( RECVINFO(m_nIndex)),
+END_RECV_TABLE()
+