diff options
| author | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
|---|---|---|
| committer | Joe Ludwig <[email protected]> | 2013-06-26 15:22:04 -0700 |
| commit | 39ed87570bdb2f86969d4be821c94b722dc71179 (patch) | |
| tree | abc53757f75f40c80278e87650ea92808274aa59 /sp/src/game/server/EntityDissolve.h | |
| download | source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.tar.xz source-sdk-2013-39ed87570bdb2f86969d4be821c94b722dc71179.zip | |
First version of the SOurce SDK 2013
Diffstat (limited to 'sp/src/game/server/EntityDissolve.h')
| -rw-r--r-- | sp/src/game/server/EntityDissolve.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sp/src/game/server/EntityDissolve.h b/sp/src/game/server/EntityDissolve.h new file mode 100644 index 00000000..5e4e7bd8 --- /dev/null +++ b/sp/src/game/server/EntityDissolve.h @@ -0,0 +1,63 @@ +//========= Copyright Valve Corporation, All rights reserved. ============//
+//
+// Purpose:
+//
+//=============================================================================//
+
+#ifndef ENTITYDISSOLVE_H
+#define ENTITYDISSOLVE_H
+
+#ifdef _WIN32
+#pragma once
+#endif
+
+class CEntityDissolve : public CBaseEntity
+{
+public:
+ DECLARE_SERVERCLASS();
+ DECLARE_CLASS( CEntityDissolve, CBaseEntity );
+
+ CEntityDissolve( void );
+ ~CEntityDissolve( void );
+
+ static CEntityDissolve *Create( CBaseEntity *pTarget, const char *pMaterialName,
+ float flStartTime, int nDissolveType = 0, bool *pRagdollCreated = NULL );
+ static CEntityDissolve *Create( CBaseEntity *pTarget, CBaseEntity *pSource );
+
+ void Precache();
+ void Spawn();
+ void AttachToEntity( CBaseEntity *pTarget );
+ void SetStartTime( float flStartTime );
+ void SetDissolverOrigin( Vector vOrigin ) { m_vDissolverOrigin = vOrigin; }
+ void SetMagnitude( int iMagnitude ){ m_nMagnitude = iMagnitude; }
+ void SetDissolveType( int iType ) { m_nDissolveType = iType; }
+
+ Vector GetDissolverOrigin( void )
+ {
+ Vector vReturn = m_vDissolverOrigin;
+ return vReturn;
+ }
+ int GetMagnitude( void ) { return m_nMagnitude; }
+ int GetDissolveType( void ) { return m_nDissolveType; }
+
+ DECLARE_DATADESC();
+
+ CNetworkVar( float, m_flStartTime );
+ CNetworkVar( float, m_flFadeInStart );
+ CNetworkVar( float, m_flFadeInLength );
+ CNetworkVar( float, m_flFadeOutModelStart );
+ CNetworkVar( float, m_flFadeOutModelLength );
+ CNetworkVar( float, m_flFadeOutStart );
+ CNetworkVar( float, m_flFadeOutLength );
+
+protected:
+ void InputDissolve( inputdata_t &inputdata );
+ void DissolveThink( void );
+ void ElectrocuteThink( void );
+
+ CNetworkVar( int, m_nDissolveType );
+ CNetworkVector( m_vDissolverOrigin );
+ CNetworkVar( int, m_nMagnitude );
+};
+
+#endif // ENTITYDISSOLVE_H
|