mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-11 13:01:12 +00:00
Merge 2219190a09
This commit is contained in:
parent
c4820ad0df
commit
f22f1331af
@ -47,6 +47,7 @@ public:
|
||||
|
||||
void Spawn( void );
|
||||
void Precache( void );
|
||||
void UpdateOnRemove();
|
||||
void SetYawSpeed( void );
|
||||
int Classify( void );
|
||||
void HandleAnimEvent( MonsterEvent_t *pEvent );
|
||||
@ -384,6 +385,23 @@ void CController::Precache()
|
||||
UTIL_PrecacheOther( "controller_head_ball" );
|
||||
}
|
||||
|
||||
void CController::UpdateOnRemove()
|
||||
{
|
||||
CBaseEntity::UpdateOnRemove();
|
||||
|
||||
if( m_pBall[0] )
|
||||
{
|
||||
UTIL_Remove( m_pBall[0] );
|
||||
m_pBall[0] = nullptr;
|
||||
}
|
||||
|
||||
if( m_pBall[1] )
|
||||
{
|
||||
UTIL_Remove( m_pBall[1] );
|
||||
m_pBall[1] = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
//=========================================================
|
||||
// AI Schedules Specific to this monster
|
||||
//=========================================================
|
||||
|
Loading…
x
Reference in New Issue
Block a user