|
|
@ -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
|
|
|
|
//=========================================================
|
|
|
|
//=========================================================
|
|
|
|