mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-03-12 05:22:55 +00:00
Merge 2219190a09
This commit is contained in:
parent
c4820ad0df
commit
f22f1331af
@ -47,6 +47,7 @@ public:
|
|||||||
|
|
||||||
void Spawn( void );
|
void Spawn( void );
|
||||||
void Precache( void );
|
void Precache( void );
|
||||||
|
void UpdateOnRemove();
|
||||||
void SetYawSpeed( void );
|
void SetYawSpeed( void );
|
||||||
int Classify( void );
|
int Classify( void );
|
||||||
void HandleAnimEvent( MonsterEvent_t *pEvent );
|
void HandleAnimEvent( MonsterEvent_t *pEvent );
|
||||||
@ -384,6 +385,23 @@ void CController::Precache()
|
|||||||
UTIL_PrecacheOther( "controller_head_ball" );
|
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
|
// AI Schedules Specific to this monster
|
||||||
//=========================================================
|
//=========================================================
|
||||||
|
Loading…
x
Reference in New Issue
Block a user