mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-02-03 02:24:28 +00:00
Merge e41b164fdf
2da0a12d35
This commit is contained in:
parent
f22f1331af
commit
6379954153
@ -200,6 +200,7 @@ class CGargantua : public CBaseMonster
|
||||
public:
|
||||
void Spawn( void );
|
||||
void Precache( void );
|
||||
void UpdateOnRemove();
|
||||
void SetYawSpeed( void );
|
||||
int Classify( void );
|
||||
int TakeDamage( entvars_t *pevInflictor, entvars_t *pevAttacker, float flDamage, int bitsDamageType );
|
||||
@ -802,6 +803,19 @@ void CGargantua::Precache()
|
||||
PRECACHE_SOUND( (char *)pBreatheSounds[i] );
|
||||
}
|
||||
|
||||
void CGargantua::UpdateOnRemove()
|
||||
{
|
||||
CBaseEntity::UpdateOnRemove();
|
||||
|
||||
if( m_pEyeGlow )
|
||||
{
|
||||
UTIL_Remove( m_pEyeGlow );
|
||||
m_pEyeGlow = 0;
|
||||
}
|
||||
|
||||
FlameDestroy();
|
||||
}
|
||||
|
||||
void CGargantua::TraceAttack( entvars_t *pevAttacker, float flDamage, Vector vecDir, TraceResult *ptr, int bitsDamageType )
|
||||
{
|
||||
ALERT( at_aiconsole, "CGargantua::TraceAttack\n" );
|
||||
|
@ -44,6 +44,7 @@ class CISlave : public CSquadMonster
|
||||
public:
|
||||
void Spawn( void );
|
||||
void Precache( void );
|
||||
void UpdateOnRemove();
|
||||
void SetYawSpeed( void );
|
||||
int ISoundMask( void );
|
||||
int Classify( void );
|
||||
@ -557,6 +558,13 @@ void CISlave::Precache()
|
||||
UTIL_PrecacheOther( "test_effect" );
|
||||
}
|
||||
|
||||
void CISlave::UpdateOnRemove()
|
||||
{
|
||||
CBaseEntity::UpdateOnRemove();
|
||||
|
||||
ClearBeams();
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
// TakeDamage - get provoked when injured
|
||||
//=========================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user