|
|
@ -35,6 +35,16 @@ public: |
|
|
|
CBaseParticleEntity(); |
|
|
|
CBaseParticleEntity(); |
|
|
|
virtual ~CBaseParticleEntity(); |
|
|
|
virtual ~CBaseParticleEntity(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
virtual int ObjectCaps() |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
if( m_bShouldDeletedOnChangelevel ) |
|
|
|
|
|
|
|
return BaseClass::ObjectCaps() & ~FCAP_ACROSS_TRANSITION; |
|
|
|
|
|
|
|
else |
|
|
|
|
|
|
|
return BaseClass::ObjectCaps(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
void SetShouldDeletedOnChangelevel( bool bDel ) { m_bShouldDeletedOnChangelevel = bDel; } |
|
|
|
|
|
|
|
|
|
|
|
// CBaseEntity overrides.
|
|
|
|
// CBaseEntity overrides.
|
|
|
|
public: |
|
|
|
public: |
|
|
|
#if !defined( CLIENT_DLL ) |
|
|
|
#if !defined( CLIENT_DLL ) |
|
|
@ -76,6 +86,8 @@ public: |
|
|
|
void SetLifetime(float lifetime); |
|
|
|
void SetLifetime(float lifetime); |
|
|
|
|
|
|
|
|
|
|
|
private: |
|
|
|
private: |
|
|
|
|
|
|
|
bool m_bShouldDeletedOnChangelevel; |
|
|
|
|
|
|
|
|
|
|
|
CBaseParticleEntity( const CBaseParticleEntity & ); // not defined, not accessible
|
|
|
|
CBaseParticleEntity( const CBaseParticleEntity & ); // not defined, not accessible
|
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|