|
|
@ -56,6 +56,7 @@ class CBaseTurret : public CBaseMonster |
|
|
|
public: |
|
|
|
public: |
|
|
|
void Spawn( void ); |
|
|
|
void Spawn( void ); |
|
|
|
virtual void Precache( void ); |
|
|
|
virtual void Precache( void ); |
|
|
|
|
|
|
|
void UpdateOnRemove(); |
|
|
|
void KeyValue( KeyValueData *pkvd ); |
|
|
|
void KeyValue( KeyValueData *pkvd ); |
|
|
|
void EXPORT TurretUse( CBaseEntity *pActivator, CBaseEntity *pCaller, USE_TYPE useType, float value ); |
|
|
|
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" ); |
|
|
|
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" |
|
|
|
#define TURRET_GLOW_SPRITE "sprites/flare3.spr" |
|
|
|
|
|
|
|
|
|
|
|
void CTurret::Spawn() |
|
|
|
void CTurret::Spawn() |
|
|
|