mirror of https://github.com/FWGS/hlsdk-xash3d
Merge b3cf83bbf1
This commit is contained in:
parent
95d81733fc
commit
9c85e5eb77
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue