aboutsummaryrefslogtreecommitdiff
path: root/mp/src/game/shared/baseparticleentity.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/shared/baseparticleentity.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/shared/baseparticleentity.cpp')
-rw-r--r--mp/src/game/shared/baseparticleentity.cpp230
1 files changed, 115 insertions, 115 deletions
diff --git a/mp/src/game/shared/baseparticleentity.cpp b/mp/src/game/shared/baseparticleentity.cpp
index 8211017b..85c989b3 100644
--- a/mp/src/game/shared/baseparticleentity.cpp
+++ b/mp/src/game/shared/baseparticleentity.cpp
@@ -1,115 +1,115 @@
-//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose:
-//
-// $NoKeywords: $
-//
-//===========================================================================//
-
-#include "cbase.h"
-#include "baseparticleentity.h"
-
-#ifdef CLIENT_DLL
-#include "tier1/KeyValues.h"
-#include "toolframework_client.h"
-#endif
-
-// memdbgon must be the last include file in a .cpp file!!!
-#include "tier0/memdbgon.h"
-
-IMPLEMENT_NETWORKCLASS_ALIASED( BaseParticleEntity, DT_BaseParticleEntity )
-
-BEGIN_NETWORK_TABLE( CBaseParticleEntity, DT_BaseParticleEntity )
-END_NETWORK_TABLE()
-
-BEGIN_PREDICTION_DATA( CBaseParticleEntity )
-END_PREDICTION_DATA()
-
-#ifdef CLIENT_DLL
-REGISTER_EFFECT( CBaseParticleEntity );
-#endif
-
-CBaseParticleEntity::CBaseParticleEntity( void )
-{
-#if defined( CLIENT_DLL )
- m_bSimulate = true;
- m_nToolParticleEffectId = TOOLPARTICLESYSTEMID_INVALID;
-#endif
-}
-
-CBaseParticleEntity::~CBaseParticleEntity( void )
-{
-#if defined( CLIENT_DLL )
- if ( ToolsEnabled() && ( m_nToolParticleEffectId != TOOLPARTICLESYSTEMID_INVALID ) && clienttools->IsInRecordingMode() )
- {
- KeyValues *msg = new KeyValues( "ParticleSystem_Destroy" );
- msg->SetInt( "id", m_nToolParticleEffectId );
- m_nToolParticleEffectId = TOOLPARTICLESYSTEMID_INVALID;
- }
-#endif
-}
-
-#if !defined( CLIENT_DLL )
-int CBaseParticleEntity::UpdateTransmitState( void )
-{
- if ( IsEffectActive( EF_NODRAW ) )
- return SetTransmitState( FL_EDICT_DONTSEND );
-
- if ( IsEFlagSet( EFL_IN_SKYBOX ) )
- return SetTransmitState( FL_EDICT_ALWAYS );
-
- // cull against PVS
- return SetTransmitState( FL_EDICT_PVSCHECK );
-}
-#endif
-
-void CBaseParticleEntity::Activate()
-{
-#if !defined( CLIENT_DLL )
- BaseClass::Activate();
-#endif
-}
-
-
-void CBaseParticleEntity::Think()
-{
- Remove( );
-}
-
-
-void CBaseParticleEntity::FollowEntity(CBaseEntity *pEntity)
-{
- BaseClass::FollowEntity( pEntity );
- SetLocalOrigin( vec3_origin );
-}
-
-
-void CBaseParticleEntity::SetLifetime(float lifetime)
-{
- if(lifetime == -1)
- SetNextThink( TICK_NEVER_THINK );
- else
- SetNextThink( gpGlobals->curtime + lifetime );
-}
-
-#if defined( CLIENT_DLL )
-const Vector &CBaseParticleEntity::GetSortOrigin()
-{
- // By default, we do the cheaper behavior of getting the root parent's abs origin, so we don't have to
- // setup any bones along the way. If this screws anything up, we can always make it an option.
- return GetRootMoveParent()->GetAbsOrigin();
-}
-
-void CBaseParticleEntity::SimulateParticles( CParticleSimulateIterator *pIterator )
-{
- // If you derive from CBaseParticleEntity, you must implement simulation and rendering.
- Assert( false );
-}
-
-void CBaseParticleEntity::RenderParticles( CParticleRenderIterator *pIterator )
-{
- // If you derive from CBaseParticleEntity, you must implement simulation and rendering.
- Assert( false );
-}
-
-#endif
+//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+// $NoKeywords: $
+//
+//===========================================================================//
+
+#include "cbase.h"
+#include "baseparticleentity.h"
+
+#ifdef CLIENT_DLL
+#include "tier1/KeyValues.h"
+#include "toolframework_client.h"
+#endif
+
+// memdbgon must be the last include file in a .cpp file!!!
+#include "tier0/memdbgon.h"
+
+IMPLEMENT_NETWORKCLASS_ALIASED( BaseParticleEntity, DT_BaseParticleEntity )
+
+BEGIN_NETWORK_TABLE( CBaseParticleEntity, DT_BaseParticleEntity )
+END_NETWORK_TABLE()
+
+BEGIN_PREDICTION_DATA( CBaseParticleEntity )
+END_PREDICTION_DATA()
+
+#ifdef CLIENT_DLL
+REGISTER_EFFECT( CBaseParticleEntity );
+#endif
+
+CBaseParticleEntity::CBaseParticleEntity( void )
+{
+#if defined( CLIENT_DLL )
+ m_bSimulate = true;
+ m_nToolParticleEffectId = TOOLPARTICLESYSTEMID_INVALID;
+#endif
+}
+
+CBaseParticleEntity::~CBaseParticleEntity( void )
+{
+#if defined( CLIENT_DLL )
+ if ( ToolsEnabled() && ( m_nToolParticleEffectId != TOOLPARTICLESYSTEMID_INVALID ) && clienttools->IsInRecordingMode() )
+ {
+ KeyValues *msg = new KeyValues( "ParticleSystem_Destroy" );
+ msg->SetInt( "id", m_nToolParticleEffectId );
+ m_nToolParticleEffectId = TOOLPARTICLESYSTEMID_INVALID;
+ }
+#endif
+}
+
+#if !defined( CLIENT_DLL )
+int CBaseParticleEntity::UpdateTransmitState( void )
+{
+ if ( IsEffectActive( EF_NODRAW ) )
+ return SetTransmitState( FL_EDICT_DONTSEND );
+
+ if ( IsEFlagSet( EFL_IN_SKYBOX ) )
+ return SetTransmitState( FL_EDICT_ALWAYS );
+
+ // cull against PVS
+ return SetTransmitState( FL_EDICT_PVSCHECK );
+}
+#endif
+
+void CBaseParticleEntity::Activate()
+{
+#if !defined( CLIENT_DLL )
+ BaseClass::Activate();
+#endif
+}
+
+
+void CBaseParticleEntity::Think()
+{
+ Remove( );
+}
+
+
+void CBaseParticleEntity::FollowEntity(CBaseEntity *pEntity)
+{
+ BaseClass::FollowEntity( pEntity );
+ SetLocalOrigin( vec3_origin );
+}
+
+
+void CBaseParticleEntity::SetLifetime(float lifetime)
+{
+ if(lifetime == -1)
+ SetNextThink( TICK_NEVER_THINK );
+ else
+ SetNextThink( gpGlobals->curtime + lifetime );
+}
+
+#if defined( CLIENT_DLL )
+const Vector &CBaseParticleEntity::GetSortOrigin()
+{
+ // By default, we do the cheaper behavior of getting the root parent's abs origin, so we don't have to
+ // setup any bones along the way. If this screws anything up, we can always make it an option.
+ return GetRootMoveParent()->GetAbsOrigin();
+}
+
+void CBaseParticleEntity::SimulateParticles( CParticleSimulateIterator *pIterator )
+{
+ // If you derive from CBaseParticleEntity, you must implement simulation and rendering.
+ Assert( false );
+}
+
+void CBaseParticleEntity::RenderParticles( CParticleRenderIterator *pIterator )
+{
+ // If you derive from CBaseParticleEntity, you must implement simulation and rendering.
+ Assert( false );
+}
+
+#endif