This commit is contained in:
Night Owl 2017-07-05 03:46:20 +05:00
parent 95d81733fc
commit 9c85e5eb77
1 changed files with 12 additions and 0 deletions

View File

@ -56,6 +56,7 @@ class CBaseTurret : public CBaseMonster
public:
void Spawn( void );
virtual void Precache( void );
void UpdateOnRemove();
void KeyValue( KeyValueData *pkvd );
void EXPORT TurretUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value );
@ -279,6 +280,17 @@ void CBaseTurret::Precache()
PRECACHE_SOUND( "turret/tu_alert.wav" );
}
void CBaseTurret::UpdateOnRemove()
{
CBaseEntity::UpdateOnRemove();
if( m_pEyeGlow )
{
UTIL_Remove( m_pEyeGlow );
m_pEyeGlow = 0;
}
}
#define TURRET_GLOW_SPRITE "sprites/flare3.spr"
void CTurret::Spawn()